(iOS) Adjust the MY_LOCATION_CLICK event threshold
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180126-1512" 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.2.0-beta-20180126-1838" 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/ios/GoogleMaps/GoogleMapsViewController.m
src/ios/GoogleMaps/GoogleMapsViewController.m
CGPoint blueDotPoint = [self.map.projection pointForCoordinate:self.map.myLocation.coordinate];
CGPoint tapPoint = [self.map.projection pointForCoordinate:coordinate];
- if (ABS(blueDotPoint.x - tapPoint.x) < 10 && ABS(blueDotPoint.y - tapPoint.y) < 10) {
+ if (ABS(blueDotPoint.x - tapPoint.x) < 20 * self.screenScale && ABS(blueDotPoint.y - tapPoint.y) < 20 * self.screenScale) {
NSMutableDictionary *latLng = [NSMutableDictionary dictionary];
[latLng setObject:[NSNumber numberWithFloat:self.map.myLocation.coordinate.latitude] forKey:@"lat"];
[self syncInfoWndPosition];
}
+
- (void)execJS: (NSString *)jsString {
+ // Insert setTimeout() in order to prevent the GDC and webView deadlock
+ // ( you can not click the ok button of Alert() )
+ // https://stackoverflow.com/a/23833841/697856
+ jsString = [NSString stringWithFormat:@"setTimeout(function(){%@}, 0);", jsString];
+
if ([self.webView respondsToSelector:@selector(stringByEvaluatingJavaScriptFromString:)]) {
[self.webView performSelector:@selector(stringByEvaluatingJavaScriptFromString:) withObject:jsString];
} else if ([self.webView respondsToSelector:@selector(evaluateJavaScript:completionHandler:)]) {

(iOS) Adjust the MY_LOCATION_CLICK event threshold