I am current practicing on Leaftlet Marker Cluster.
If I know the marker I need is under a cluster, how can I automatically spiderfy that cluster to the max zoom level that obtain the marker I need without clicking onto the cluster?
If I know the marker in that cluster, how can I auto changing color of that cluster so I know that the marker I need to find is under that cluster.
- zoomToShowLayer(layer, callback): Zooms to show the given marker (spiderfying if required), calls the callback when the marker is visible on the map.
If you have customized the clusters icon to use some data from the contained markers, and later that data changes, use this method to force a refresh of the cluster icons. You can use the method: ...
- with a single marker.
// If updating only one marker, pass true to // refresh this marker's parent clusters right away. myMarker.refreshIconOptions(optionsMap, true);