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.09k stars 2.21k forks source link

Allow labels to wrap around the curvature of the globe #11358

Open tristen opened 2 years ago

tristen commented 2 years ago

Globe view orients labels upright which is great for most labels. This is less desirable for ocean labels (or at least, I would like to control whether labels like these should not be detached and follow the curvature of the globe).

Screen Shot 2021-12-23 at 9 42 48 AM

Mapbox GL JS version: 2.7.0-alpha.1

melanieimfeld commented 2 years ago

big +1 on the above! For reference, here are some Cesium label wrapping examples. In these examples, country labels are wrapped around the curvature as well, which I do think can be useful in some instances:

tjukanovt commented 2 years ago

+1 from me too. Can give a very fresh look for the globe. Example from the world of static maps.

image

melanieimfeld commented 2 years ago

cross-linking a core styles redesign ticket where labels following the curvature will come in handy!

tristen commented 2 years ago

Posting this from Twitter too https://twitter.com/jonni_walker/status/1539921625331679234

willymaps commented 2 years ago

This looks like it's possible now I see it's still not following the curvature of the earth, but still a pretty good result from just changing the orientation

image