You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Looking at this example and make some research of replacing geoJSON url with my own annotations.
Making StopAnnotation: MGLPointFeature and StopAnnotationView: MGLAnnotationView
Creating source MGLShapeSource with features of type StopAnnotation via initialiser
Creating pins, cluster and numbers layers
Expected behavior
Clustering is working fine. Pins that are not in cluster shown asStopAnnotationView
Actual behavior
Clustering is working fine. Pins that are not in cluster not shown.
Comment
Did I miss smth or this is just not possible? Any suggestions?
For now I ended up with:
hiding annotations at zoomLevel > 16
displaying cluster source and pins source as circles with different diameters at zoomLevel <=16
This is workaround that causes many troubles in memory usage.
I have several hacks in mind to improve memory usage but they are just hacks.
The text was updated successfully, but these errors were encountered:
Thank you for using Mapbox! Clustering for point annotations is being tracked in #5814. For guidance on clustering circle style layers, please see this example.
It looks like you are trying to use annotation views rather than style layers, the latter of which are used in the example. Clustering for view-backed annotations is being tracked in #5815. For more information about the different ways to display points on a map, please check out our adding markers to a map guide.
If you have any further questions about how to cluster point data with our SDK, please reach out to our support team. We'd be happy to help!
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Platform: iOS
Mapbox SDK version: 4.0.1
Steps to trigger behavior
StopAnnotation: MGLPointFeature
andStopAnnotationView: MGLAnnotationView
MGLShapeSource
with features of typeStopAnnotation
via initialiserExpected behavior
Clustering is working fine. Pins that are not in cluster shown as
StopAnnotationView
Actual behavior
Clustering is working fine. Pins that are not in cluster not shown.
Comment
Did I miss smth or this is just not possible? Any suggestions?
For now I ended up with:
This is workaround that causes many troubles in memory usage.
I have several hacks in mind to improve memory usage but they are just hacks.
The text was updated successfully, but these errors were encountered: