[Android] MarkerView does not animate with flyTo, moveTo or setCamera methods.
See original GitHub issueDescribe the bug
MarkerView moves with the camera (leaves its coordinates) while the camera is animating when using any of the following methods: flyTo
, moveTo
, setCamera
. However it stays in the correct position when dragging the map manually.
To Reproduce
- Display marker
- Animate the camera with any of the following methods:
flyTo
,moveTo
,setCamera
Expected behavior
The MarkerView would stay on the correct coordinates.
Actual behavior
The MarkerView stays on the last screen space position while the camera is animating, and once the animation is finished, it moves to the right coordinate in map view space.
Videos
Wrong behaviour (android): https://www.youtube.com/watch?v=PdSgEfLFc4g
Correct behaviour (iOS): https://www.youtube.com/watch?v=L_DL_suRKbA
Versions (please complete the following information):
- Platform: Android
- Platform OS: Android 10
- Device: Samsung Galaxy S10 Plus
- Emulator/ Simulator: no
- Dev OS: [e.g. OSX 11.0.1, Win10]
- react-native-mapbox-gl Version 8.2.0-beta1
- React Native Version 0.63.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[Android] MarkerView does not animate with flyTo, moveTo or ...
MarkerView moves with the camera (leaves its coordinates) while the camera is animating when using any of the following methods: flyTo , moveTo...
Read more >Fly-to camera animation | Maps SDK | Android - Mapbox docs
Animate the camera changes with the fly-to animation. This causes the camera to ease from a starting point to an end destination.
Read more >rnmapbox/Lobby - Gitter
moveTo and camera.flyTo and camera.setCamera seems to want longitude and latitude in different order on iOS. Ie, on Android: camera.moveTo([longitude ...
Read more >react-native-mapbox - Bountysource
MarkerView moves with the camera (leaves its coordinates) while the camera is animating when using any of the following methods: flyTo , moveTo...
Read more >Markers are not drawn instantaniously when enter the ...
package com.mapbox.mapboxsdk.testapp.activity.annotation; import android.animation.ObjectAnimator; import android.animation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
is there any temporary fix for this behavior?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.