question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Android] MarkerView does not animate with flyTo, moveTo or setCamera methods.

See original GitHub issue

Describe 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

  1. Display marker
  2. 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
planthree1commented, Apr 28, 2021

is there any temporary fix for this behavior?

0reactions
stale[bot]commented, Apr 19, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found