-
-
Notifications
You must be signed in to change notification settings - Fork 783
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 view map style is inconsistent with latitude #5471
Comments
It is related to #5436 Demo with your expected behaviour as a proof of concept: |
That link actually displays my expected behavior with no modification needed. I'm not sure what's different between that and the example in the documentation (or the code version on unpkg, which is what I'm using in the testing application where this came up originally). |
The modification is a custom build with a change to the maplibre source code and is not production ready because of some bugs around the level 12 zoom. Feel free to look at the changes I made: https://github.com/zerda-ocm/maplibre-gl-js/tree/constant_zoom |
Ah, okay, reading is not my strong suit, haha. Thanks for chiming in! I'd be interested to see that make it into the main library once you get the bugs worked out. |
This is explained here: While I agree it's not ideal, there are reasons for this... |
maplibre-gl-js version: 5.1.0
browser: Firefox, Chrome, Safari
Link to Demonstration
It's visible in the globe view custom layer demo.
At low latitudes, the country labels are visible.

At higher latitudes, the country labels disappear.

At even higher latitudes, the "Arctic Circle" label disappears, too.

Expected/actual behavior
My expectation is that the map style should remain consistent across latitude when the globe is the same size in the window. (I know I'm probably using the term "map style" incorrectly, I can't think of a better way to say it right now.)
This appears to be related to the map zoom factor changing across latitude. Based on this comment
(here), I'm inferring that panning northward moves the camera in the +y direction, and the globe enlarges to keep the apparent size the same. But it seems like that results in the zoom factor changing with latitude because the camera is farther from the Earth center.
So there's a lot of guesswork in there, and I'm not sure if any of it's right. But that's some behavior in the map style that is (to me) unexpected. (Hopefully, this isn't a duplicate report. I scanned through the open issues, and I didn't see anything that looked promising. But maybe #5439 is related.)
The text was updated successfully, but these errors were encountered: