maplibre / maplibre/maplibre-plugins-android
Blinking symbol update
- Dominant language
- Java
- Stars
- 50
- Forks
- 33
- PR merge metrics
- No merged PRs in 30d
Description
I'm using the Maplibre android-sdk:9.6.0 with org.maplibre.gl:android-plugin-annotation-v9:1.0.0.
I have a symbol manager with only a symbol (that is an image) with potentially fast updates of location and icon rotation.
Sometimes, the symbol "flick" or "blink" when updated.
I found a similar issue on the mapbox repository, where the suggested solution was to allow the overlap of icon and text as follow:
```
symbolManager.setIconAllowOverlap(true);
symbolManager.setTextAllowOverlap(true);
```
this suggestion only mitigate the effect, but sometimes the "blink" is still happening.
Do you have any suggestion to completely resolve this issue?
I set also up other properties, as follows:
```
symbolManager = SymbolManager(mapView, map, style)
symbolManager.iconRotationAlignment = Property.ICON_ROTATION_ALIGNMENT_MAP
symbolManager.iconAllowOverlap = true
symbolManager.textIgnorePlacement = true
symbolManager.textAllowOverlap = true
symbolManager.iconIgnorePlacement = true
```
Thanks for any suggestion!
Contributor guide
Research direction
Start by reproducing the flicker with MapLibre Android SDK 9.6.0 and the Android annotation plugin while rapidly updating symbol location and icon rotation through SymbolManager. Compare behavior with the configured overlap and placement properties; done means identifying a reproducible cause and a verified way to prevent the symbol from blinking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100