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

Globe: Mapbox GL JS Marker Displacement Issue

Open mustafaerenhizarci opened this issue 8 months ago • 1 comments

Mapbox GL JS Marker Displacement Issue

Environment

  • Mapbox GL JS Version: ^3.10.0
  • Map Style: Globe projection
  • Browser: Google Chrome Version 135.0.7049.85 (Official Build) (arm64)

Issue Description

When rendering markers on a map using Mapbox GL JS with globe projection enabled, there's a significant displacement/drift issue with marker positions. This problem specifically occurs:

  • Only when the zoom level is between 5-6
  • Affects all markers placed on the map
  • The markers appear to be offset from their intended geographic positions
  • Issue is consistent across different marker instances

Expected Behavior

Markers should maintain their correct geographic positions regardless of:

  • Zoom level
  • Map projection type
  • Map interaction (panning/zooming)

Current Behavior

  • Markers drift from their assigned coordinates
  • Displacement is noticeable when zoom level is specifically between 5-6
  • Position accuracy is compromised only in globe projection mode

Visual Reference

For a visual demonstration of the issue, please see this video: Marker Displacement Demo

Additional Notes

  • Issue appears to be specific to globe projection
  • Problem does not occur in other projection types
  • Marker positioning works correctly at other zoom levels

Steps to Reproduce

  1. Initialize Mapbox GL JS map with globe projection
  2. Add markers to the map
  3. Set zoom level between 5-6
  4. Observe marker positions relative to their intended locations

mustafaerenhizarci avatar Apr 21 '25 09:04 mustafaerenhizarci

We opened an internal ticket for this issue some time ago and I just noticed that we never reported it here. No estimation on when this will get fixed but know that it’s being tracked. Thanks for reporting!

ibesora avatar May 20 '25 14:05 ibesora

Seems like a very old bug. Here are some duplicate issues: #12592 #13065 #12925

Very interested to see this fixed!

Gerbuuun avatar Dec 04 '25 21:12 Gerbuuun

@Gerbuuun thanks for linking those! I'll get the duplicates closed so that it gets tracked in one place.

mourner avatar Dec 04 '25 22:12 mourner