Open kirantpatil opened 6 years ago
It's difficult to cluster based on a distance because the clusters are projected to pixels and not meters. It also change a lot if you are looking at data close to the equator line or close to the poles. I think supporting clusters based on distance would require many changes in this library, it might be simpler to start from scratch.
It's possible to get cluster details as soon as the map loads, but this library doesn't have any API for that.
This might be a good idea.
How would a px based solution look like to check the distance between all markers?
Or setting the minimum required distance between all items to cluster elements.
Hi,
Sorry, I have two questions in one issue and they are dependent.
How to cluster the markers whose distance is less than 3 meters ?
If it is possible then how to get cluster details as soon as map loads.
Ex: For below image I would like to get, 1 cluster with 6 markers (marker1, marker2, marker4, marker5, marker6, marker7) and each marker details (name, latlng, ...)
Thanks