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 #837

Closed
tmcw opened this issue Nov 17, 2014 · 7 comments
Closed

Marker clustering #837

tmcw opened this issue Nov 17, 2014 · 7 comments
Labels
mapbox.js → GL JS For feature parity with mapbox.js or Leaflet

Comments

@tmcw
Copy link
Contributor

tmcw commented Nov 17, 2014

Yes, it's that issue you were kind of thinking of and expecting, I'm posting it.

  • How should gl-js support clustering? Should it be a first-class style, built into the library by default, or a plugin?
  • How should clusters be represented in vector tiles, if at all?
@mourner
Copy link
Member

mourner commented Nov 17, 2014

It would be nice to support it in a plugin, but the difficulty here is that we need to hook it up to worker code where the clustering would happen (in the same thread where tiles are processed and buffers are built). Is it possible to do that externally? Probably not.

How should clusters be represented in vector tiles, if at all?

Are we ready to support the server-side clustering use case? That would be a lot of work across the stack I guess...

@stepankuzmin
Copy link
Contributor

As I understood, this behaviour is not marker clustering?

map

How can I deal with this behaviour? Can I specify radius which causes marker disappearing using style or something?

@mourner
Copy link
Member

mourner commented Jun 22, 2015

@stepankuzmin what's the source of the data here?

@stepankuzmin
Copy link
Contributor

Hi, @mourner! It's GeoJSON source.

@mourner
Copy link
Member

mourner commented Jun 22, 2015

@stepankuzmin take a look at symbol properties here https://www.mapbox.com/mapbox-gl-style-spec/#symbol. It's not clustering, it's collision avoidance.

@stepankuzmin
Copy link
Contributor

Oh, I see. Thanks for reply, @mourner!

Btw, is there are any plans for leaflet-like markers styling? I saw #1260 and #656, so maybe it would be something like L.divIcon which return gl context? It would be nice to have ability to style markers with all webgl power. Also it is not so easy to build custom markers using sprites if marker display depends on it's content. I mean that I must have sprite icon for every possible marker display. We've used animation with css transition with Leaflet, and so it would be great to have similar ability with Mapbox GL.

@lyzidiamond lyzidiamond added the mapbox.js → GL JS For feature parity with mapbox.js or Leaflet label Sep 23, 2015
@mourner
Copy link
Member

mourner commented Jan 18, 2016

Happening in #1931

@mourner mourner closed this as completed Jan 18, 2016
@tmcw tmcw reopened this Jan 18, 2016
@tmcw tmcw closed this as completed Jan 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mapbox.js → GL JS For feature parity with mapbox.js or Leaflet
Projects
None yet
Development

No branches or pull requests

4 participants