mapbox / mapbox-gl-js

Interactive, thoroughly customizable maps in the browser, powered by vector tiles and WebGL
https://docs.mapbox.com/mapbox-gl-js/
Other
11.26k stars 2.23k forks source link

Map jumps across antimeridian with Winkel Tripel and conic projections #11298

Open SnailBones opened 3 years ago

SnailBones commented 3 years ago

mapbox-gl-js version: v2.6.0 & v2.6.1

browser: All (Tested on Firefox on Mac and Chrome on Android)

Steps to Trigger Behavior

  1. Set projection to Winkel Tripel, Albers, or Lambert Conformal Conic
  2. Move the map quickly into a corner

https://user-images.githubusercontent.com/14878684/142512899-f74f488a-576e-40ea-b3e9-0c25d8c8fb7f.mov

https://user-images.githubusercontent.com/14878684/142513497-feb02013-73f0-4dd6-9bb0-cc41f3f91f7d.mov

This PR fixed a similar bug and may be a helpful reference.

ryanhamley commented 3 years ago

I think this is likely related to https://github.com/mapbox/mapbox-gl-js/issues/11179 as a general constraining issue but we'll leave this open since it may be slightly different.