Fix visible grid around tiles

This commit is contained in:
Nekzuris
2024-12-11 02:30:38 +01:00
committed by GitHub
parent 04fd2ba6f4
commit b2c51929c6
2 changed files with 5 additions and 3 deletions
+4 -1
View File
@@ -4367,7 +4367,10 @@ img.tile {
opacity: 1;
transition: opacity 120ms linear;
}
.layer-background img.tile {
/* Fix visible grid around tiles borders on Chrome */
mix-blend-mode: plus-lighter;
}
img.tile-removing {
opacity: 0;
z-index: 1;
+1 -2
View File
@@ -18,8 +18,7 @@ export function rendererTileLayer(context) {
function tileSizeAtZoom(d, z) {
var EPSILON = 0.002; // close seams
return ((d.tileSize * Math.pow(2, z - d[2])) / d.tileSize) + EPSILON;
return ((d.tileSize * Math.pow(2, z - d[2])) / d.tileSize);
}