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

Globe / Terrain: Position near antimeridian is unreachable when Terrain is activated. #5009

Open
zerda-ocm opened this issue Nov 6, 2024 · 0 comments
Labels
bug Something isn't working globe Globe related issues PR is more than welcomed Extra attention is needed terrain vertical-perspective Vertical Perspective projection

Comments

@zerda-ocm
Copy link

zerda-ocm commented Nov 6, 2024

maplibre-gl-js version: v5.0.0-pre.5 with #4977 @birkskyum

browser: chrome, edge

Steps to Trigger Behavior

  1. create a map in globe projection with activated terrain
  2. set zoom level: ~3
  3. drag the globe to a position in the pacific ocean (or more specific: near the antimeridian)
  4. release the mouse button and observe the position jumping back
  5. zoom level: > 12
  6. try moving across the antimeridian (longitude 180°)
  7. deactivate terrain and repeat steps 2-6

Link to Demonstration

https://jsbin.com/mayohelibi/edit?html,output

Expected Behavior

new position is the intented position

Actual Behavior

When dragging the globe to a position in the general vicinty of the pacific ocean / antimeridian, the position jumps back to the previous position. The extent is depending on the the zoom level. For example at zoom 3 I can't reach positions between -105 and +105 longitude. At zoom level 4 it's +/- 145. and reaches +/- 180 at zoom level 12.

Below zoom 12 it is possible, to drag the position beyond the antimeridian, but after the map transitions to mercator projection (zoom>12), I can't even cross the antimeridian anymore.

@HarelM HarelM added bug Something isn't working PR is more than welcomed Extra attention is needed terrain globe Globe related issues labels Nov 6, 2024
@birkskyum birkskyum added vertical-perspective Vertical Perspective projection globe Globe related issues and removed globe Globe related issues labels Nov 9, 2024
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 terrain vertical-perspective Vertical Perspective projection
Projects
None yet
Development

No branches or pull requests

3 participants