This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Deprecate MarkerView / Introduce IconGenerator #9365
Labels
Android
Mapbox Maps SDK for Android
Milestone
MarkerView
The concept of MarkerView relies on synchronising Android SDK views on top of the GL surface. At time of implementing, we were using TextureView as rendering surface but since a couple of releases, we migrated to SurfaceView for improved GL rendering performance. This introduced degraded view synchronisation for our MarkerView implementation (a.k.a MarkerView jiggling).
Besides degraded performance, MarkerViews rely on estimating the map transformation matrix, this estimation will not match the actual transformation 100%.
IconGenerator
Instead of synchronising Android SDK views on top of the GL Surface. We should look into rendering views to bitmaps instead and fallback on the base Marker Icon implementation (SymbolAnnotation in core). Code for generating a Bitmap look like this:
source
Before we would start with this migration, we will need to add some additional API to SymbolAnnotations to match the API exposed by MarkerView. Some examples of these are:
cc @mapbox/android
The text was updated successfully, but these errors were encountered: