Mapbox-gl-js: Duplicate clustering behavior

Created on 3 Feb 2016  路  6Comments  路  Source: mapbox/mapbox-gl-js

The new clustering option in 0.13.1 seems to be working, but even when specifying 'cluster': false there still seems to be some rendering behavior that hides markers when zooming out. This is counter intuitive since there isn't any mentioning of more than one clustering behavior property.

The docs don't mention how or why this is happening, but I assume it's related to vector layer rendering, just like labels are rendered to ensure they do not overlap.

Where can I specify this behavior? What do I do if I want all markers in a marker layer to display on the map regardless of overlapping?

Most helpful comment

This seems to be solved by using icon-allow-overlap:falsetrue on the marker layer layout options. I believe this is a very easy trap to fall into, and possibly should be mentioned in the docs somehow.

All 6 comments

This seems to be solved by using icon-allow-overlap:falsetrue on the marker layer layout options. I believe this is a very easy trap to fall into, and possibly should be mentioned in the docs somehow.

You mean icon-allow-overlap: true? Because it's false by default and does collision detection.

Yes, of course, true.

This is a common question: I think it would be helpful to save this answer as a help or FAQ topic / cc @lyzidiamond

Thanks for the tag, @tmcw! Will ticket and add to docs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rigoneri picture rigoneri  路  3Comments

BernhardRode picture BernhardRode  路  3Comments

stevage picture stevage  路  3Comments

muesliq picture muesliq  路  3Comments

yoursweater picture yoursweater  路  3Comments