Bug fix: map.setMyLocationButtonEnabled() is not implemented for iOS
MODIFY
src/ios/GoogleMaps/PluginMap.h
src/ios/GoogleMaps/PluginMap.h
- (void)getMap:(CDVInvokedUrlCommand*)command;
- (void)moveCamera:(CDVInvokedUrlCommand*)command;
- (void)setMyLocationEnabled:(CDVInvokedUrlCommand*)command;
+- (void)setMyLocationButtonEnabled:(CDVInvokedUrlCommand*)command;
- (void)setIndoorEnabled:(CDVInvokedUrlCommand*)command;
- (void)setTrafficEnabled:(CDVInvokedUrlCommand*)command;
- (void)setCompassEnabled:(CDVInvokedUrlCommand*)command;

MODIFY
src/ios/GoogleMaps/PluginMap.m
src/ios/GoogleMaps/PluginMap.m
}];
}
-- (void)setMyLocationEnabled:(CDVInvokedUrlCommand *)command {
+- (void)setMyLocationButtonEnabled:(CDVInvokedUrlCommand *)command {
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
NSDictionary *params =[command.arguments objectAtIndex:0];
self.mapCtrl.map.settings.myLocationButton = [[params valueForKey:@"myLocationButton"] boolValue];
+ }];
+
+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
+ [self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
+}
+- (void)setMyLocationEnabled:(CDVInvokedUrlCommand *)command {
+ [[NSOperationQueue mainQueue] addOperationWithBlock:^{
+ NSDictionary *params =[command.arguments objectAtIndex:0];
+
self.mapCtrl.map.myLocationEnabled = [[params valueForKey:@"myLocation"] boolValue];
}];

Bug fix: map.setMyLocationButtonEnabled() is not implemented for iOS