Sort tiles by zoom (#9504)

to make sure that low zoom tiles don't hide higher resolution tiles. This can be relevant in case of tile loading errors or around the coverage border of a tile service.
This commit is contained in:
Marwin Hochfelsner
2025-02-18 12:00:36 +01:00
committed by GitHub
parent 6026d69672
commit 0a6cbf3ebc
+2 -1
View File
@@ -208,7 +208,8 @@ export function rendererTileLayer(context) {
.style(transformProp, imageTransform)
.classed('tile-debug', showDebug)
.classed('tile-removing', false)
.classed('tile-center', function(d) { return d === nearCenter; });
.classed('tile-center', function(d) { return d === nearCenter; })
.sort((a, b) => a[2] - b[2]);