Skip to content
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

Marker drag Coordinates give Longitude off by ±360° with Globe #5473

Open
KiwiKilian opened this issue Feb 7, 2025 · 1 comment
Open
Labels
bug Something isn't working globe Globe related issues PR is more than welcomed Extra attention is needed

Comments

@KiwiKilian
Copy link

maplibre-gl-js version: 5.1.0

browser: Chromium 132.0.6834.160

Steps to Trigger Behavior

  1. Add Marker with drag event to a globe projection map
  2. Drag Marker around (e.g. within Germany)
Bildschirmaufnahme.2025-02-07.um.12.00.28.mp4

Link to Demonstration

https://codesandbox.io/p/sandbox/maplibre-global-marker-drag-xnml7p

Expected Behavior

Coordinates should be correct, as without globe projection.

Actual Behavior

Sometimes Longitude is off by ±360°, other drag events produce the same behavior.

@KiwiKilian KiwiKilian changed the title Marker drag Coordinates give Longitude off by ±360° Marker drag Coordinates give Longitude off by ±360° with Globe Feb 7, 2025
@HarelM
Copy link
Collaborator

HarelM commented Feb 7, 2025

Thanks for taking the time to report this issue!
Feel free to take a stab in order to fix it.

@HarelM HarelM added bug Something isn't working PR is more than welcomed Extra attention is needed globe Globe related issues labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working globe Globe related issues PR is more than welcomed Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants