Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Does mapbox android sdk support clustering? #4111

Closed
MiguelFale opened this issue Feb 25, 2016 · 12 comments
Closed

Does mapbox android sdk support clustering? #4111

MiguelFale opened this issue Feb 25, 2016 · 12 comments
Labels

Comments

@MiguelFale
Copy link

Hello!

Is there any API for clustering points in the map? If not, do you have an estimate of when it'll be available?

Thanks in advance!

@tmcw tmcw added the support label Feb 25, 2016
@tmcw
Copy link
Contributor

tmcw commented Feb 25, 2016

Hi @MiguelFale, we don't support clustering in the Android SDK quite yet. We just finished up implementing clustering for Mapbox GL JS and will port it to Android & iOS as soon as a few other features are shipped, like Offline. The ticket tracking this work is #320

@tmcw tmcw closed this as completed Feb 25, 2016
@Suyogyart
Copy link

Is "Annotation" clustering for Mapbox available yet for IOS sdk ??

@AndroidDeveloperMCT
Copy link

Is clustering is possible in android? and if yes so how?

@langsmith
Copy link
Contributor

@mf-mindcrewtech , we've got a marker cluster plugin for Android. The documentation isn't quite published yet, which is why you hadn't known about it.

Here's the upcoming README about it:
https://github.com/mapbox/mapbox-plugins-android/blob/e31b6bbb51a806f48a75ada970d2039405349a55/plugin-cluster/README.md

Upcoming Android demo app marker cluster plugin example: https://github.com/mapbox/mapbox-android-demo/blob/f05feea9599aee09df69589cf9c840dd356e62df/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/plugins/MarkerClustersPluginActivity.java

Current marker cluster plugin code

Thanks for using Mapbox!

@novodimaporo
Copy link

Im trying to implement this, but it doesnt have any interface to put custom Icons on it, each marker I have needs a unique image.

@AndroidDeveloperMCT
Copy link

@novodimaporo I already implemented the clustering with all different set of icons (custom icons), if you need any help please let me know.

@cooper1408
Copy link

@mf-mindcrewtech we are having hard time implementing clustering / symbol layer with custom icons in react native. can you please share your code or approach of android whatever you have done. on email [email protected] or share your email so that we can discuss.

@nitaliano
Copy link
Contributor

nitaliano commented Mar 21, 2018

@cooper1408 we have examples of clustering here https://github.com/mapbox/react-native-mapbox-gl/blob/master/example/src/components/EarthQuakes.js that could be a good starting point, or you can use https://github.com/mapbox/supercluster to manage clustering yourself.

you can open up an issue in https://github.com/mapbox/react-native-mapbox-gl or join https://gitter.im/react-native-mapbox-gl/Lobby and I will be able to help you out 😄

@maley63
Copy link

maley63 commented May 12, 2018

@mf-mindcrewtech
Would it be possible to share your code for the Android Clustering of different icons please?
I have recently created my first app for iPhone but struggling to implement the Android Clustering for this.
If you would like to email I could explain in more detail thanks.
Or if anyone could help or point in right direction it would be much appreciated.
Thanks,
[email protected]

@AndroidDeveloperMCT
Copy link

Hi @cooper1408 and @maley63 ,

Here is the code https://github.com/MaroofAhmedSiddique/MapBoxCustomClustering

If you have any questions, please let me know here or on skype : maroofahmedsiddique

@novodimaporo
Copy link

Hi, how do we cluster marker now? The plugin is removed.

@langsmith
Copy link
Contributor

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants