You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
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:
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:
alpha
anchor
TBD
cc @mapbox/android
Reacted by Anton, bulbuliator and Petar Petrov
Reacted by Pablo Guardiola, Liang HAN, Cam Mace, Dejan Ristic, Joshua Newkirk, EugenIvanushkin, kkkkxu, Anton and bulbuliator
Activity
tobrun commentedon Oct 10, 2017
This landed in #9782