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
Hello, I am also facing this issue (marker moving on zoom-in). I already used: import 'mapbox-gl/dist/mapbox-gl.css'; in my react-laravel mix application, it is not working. I looked for other solutions on StackOverflow and other platforms but did not find any solution. Is this really a bug from the mapbox-react side or am I missing something?
I had the same issue when using Mapbox 2.13.0, markers were moving out-of-position on some zoom levels when moving the map.
Root cause: The root cause of the bug was Mapbox defaulting to a globe projection mode, which apparently has issues when using a non-integer zoom level (like 5.5), either programatically or when a user is zooming in / zooming out.
Workaround: I fixed the issue by setting the projection mode to mercator:
mapbox-gl-js version:
mapbox 2.9.1
browser:
Chrome 103.0.5060.66
FireFox 102.0
Steps to Trigger Behavior
Link to Demonstration
https://jsfiddle.net/domore/1Lpza0c5/2/
Expected Behavior
marker can stay it's coordinate correctly (offset was increased by the width of container)
Actual Behavior
marker looks like drift
20220720_151125.mp4
The text was updated successfully, but these errors were encountered: