mapbox / mapbox/mapbox-plugins-android
Trouble adding a CircleAnnotation at specific index in circleAnnotationManager.annotations
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 242
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I have a hard time figuring out how I can add or "create" a CircleAnnotation at a specific index in circleAnnotationManager.annotations consisting of multiple CircleAnnotations. I am looking for a similar option as with the mutableList where you have the array.add(index, itemToInsert). It doesn't seem to be supported yet.
My dependency is:
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-annotation-v9:0.9.0'
Help is very appreciated!
Best,
Kaspar
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting circleAnnotationManager.annotations in the mapbox-android-plugin-annotation-v9 0.9.0 implementation and how annotations are currently added. Determine the intended ordering behavior for insertion at a specific index, then identify the annotation-manager tests or test entry point that should verify it; done means indexed insertion is supported without changing existing annotation order.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100