Is it somehow possible to reveal a Leaflet marker inside a Markercluster without user-interaction?
For now i'm using the panTo Method ( http://leafletjs.com/reference.html#map-panto ) for centering a rendered marker. But if the marker is inside a cluster the map does not zoom in until that specific marker gets revealed.
map.panTo(L.latLng(47.4612, 8.9123123));
you can remove it from the cluster and add it to the map...
cluster.removeLayer(theMarker);
map.addLayer(theMarker);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.