Bug fix: Map Not Panning To Lat Lng / Markers Sometimes Missing
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.0.0-beta3-20170830-1106" 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-20170830-1608" 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/CordovaGoogleMaps.m
src/ios/GoogleMaps/CordovaGoogleMaps.m
[self.locationManager startUpdatingLocation];
[self.locationCommandQueue addObject:command];
- //CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_NO_RESULT];
+ //CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
//[pluginResult setKeepCallbackAsBool:YES];
//[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}

MODIFY
src/ios/GoogleMaps/Environment.m
src/ios/GoogleMaps/Environment.m
@@ -42,7 +42,7 @@ dispatch_queue_t queue;
googlemaps.pluginLayer.backgroundColor = [rgbColor parsePluginColor];
});
- CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_NO_RESULT];
+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
});
}

MODIFY
src/ios/GoogleMaps/External.m
src/ios/GoogleMaps/External.m
NSURL *directionsURL = [NSURL URLWithString:directionsRequest];
[[UIApplication sharedApplication] openURL:directionsURL];
- CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_NO_RESULT];
+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}
@end

MODIFY
src/ios/GoogleMaps/PluginMap.m
src/ios/GoogleMaps/PluginMap.m
//self.debugView.clickable = isClickable;
//[self.pluginScrollView.debugView setNeedsDisplay];
- CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_NO_RESULT];
+ CDVPluginResult* pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK];
[self.commandDelegate sendPluginResult:pluginResult callbackId:command.callbackId];
}];
}
*/
-(void)animateCamera:(CDVInvokedUrlCommand *)command
{
+ NSLog(@"--->animateCamera");
[self updateCameraPosition:@"animateCamera" command:command];
}

Bug fix: Map Not Panning To Lat Lng / Markers Sometimes Missing #1689