Globe / Terrain: Position near antimeridian is unreachable when Terrain is activated. #5009
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
maplibre-gl-js version: v5.0.0-pre.5 with #4977 @birkskyum
browser: chrome, edge
Steps to Trigger Behavior
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.
The text was updated successfully, but these errors were encountered: