You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that MapLibre 5.x is rendering polygons (and possibly other things) incorrectly when using terrain tiles set to 512px. Note that the actual image size doesn't seem to matter; it's the size that is provided to MapLibre. In the jsbin below, this can be fixed by setting the tile size to 256px (even though the images are 512px), or reverting back to MapLibre 4.x.
I based the linked jsbin on the MapLibre terrain example. Interestingly, even though the tiles are 512px, the example's terrain is set to 256px. I'm not sure why that is.
I assume this was caused by the new globe functionality, but it does not require the globe projection to be enabled.
maplibre-gl-js version: 5.1.0
browser: Chrome 132
Steps to Trigger Behavior
Add terrain with 512px images
Add large polygon over the top that spans multiple tiles
It seems that MapLibre 5.x is rendering polygons (and possibly other things) incorrectly when using terrain tiles set to 512px. Note that the actual image size doesn't seem to matter; it's the size that is provided to MapLibre. In the jsbin below, this can be fixed by setting the tile size to 256px (even though the images are 512px), or reverting back to MapLibre 4.x.
I based the linked jsbin on the MapLibre terrain example. Interestingly, even though the tiles are 512px, the example's terrain is set to 256px. I'm not sure why that is.
I assume this was caused by the new globe functionality, but it does not require the globe projection to be enabled.
maplibre-gl-js version: 5.1.0
browser: Chrome 132
Steps to Trigger Behavior
Link to Demonstration
https://jsbin.com/nafuwibuxu/edit?html,output
Expected Behavior
Polygon should be rendered without overlap
Actual Behavior
Overlap around tile boundaries
The text was updated successfully, but these errors were encountered: