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
When the application uses multiple MapViews, the high level animation APIs like easeTo, flyTo,pitchBy etc. will not work properly for all the MapViews. These camera animations will only be applied to the last created MapView.
Expected behavior
The high level animation APIs should work property for every MapView created in the application.
Notes / preliminary analysis
Currently in the camera animation plugin, the high level animation APIs, such as easeTo, flyTo,pitchBy etc, are extension functions of the MapboxMap, but they are not bound to the specific MapboxMap instance. These extension functions use the WeakReference of the animations plugin inside the CameraAnimationsPluginImpl's companion object. As a result, animation plugin created together with the new MapView will override the old weak reference.
Additional links and references
The text was updated successfully, but these errors were encountered:
Environment
Observed behavior and steps to reproduce
When the application uses multiple MapViews, the high level animation APIs like
easeTo
,flyTo
,pitchBy
etc. will not work properly for all the MapViews. These camera animations will only be applied to the last created MapView.Expected behavior
The high level animation APIs should work property for every MapView created in the application.
Notes / preliminary analysis
Currently in the camera animation plugin, the high level animation APIs, such as
easeTo
,flyTo
,pitchBy
etc, are extension functions of theMapboxMap
, but they are not bound to the specificMapboxMap
instance. These extension functions use the WeakReference of the animations plugin inside theCameraAnimationsPluginImpl
's companion object. As a result, animation plugin created together with the new MapView will override the old weak reference.Additional links and references
The text was updated successfully, but these errors were encountered: