mapbox / mapbox/mapbox-maps-android

How to customize cluster symbol text

Open
#2,374 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged question
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

As mentioned in the [documentation](https://docs.mapbox.com/android/maps/examples/add-cluster-symbol-annotations/), 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?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked add-cluster-symbol-annotations documentation and the cluster symbol annotation API. Done means documenting whether count-based text can be customized and providing the supported steps, or clearly noting that the capability is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
documentation, mobile-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.