Bug fix: tileOverlay.remove() causes null pointer error
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta2-20170727-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-20170729-1650" 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
src/android/plugin/google/maps/PluginTileOverlay.java
src/android/plugin/google/maps/PluginTileOverlay.java
@@ -155,11 +155,12 @@ public class PluginTileOverlay extends MyPlugin implements MyPluginInterface {
try {
String id = args.getString(0);
+ objects.remove(id);
id = id.replace("tileoverlay_", "tileprovider_");
if (objects.containsKey(id)) {
((PluginTileProvider)(objects.get(id))).remove();
}
- self.objects.put(id, null);
+ //self.objects.put(id, null);
self.objects.remove(id);
sendNoResult(callbackContext);
} catch (JSONException e) {

Bug fix: tileOverlay.remove() causes null pointer error (#1597)