Fix: `map.getMyLocation()` and `LocationService.getMyLocation()` do not work.
MODIFY
README.md
README.md
-# Cordova GoogleMaps plugin for iOS and Android (version 2.3.1)
+# Cordova GoogleMaps plugin for iOS and Android (version 2.3.2)
This plugin is a thin wrapper for [Google Maps Android API](https://developers.google.com/maps/documentation/android/) and [Google Maps SDK for iOS](https://developers.google.com/maps/documentation/ios/).
@@ -10,7 +10,7 @@ Both [PhoneGap](http://phonegap.com/) and [Apache Cordova](http://cordova.apache
*Stable version(npm)*
```
-$> cordova plugin add cordova-plugin-googlemaps@2.3.1 \
+$> cordova plugin add cordova-plugin-googlemaps@2.3.2 \
--variable API_KEY_FOR_ANDROID="..." \
--variable API_KEY_FOR_IOS="..."
@@ -40,7 +40,7 @@ $> cordova plugin add cordova-plugin-googlemaps@2.3.1 \
```xml
<widget ...>
- <plugin name="cordova-plugin-googlemaps" spec="^2.3.1">
+ <plugin name="cordova-plugin-googlemaps" spec="^2.3.2">
<variable name="API_KEY_FOR_ANDROID" value="(api key)" />
<variable name="API_KEY_FOR_IOS" value="(api key)" />
@@ -63,6 +63,9 @@ $> cordova plugin add cordova-plugin-googlemaps@2.3.1 \
## Release Notes
+ - **v2.3.2**
+ - Fix: `map.getMyLocation()` and `LocationService.getMyLocation()` do not work.
+
- **v2.3.1**
- Fix: incompatible with `@ionic-native/google-maps`

MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.2-beta-20180515-1309" 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.2-beta-20180515-1438" 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/Common.js
www/Common.js
@@ -2,7 +2,7 @@ var BaseArrayClass = require('./BaseArrayClass');
var utils = require("cordova/utils");
var resolvedPromise = typeof Promise == 'undefined' ? null : Promise.resolve();
-var nextTick = resolvedPromise ? function(fn) { resolvedPromise.then(fn); } : function(fn) { setTimeout(fn); };
+var nextTick = resolvedPromise ? function(fn) { resolvedPromise.then(fn.bind(this)); } : function(fn) { setTimeout(fn.bind(this)); };
//---------------------------
// Convert HTML color to RGB

MODIFY
www/LocationService.js
www/LocationService.js
@@ -37,8 +37,8 @@ var LocationService = function(exec) {
}
};
- if (typeof callback === "function") {
- resolver(callback, errorHandler);
+ if (typeof success_callback === "function") {
+ resolver(success_callback, errorHandler);
return self;
} else {
return new Promise(resolver);

Fix: `map.getMyLocation()` and `LocationService.getMyLocation()` do not work.