Bug fix: The marker load icon image from the Internet on iOS does not display
MODIFY
src/android/plugin/google/maps/PluginMarker.java
src/android/plugin/google/maps/PluginMarker.java
@@ -245,6 +245,8 @@ public class PluginMarker extends MyPlugin implements MyPluginInterface {
markerOptions.visible(opts.getBoolean("visible"));
properties.put("isVisible", markerOptions.isVisible());
}
+ } else {
+ markerOptions.visible(true);
}
if (opts.has("draggable")) {
markerOptions.draggable(opts.getBoolean("draggable"));

MODIFY
src/ios/GoogleMaps/PluginMarker.m
src/ios/GoogleMaps/PluginMarker.m
}
// Visible property
- if (iconProperty) {
- [iconProperty setObject:[NSNumber numberWithBool:[[json valueForKey:@"visible"] boolValue]] forKey:@"visible"];
+ if ([json valueForKey:@"visible"]) {
+ [iconProperty setObject:[json valueForKey:@"visible"] forKey:@"visible"];
+ } else {
+ [iconProperty setObject:[NSNumber numberWithBool:true] forKey:@"visible"];
}
// Animation

MODIFY
src/ios/GoogleMaps/PluginMarkerCluster.m
src/ios/GoogleMaps/PluginMarkerCluster.m
@@ -174,6 +174,11 @@ const int GEOCELL_GRID_SIZE = 4;
if ([clusterData objectForKey:@"title"]) {
[properties setObject:[clusterData objectForKey:@"title"] forKey:@"title"];
}
+ if ([clusterData objectForKey:@"visible"]) {
+ [properties setObject:[clusterData objectForKey:@"visible"] forKey:@"visible"];
+ } else {
+ [properties setObject:[NSNumber numberWithBool:true] forKey:@"visible"];
+ }
[properties setObject:clusterId_markerId forKey:@"id"];
if ([clusterData objectForKey:@"icon"]) {

Bug fix: The marker load icon image from the Internet on iOS does not display