mapbox / mapbox/mapbox-plugins-android

Trouble adding a CircleAnnotation at specific index in circleAnnotationManager.annotations

Open
#1,203 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.