3
votes

I have a problem with Markers in MapBox. I have multi markers and i want to clustering it. I using MapBox SDK for android. Please help me. Thanks so much.

I had using markerscluster with Google Service Map Android v2. with Lib "Google Maps Android Marker Clustering Utility" But i can't using like it for MapBox.

3

3 Answers

1
votes

Looking at the mapbox Android plugin repository, there is a clustering plugin now, but it doesn't seem to be in maven yet.

(The gl core implementation of mapbox also has a clustering issue.)

0
votes

Did you saw this demo? https://github.com/mapbox/mapbox-android-sdk There is example with cluster in project. According to that project you just have to use method setClusteringEnabled in MapView, where last parameter is minimum zoom level to do clustering

0
votes

The Clustering Plugin @Diederik mentioned is now deprecated.

The supported way to do this now is Data Clustering, here's the example https://docs.mapbox.com/android/maps/overview/clustering/#symbollayer