Open wipfli opened 1 week ago
Thanks for taking the time to report this, I don't remember globe code touching tile boundaries in terms of clippling, but the fact don't lie :-)
I will definitely investigate this. Globe modified clipping a lot, since curved tiles are a lot more prone to seams at the border, especially with the fill layer, which can have much finer geometry than the stencil mask and thus extend beyond it vertically. I'm not sure there will be a good solution to this that changes the clipping logic itself, but it should be possible to detect tiles that lack a neighbour and use a different clipping mask for them.
maplibre-gl-js version: 5.0.0-pre.1 browser: chrome on ubuntu
Steps to Trigger Behavior
1. 2. 3.
Link to Demonstration
5.0.0-pre.1
https://jsbin.com/gacagon/edit?html,output
4.7.1
https://jsbin.com/didahib/edit?html,output
Expected Behavior
Tile content should be clipped at the tile boundary.
Actual Behavior
Tile content is larger than tile boundary. Depending on content, margin seems different (source layer "earth" extends more than source layer "landuse"). This creates a visual border effect which is notable during tile loading on slow connections.