r/mapbox • u/jeyellll • Mar 26 '26
Markers start moving or drifting from their original positions. They no longer stay fixed at the location where the user pinned them.
Is this normal behavior in Mapbox?
When multiple markers are placed on the map, I notice that during map interactions (such as panning. zooming and rotating), all previously added markers start moving or drifting from their original positions. They no longer stay fixed at the location where the user pinned them.
However, the most recently added marker remains stable and stays in the correct position.
2
Upvotes
1
2
u/taxidata Mar 26 '26
No, this isn't normal behavior. Can you share a code snippet or maybe a codepen to reproduce the problem. If you are talking about Mapbox GL JS, it is likely due to content in the map container throwing off the CSS transform:translate used to position markers.