maplibre-gl-js
maplibre-gl-js copied to clipboard
Raster tiles are much lower detail when terrain is enabled
(This may not be a bug - if that's the case, I am just looking for info about how to control this behaviour).
Adding terrain to a map viewer causes it to load raster tiles at lower zoom, that is, load the lower detail rasters with a lower "z" value. Also, the zoom drops away much quicker when terrain is enabled, so that one end of the screen is noticeably lower detail than the other even for a reasonably small camera pitch, and worse for extreme pitches. Maps without terrain, by contrast, do a good job of maintaining the illusion that all tiles change zoom at once.
maplibre-gl-js version: 4.1.2
browser: Brave
Steps to Trigger Behavior
- Set up a map with raster tiles. Turn on map.showTileBoundaries
- Compare it with the same map but also with 3d terrain enabled.
- Observe different tile zoom levels in each case.
Link to Demonstration
Map with terrain disabled: https://jsbin.com/mesowukici/1/edit?html,output
Identical map with terrain enabled: https://jsbin.com/rigisawuze/1/edit?html,output
Expected Behavior
Adding terrain shouldn't affect raster tile zoom - maybe? This may be by design for performance reasons. If so, do you know if it can be tweaked?
Actual Behavior
Adding terrain has a large and obvious impact on raster tile zoom.