-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Document that clustering requires GeoJSON sources #7821
Comments
#7837 is adding this documentation. |
* [ios] Clarify that shape source needed for clustering. Fixes #7821.
Fixed in #7837. |
Why is clustering only available in |
@nitrag, great question. According to @mourner, it has to do with the fact that the clustering algorithm needs all the data to be loaded, whereas with vector sources, tiles come in asynchronously. Please open a separate issue to request this feature. Be sure to explain your use case so we can discuss the best way to support it. |
I wanted to do that dynamically. Using geoJSON files it's just stupid. |
No it works for me with MGLPointFeature
|
@michzio, please, can you say what type is mapPoints in your code? Do you request your points once or you do it periodically? My problem is that I request all my points for some area on screen and when I drag to other location, I request points again. That's why I can't fully understand at which sequence I need to code. |
The documentation for
MGLShapeSourceOptionClustered
does not mention that you currently can only cluster shapes with a GeoJSON source. This may be confusing for users who want to cluster point annotations (#5814), for example./cc @1ec5 @friedbunny
The text was updated successfully, but these errors were encountered: