mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 13:18:15 +02:00
Fix visible grid around tiles
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user