-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marker clustering #1211
Comments
Writing a spec for how to style this lumped symbol is a whole nother ball of wax, but this is a start. |
Duplicate of #837 |
I've checked out the other issues but they seem to deviate from actual marker clustering (but rather point clustering). Is this feature still in development? Or is it possible with other aspects of the API? Currently I'd like to cluster these markers, or as a compromise only show the avatars at a particular zoom level. Thanks for any help! |
@liampmccabe clustering is supported for geojson sources https://www.mapbox.com/mapbox-gl-js/example/cluster/ |
For ReactJS lover, here is a solution for clustering in mapbox-gl: |
A GL equivalent of https://www.mapbox.com/mapbox.js/example/v1.0.0/leaflet-markercluster/
How this works in my mind: symbols get a
cluster-distance
property (default 0px). All symbols that fall under this distance from one another will automatically get lumped into one symbol. In order to get lumped, every symbol must be within this distance to every other member.The lumping result might differ, depending on what order the renderer iterates through the symbols.
The text was updated successfully, but these errors were encountered: