Skip to content
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

Closed
peterqliu opened this issue May 20, 2015 · 5 comments
Closed

Marker clustering #1211

peterqliu opened this issue May 20, 2015 · 5 comments

Comments

@peterqliu
Copy link
Contributor

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.

@peterqliu
Copy link
Contributor Author

Writing a spec for how to style this lumped symbol is a whole nother ball of wax, but this is a start.

@mourner
Copy link
Member

mourner commented May 20, 2015

Duplicate of #837

@mourner mourner closed this as completed May 20, 2015
@liampmccabe
Copy link

liampmccabe commented Oct 5, 2017

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.

image

Thanks for any help!

@mollymerp
Copy link
Contributor

@liampmccabe clustering is supported for geojson sources https://www.mapbox.com/mapbox-gl-js/example/cluster/
the ticket tracking clustering HTML Markers, which I believe is what you're looking for, is here #4491

@thuanmb
Copy link

thuanmb commented Mar 22, 2018

For ReactJS lover, here is a solution for clustering in mapbox-gl:
https://github.com/thuanmb/react-mapbox-gl-cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants