mapbox / mapbox-plugins-android

Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
https://www.mapbox.com/android-docs/plugins/overview/
BSD 2-Clause "Simplified" License
241 stars 119 forks source link

Trouble adding a CircleAnnotation at specific index in circleAnnotationManager.annotations #1203

Open kasparjj opened 2 years ago

kasparjj commented 2 years ago

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