Keep `this` keyword as map instance
MODIFY
www/Map.js
www/Map.js
@@ -294,7 +294,7 @@ Map.prototype.setOptions = function(options) {
};
Map.prototype.getMyLocation = function(params, success_callback, error_callback) {
- plugin.google.maps.LocationService.getMyLocation(params, success_callback, error_callback);
+ plugin.google.maps.LocationService.getMyLocation(params, success_callback.bind(this), error_callback.bind(this));
};
Map.prototype.setCameraTarget = function(latLng) {

Keep `this` keyword as map instance