Fix: use "self.exec()" instead of "exec"
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.0-beta-20180413-1542" 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.3.0-beta-20180413-2238" 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/Circle.js
www/Circle.js
@@ -118,7 +118,7 @@ Circle.prototype.remove = function (callback) {
writable: false
});
self.trigger(self.id + "_remove");
- exec.call(self, function () {
+ self.exec.call(self, function () {
self.destroy();
if (typeof callback === "function") {
callback.call(self);

MODIFY
www/MarkerCluster.js
www/MarkerCluster.js
@@ -281,7 +281,7 @@ MarkerCluster.prototype.remove = function() {
cluster.remove();
});
}
- exec.call(self, null, self.errorHandler, self.getPluginName(), 'remove', [self.getId()], {sync: true, remove: true});
+ self.exec.call(self, null, self.errorHandler, self.getPluginName(), 'remove', [self.getId()], {sync: true, remove: true});
keys = Object.keys(self._markerMap);
keys.forEach(function(markerId) {
@@ -330,7 +330,7 @@ MarkerCluster.prototype.removeMarkerById = function(markerId) {
markerOpts._cluster.marker = undefined;
//delete self._markerMap[markerId];
if (isAdded) {
- exec.call(self, null, null, self.getPluginName(), 'redrawClusters', [self.getId(), {
+ self.exec.call(self, null, null, self.getPluginName(), 'redrawClusters', [self.getId(), {
"delete": [markerId]
}], {sync: true});
}
@@ -1006,7 +1006,7 @@ MarkerCluster.prototype._redraw = function(params) {
return;
}
- exec.call(self, function(allResults) {
+ self.exec.call(self, function(allResults) {
var markerIDs = Object.keys(allResults);
markerIDs.forEach(function(markerId) {
if (!self._markerMap[markerId]) {

MODIFY
www/StreetViewPanorama.js
www/StreetViewPanorama.js
@@ -26,23 +26,23 @@ var StreetViewPanorama = function(streetViewId, _exec) {
//-----------------------------------------------
self.on("gesture_panning_changed", function() {
var booleanValue = self.get("gesture_panning");
- exec.call(self, null, self.errorHandler, self.id, 'setPanningGesturesEnabled', [booleanValue]);
+ self.exec.call(self, null, self.errorHandler, self.id, 'setPanningGesturesEnabled', [booleanValue]);
});
self.on("gesture_zoom_changed", function() {
var booleanValue = self.get("gesture_zoom");
- exec.call(self, null, self.errorHandler, self.id, 'setZoomGesturesEnabled', [booleanValue]);
+ self.exec.call(self, null, self.errorHandler, self.id, 'setZoomGesturesEnabled', [booleanValue]);
});
self.on("control_navigation_changed", function() {
var booleanValue = self.get("control_navigation");
- exec.call(self, null, self.errorHandler, self.id, 'setNavigationEnabled', [booleanValue]);
+ self.exec.call(self, null, self.errorHandler, self.id, 'setNavigationEnabled', [booleanValue]);
});
self.on("control_streetNames_changed", function() {
var booleanValue = self.get("control_streetNames");
- exec.call(self, null, self.errorHandler, self.id, 'setStreetNamesEnabled', [booleanValue]);
+ self.exec.call(self, null, self.errorHandler, self.id, 'setStreetNamesEnabled', [booleanValue]);
});
self.on("visible_changed", function() {
var booleanValue = self.get("visible");
- exec.call(self, null, self.errorHandler, self.id, 'setVisible', [booleanValue]);
+ self.exec.call(self, null, self.errorHandler, self.id, 'setVisible', [booleanValue]);
});
};

Fix: use "self.exec()" instead of "exec"