(iOS) Bug fix: markerOption.styles option does not work
MODIFY
src/ios/GoogleMaps/GoogleMapsViewController.m
src/ios/GoogleMaps/GoogleMapsViewController.m
//CDVPlugin<MyPlgunProtocol> *plugin = [self.plugins objectForKey:pluginId];
// Get the marker properties
- NSString *markerPropertyId = [NSString stringWithFormat:@"marker_property_%lu", (unsigned long)marker.userData];
+ NSString *markerPropertyId = [NSString stringWithFormat:@"marker_property_%@", marker.userData];
NSDictionary *properties = [self.objects objectForKey:markerPropertyId];
Boolean useHtmlInfoWnd = marker.title == nil && marker.snippet == nil;

MODIFY
www/Common.js
www/Common.js
@@ -601,6 +601,10 @@ function markerOptionsFilter(markerOptions) {
markerOptions.infoWindowAnchor = [markerOptions.infoWindowAnchor.x, markerOptions.infoWindowAnchor.anchor.y];
}
+ if ("style" in markerOptions && !("styles" in markerOptions)) {
+ markerOptions.styles = markerOptions.style;
+ delete markerOptions.style;
+ }
if ("styles" in markerOptions) {
markerOptions.styles = typeof markerOptions.styles === "object" ? markerOptions.styles : {};

(iOS) Bug fix: markerOption.styles option does not work