-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 projection rendering issues around the poles #12026
Comments
I have an issue that seems quite related. I used the Animate point along a route example and just changed the coordinates around a bit to make the route cross the north pole. This causes a bunch of rendering artifacts and the most obvious ones look very similar to your screenshots! Here is the codepen: https://codepen.io/SkySails/pen/VwXwJOY?editors=0010 I understand that this is not a "new" issue - similar bugs can be found in Google Maps & Google Earth: |
I looked into bug 3 a bit, which seems related to #12167 (which I can't reproduce). The poles borrow their color from the adjacent tile, so if no tile is loaded, the pole color is transparent. We should instead borrow the color from a neighboring tile if no tile is directly adjacent. Another solution could be just setting the North pole color to be the ocean color (and the south pole to the color of Antarctica) instead of transparent, though this would be less robust with satellite maps or more unique styles (i.e. a map of the moon). |
Several of these issues, such as tiles loading at very low resolution (or some tiles loading high-res and some tiles loading low-res within the viewport) and polylines showing up rasterized at very low resolution, only appear at about 68N/68S and onward. Still, "around the poles", which is part of the title of this issue, is a subjective measure which makes it sound very local. Down south, pretty much all of Antarctica is affected by the bugs, that's a continent larger than Europe. It's like saying there is a bug around Paris, which actually affects the entire continent. Multiply that area by two to include the northern hemisphere as well. On Antarctica, a partial graticule or tile boundaries also appeared out of nowhere: All of these issues persist in |
Maybe some these issues could be related to the fact that when you pan north, Mapbox automatically zooms in on the globe. I saw it works with the scale bar for example (it changes as I pan in globe view), but does this change in zoom level also propagate to the layers on the map, prompting them to re-load (if need be) and re-render? It seems to me that the zoom is continuously offset, causing low-res tiles and rasterized vectors. |
I think I'm going to attempt fixing this as our application needs to be able to render data and draw shapes over the poles. Is there anything I should know about this issue that the contributors would be able to share before I dive in? |
Last few weeks I have been flying around north pole for search&rescue missions. When I added data to my mapbox application, I realized mapbox cannot calculate rectangler region close to poles. Here test data I used. Changed values a bit because also mapbox cannot show points near to poles well so, I cannot focus cam to poles: You can paste data directly to: |
mapbox-gl-js version:
v2.9.1
browser:
Tested with the same outcome in latest versions of Google Chrome, Firefox and Safari.
Steps to Trigger Behavior
Draw a polyline passing near the North Pole, use satellite map (I used the bathymetry map).
Link to Demonstration
I can email a link if need be, not a public site.
Bugs
The text was updated successfully, but these errors were encountered: