Closed anthony-bernardo closed 1 year ago
Resolve my issue :
onViewportChange={nextViewport => {
if (!isButtonActive) {
console.log(nextViewport.bearing)
setViewport({ ...nextViewport })
}
}}
this were causing the bug
Description
I'm trying to implement a button to rotate a map with Marker in it
The rotation is working (with
rotateTo
function), but the Markers are not updated well. When I try to rotate the map "manually" (with shift click rotate) this error do not occursSee the video :
https://user-images.githubusercontent.com/739621/228761205-d3f4a542-86af-4989-ab45-91dec060957d.mp4
Expected Behavior
When I rotate the map with "rotateTo", to have the markers in right place
Steps to Reproduce
I tried to repaint the map too
And the markers :
Environment
Logs
No response