mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Markers on globes in zoomlevels between 5 and 6 loose their position map edges

Open tobias-r opened this issue 4 months ago • 1 comments

mapbox-gl-js version: 3.1.2 and 3.2.0 beta

browser: Chrome on Mac

Steps to Trigger Behavior

  1. Place a marker on a Mapbox globe (not Mercator) new mapboxgl.Marker({}).
  2. Ideally do it on a map, that is very wide and not too high.
  3. Zoom the map until the zoom level reaches a fractional number between 5 and 6. It occasionally happens, that the zoom levels are fractional, so not rounded to 5 or 6, the bug only occurs on zoomlevels in that range, like 5.3723568348.
  4. When moving the globe map now (by mouse drag), the markers move away from their position at the left and right edge of the map.

Thanks for such a great API.

tobias-r avatar Feb 28 '24 10:02 tobias-r