Adjust default marker size of iOS
MODIFY
plugin.xml
plugin.xml
<?xml version='1.0' encoding='utf-8'?>
-<plugin id="cordova-plugin-googlemaps" version="2.2.0-beta-20180124-1245" 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-20180124-2220" 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
[createResult setObject:[NSNumber numberWithInt: (int)image.size.width] forKey:@"width"];
[createResult setObject:[NSNumber numberWithInt: (int)image.size.height] forKey:@"height"];
} else {
- CGFloat zoomScale = [[UIScreen mainScreen] scale];
- [createResult setObject:[NSNumber numberWithInt: 62/zoomScale] forKey:@"width"];
- [createResult setObject:[NSNumber numberWithInt: 110/zoomScale] forKey:@"height"];
+ [createResult setObject:[NSNumber numberWithInt: 24] forKey:@"width"];
+ [createResult setObject:[NSNumber numberWithInt: 40] forKey:@"height"];
}
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsDictionary:createResult ];

MODIFY
www/KmlOverlay.js
www/KmlOverlay.js
@@ -195,17 +195,19 @@ var KmlOverlay = function(map, kmlId, camera, kmlData, kmlOverlayOptions) {
} else {
marker.setPosition(position);
marker.setVisible(true);
- marker.setAnimation(plugin.google.maps.Animation.DROP);
marker.off(event.MARKER_CLICK);
- marker.on(event.MARKER_CLICK, function() {
- ballon.open(marker);
- });
map.animateCamera({
target: position,
duration: 300
}, function() {
+ marker.setAnimation(plugin.google.maps.Animation.DROP, function() {
+ marker.on(event.MARKER_CLICK, function() {
+ ballon.open(marker);
+ });
marker.trigger(event.MARKER_CLICK);
});
+ });
+
}
};

Adjust default marker size of iOS