mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 134 forks source link

How to customize cluster symbol text #2374

Open gibachan opened 6 months ago

gibachan commented 6 months ago

As mentioned in the documentation, the text displayed in the cluster symbol represents the number of annotations it includes.

I'm interested in customizing the text based on the count. More specifically, I would like to display the actual count when it is up to 10, and show "10+" when the count goes beyond 10. Could you provide guidance on how to implement this, if feasible?