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.
Hello,
The MarkerViewManager implements the MapView.OnCameraDidChangeListener so updating a MarkerView is only updated after the camera did change, and not while the camera is changing.
The consequence of that is some sluggish MarkerView re-positioning after a camera move, as shown here:
I tried replacing MapView.OnCameraDidChangeListener by MapView.OnCameraIsChangeingListener and had no more updates ?!
Hello, The
MarkerViewManager
implements theMapView.OnCameraDidChangeListener
so updating aMarkerView
is only updated after the camera did change, and not while the camera is changing.The consequence of that is some sluggish
MarkerView
re-positioning after a camera move, as shown here:I tried replacing
MapView.OnCameraDidChangeListener
byMapView.OnCameraIsChangeingListener
and had no more updates ?!I then tried using
MapboxMap.OnCameraMoveListener
with better results: https://imgur.com/ZNweZfQGPU usage is a tad high, that's why I'm not sending a PR.
Should
MarkerViewManager
implements a more 'reactive' camera listener ?PS: on the above gifs, I'm using react-native with: