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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
CoreThe cross-platform C++ core, aka mbglGoogle Maps parityFor feature parity with the Google Maps SDK for Android or iOSMapKit parityFor feature parity with MapKit on iOS or macOSannotationsAnnotations on iOS and macOS or markers on Androidclustering
The longstanding “GL point annotation” API (exposed as MGLPointAnnotation on iOS and macOS, Marker on Android, and PointAnnotation on Qt) should support options for marker clustering. The GeoJSON point clustering implemented in #5724 is important for parity with Mapbox GL JS, but its use will be somewhat limited until this functionality is extended to point annotations, which have a few important advantages over GeoJSON points:
Point annotations can display images that are loaded or even generated at runtime. GeoJSON points can only display images that come with the style (for example, images that are managed in Mapbox Studio). Therefore, it isn’t possible to use a GeoJSON point to represent the current user’s avatar on the map or to draw text into an image and use that image in a GeoJSON point.
An application may need to add, remove, and modify annotations very frequently during the course of a map’s lifetime. With a GeoJSON layer, to add, remove, or modify an annotation, you have to blow away the entire layer and reconstruct it. Therefore, it isn’t feasible to animate GeoJSON points smoothly, and it’s very tedious to implement a “long press to drop pin” UI using GeoJSON points exclusively.
MGLPointAnnotation and Marker have built-in support for interactivity, opening a popup when tapped. GeoJSON points require the developer to handle gesture recognition, selection, and spatial querying with custom code.
Based on its unique behaviors, mbgl::SymbolAnnotation could not be reimplemented using GeoJSON layers. However, as long as Supercluster is extended to support dynamically changing markers, SymbolAnnotation could use Supercluster much the way GeoJSON layers do now.
We’ll need to add public APIs to the SDKs for configuring marker clustering.
Reacted by danetch, Boy van der Laak, James Edmonston, Malyugin Platon, Kevin Everly, Shyngys Kassymov, Roland Moers, Dev, weeix, Paul Veugen and 7 more
Reacted by Dirk Weise, Mich Davydov and Dima Hutsuliak
Thanks for your interest folks. If there is nothing posted here or in the ticket linked above, you can assume there are no updates. We will post when there is.
If the performance and memory considerations in mapbox/supercluster#19 (comment) would require a painful tradeoff for the usual case of a static point layer, I wonder if it might be possible to stick to the KDBush algorithm: we could “dirty” the clustering index on each annotation addition, modification, or removal and lazily rebuild the index when the zoom level changes.
First we had to completely rebuild our maps from image to vector (mapbox studio), then we had to wait for customized marker icons, now we have to wait for marker clustering. It was all possible with the old mapbox sdks and an important factor why we switched to mapbox.
the transition from the old to the new sdk really is a huge tradeoff for our company. Better visual representation through vector, but missing some very basic features that were already there in old mapbox sdk.
So is there any chance, that we might see clustering again in ios/js/android in the next months?
First we had to completely rebuild our maps from image to vector (mapbox
studio), then we had to wait for customized marker icons, now we have to
wait for marker clustering. It was all possible with the old mapbox sdks
and an important factor why we switched to mapbox.
the transition from the old to the new sdk really is a huge tradeoff for
our company. Better visual representation through vector, but missing some
very basic features that were already there in old mapbox sdk.
So is there any chance, that we might see clustering again in
ios/js/android in the next months?
Hi,
Can you guys please give us an eta ? I need to know whether I must implement it myself, or if that work is likely to surface in the coming weeks. More to the point, will it see the light before beginning of Feb 2017? thanks !
You can do point clustering already using the latest SDK betas and runtime styling. Checkout this example in the Android demo app (the same can be done on iOS).
Thanks, that looks like good news :) Stupid follow up question: You are using a GeoJsonSource in this example. Are you implying that the proper way of creating clusterable annotations is through GeoJson, and that we have to format the markers we want clustered as a geojsonstring to be fed as geojsonsource to the mapboxmap ? is it how it is intended to work ? Thanks for your help !
This is currently the only way to cluster icons at this point. This ticket is specifically for exposing clustering through GL markers which we are looking to add in the future. Feel free to reach out through our contact page if you have any additional questions.
Adding here that until the core implementation for this has landed. You can workaround this on Android using the following plugin. Note this is still a WIP, no release out on maven.
Reacted by Bilthon, Luis Trejo, Simon Bergeron and gahstanz
Thanks for everyone’s interest, but GitHub issues are not a voting platform and “+1” is not a useful contribution — if you wish to follow the progress of this issue, hit the “Subscribe” button and you’ll be notified when something actually happens.
@friedbunny I believe there a a lot of people interested in clustering support. Could you please suggest an alternative way for us to express our interest or "vote" for new features?
@o15a3d4l11s2 Allow me to humbly suggest GitHub’s emoji “reactions”, which are a positive and unobtrusive way to express interest without cluttering an issue or notifying all of its participants.
Reacted by VTCoco, Abraham Hunt, Alexander Fomich, Rafa Gutierrez and Steve Kaminski
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
That's fine if your app is making a bucket load of profit or has minimal traffic (no pun intended). Google Maps now have their hand well and truly in your pocket. I'm not sure their pricing schedule has anything to do with luck ;)
CoreThe cross-platform C++ core, aka mbglGoogle Maps parityFor feature parity with the Google Maps SDK for Android or iOSMapKit parityFor feature parity with MapKit on iOS or macOSannotationsAnnotations on iOS and macOS or markers on Androidclustering
Activity
danetch commentedon Aug 12, 2016
Hi,
any eta for this ?
thanks !
1ec5 commentedon Aug 12, 2016
This work is currently blocked by mapbox/supercluster#19.
ShaunBaker commentedon Sep 14, 2016
Hello
Any updates on this?
jfirebaugh commentedon Sep 14, 2016
Thanks for your interest folks. If there is nothing posted here or in the ticket linked above, you can assume there are no updates. We will post when there is.
1ec5 commentedon Sep 27, 2016
If the performance and memory considerations in mapbox/supercluster#19 (comment) would require a painful tradeoff for the usual case of a static point layer, I wonder if it might be possible to stick to the KDBush algorithm: we could “dirty” the clustering index on each annotation addition, modification, or removal and lazily rebuild the index when the zoom level changes.
tonnyavery commentedon Oct 7, 2016
Any workaround, except GeoJSON, I could apply to have clustering in Android application with MapBox SDK?
ttoni commentedon Oct 21, 2016
First we had to completely rebuild our maps from image to vector (mapbox studio), then we had to wait for customized marker icons, now we have to wait for marker clustering. It was all possible with the old mapbox sdks and an important factor why we switched to mapbox.
the transition from the old to the new sdk really is a huge tradeoff for our company. Better visual representation through vector, but missing some very basic features that were already there in old mapbox sdk.
So is there any chance, that we might see clustering again in ios/js/android in the next months?
nitrag commentedon Oct 25, 2016
+1 in same boat. Crucial features for my application if I'm going to switch
to Mapbox SDK.
On Oct 21, 2016 9:44 AM, "ttoni" [email protected] wrote:
danetch commentedon Nov 14, 2016
Hi,
Can you guys please give us an eta ? I need to know whether I must implement it myself, or if that work is likely to surface in the coming weeks. More to the point, will it see the light before beginning of Feb 2017? thanks !
cammace commentedon Nov 14, 2016
You can do point clustering already using the latest SDK betas and runtime styling. Checkout this example in the Android demo app (the same can be done on iOS).
danetch commentedon Nov 14, 2016
Thanks, that looks like good news :) Stupid follow up question: You are using a GeoJsonSource in this example. Are you implying that the proper way of creating clusterable annotations is through GeoJson, and that we have to format the markers we want clustered as a geojsonstring to be fed as geojsonsource to the mapboxmap ? is it how it is intended to work ? Thanks for your help !
cammace commentedon Nov 14, 2016
This is currently the only way to cluster icons at this point. This ticket is specifically for exposing clustering through GL markers which we are looking to add in the future. Feel free to reach out through our contact page if you have any additional questions.
20 remaining items
tobrun commentedon Jun 22, 2017
Adding here that until the core implementation for this has landed. You can workaround this on Android using the following plugin. Note this is still a WIP, no release out on maven.
jaltin commentedon Oct 19, 2017
+1
friedbunny commentedon Oct 19, 2017
Thanks for everyone’s interest, but GitHub issues are not a voting platform and “+1” is not a useful contribution — if you wish to follow the progress of this issue, hit the “Subscribe” button and you’ll be notified when something actually happens.
o15a3d4l11s2 commentedon Oct 19, 2017
@friedbunny I believe there a a lot of people interested in clustering support. Could you please suggest an alternative way for us to express our interest or "vote" for new features?
friedbunny commentedon Oct 19, 2017
@o15a3d4l11s2 Allow me to humbly suggest GitHub’s emoji “reactions”, which are a positive and unobtrusive way to express interest without cluttering an issue or notifying all of its participants.
Belzik commentedon Feb 9, 2018
Hi, can you please tell me how can I cluster the points with different pictures (icons)? (ios)
stale commentedon Oct 28, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
mourner commentedon Oct 29, 2018
Keeping this open since it's a highly requested feature and we still intend to address this at some point.
magnuspaaske commentedon Dec 25, 2018
Is there any news on this? It would be highly beneficial to be able to cluster annotations without resorting to geojson.
aquabay commentedon Jan 24, 2019
After 2.5 years since this issue was raised. Any progress/alternatives?
vegidio commentedon Jan 24, 2019
Wow, 2.5 years indeed. I've completely forgotten that this still existed.
@aquabay Anyway, I moved away from Mapbox long ago and I found an easy way to do clustering using the good-old Google Maps:
Good luck!
aquabay commentedon Jan 24, 2019
That's fine if your app is making a bucket load of profit or has minimal traffic (no pun intended). Google Maps now have their hand well and truly in your pocket. I'm not sure their pricing schedule has anything to do with luck ;)
https://cloud.google.com/maps-platform/pricing/sheet