Fix: marker.setDisableAutoPan() does not work on iOS
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.3.5-beta-20180529-1153" 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.5-beta-20180529-1215" 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/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
GMSMarker *marker = [self.mapCtrl.objects objectForKey:markerId];
marker.title = [command.arguments objectAtIndex:1];
- NSString *propertyId = [NSString stringWithFormat:@"marker_property_%lu", (unsigned long)marker.userData];
+ NSString *propertyId = [NSString stringWithFormat:@"marker_property_%@", markerId];
NSMutableDictionary *properties = [NSMutableDictionary dictionaryWithDictionary:
[self.mapCtrl.objects objectForKey:propertyId]];
[self.mapCtrl.objects setObject:properties forKey:propertyId];
GMSMarker *marker = [self.mapCtrl.objects objectForKey:markerId];
BOOL disableAutoPan = [[command.arguments objectAtIndex:1] boolValue];
- NSString *propertyId = [NSString stringWithFormat:@"marker_property_%lu", (unsigned long)marker.userData];
+ NSString *propertyId = [NSString stringWithFormat:@"marker_property_%@",markerId];
NSMutableDictionary *properties = [NSMutableDictionary dictionaryWithDictionary:
[self.mapCtrl.objects objectForKey:propertyId]];
[properties setObject:[NSNumber numberWithBool:disableAutoPan] forKey:@"disableAutoPan"];
[self.mapCtrl.objects setObject:properties forKey:propertyId];
+ NSLog(@"--->propertyId = %@", propertyId);
CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
[(CDVCommandDelegateImpl *)self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
marker.map = nil;
}
- NSString *propertyId = [NSString stringWithFormat:@"marker_property_%lu", (unsigned long)marker.userData];
+ NSString *propertyId = [NSString stringWithFormat:@"marker_property_%@", markerId];
NSMutableDictionary *properties = [NSMutableDictionary dictionaryWithDictionary:
[self.mapCtrl.objects objectForKey:propertyId]];
[properties setObject:[NSNumber numberWithBool:isVisible] forKey:@"visible"];

Fix: marker.setDisableAutoPan() does not work on iOS #2294