update: prevent null pointer crash
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170510-1500" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
+<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170516-1315" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>cordova-plugin-googlemaps</name>
<js-module name="BaseClass" src="www/BaseClass.js">
<runs />

MODIFY
www/Polyline.js
www/Polyline.js
@@ -165,7 +165,10 @@ Polyline.prototype.getMap = function() {
Polyline.prototype.remove = function() {
exec(null, this.errorHandler, this.getPluginName(), 'remove', [this.getId()]);
this.trigger(this.id + "_remove");
- this.get("points").clear();
+ var points = this.get("points");
+ if (points) {
+ points.clear();
+ }
this.off();
};
module.exports = Polyline;

update: prevent null pointer crash