Skip to content

Globe: Mapbox GL JS Marker Displacement Issue #13458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mustafaerenhizarci opened this issue Apr 21, 2025 · 0 comments
Open

Globe: Mapbox GL JS Marker Displacement Issue #13458

mustafaerenhizarci opened this issue Apr 21, 2025 · 0 comments

Comments

@mustafaerenhizarci
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant