Skip to content

Commit

Permalink
Bug fix: Info window closed after click on marker and camera move whe…
Browse files Browse the repository at this point in the history
…n using marker cluster on iOS #1697
  • Loading branch information
wf9a5m75 committed Sep 1, 2017
1 parent 2e726f5 commit 5692f3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170901-1541" 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-beta3-20170901-1651" 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 />
Expand Down
2 changes: 1 addition & 1 deletion src/ios/GoogleMaps/GoogleMapsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ - (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker {
[self triggerMarkerEvent:@"info_close" marker:self.activeMarker];
}
}
[self triggerClusterEvent:@"cluster_click" marker:marker];
}
[self triggerClusterEvent:@"cluster_click" marker:marker];
} else {
[self execJS:@"javascript:if(window.cordova){cordova.fireDocumentEvent('plugin_touch', {});}"];
[self triggerMarkerEvent:@"marker_click" marker:marker];
Expand Down
2 changes: 1 addition & 1 deletion src/ios/GoogleMaps/PluginMarkerCluster.m
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ - (void)redrawClusters:(CDVInvokedUrlCommand*)command {
// mapping markers on the map
//---------------------------
[[NSOperationQueue mainQueue] addOperationWithBlock: ^{
self.mapCtrl.map.selectedMarker = nil;
//self.mapCtrl.map.selectedMarker = nil;
NSString *clusterId_markerId;
NSMutableDictionary *markerProperties;
GMSMarker *marker;
Expand Down

0 comments on commit 5692f3d

Please sign in to comment.