mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
viewer: fix overzoomed condition for retina
This commit is contained in:
parent
e027f76d9b
commit
e4a1cce0e4
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ var MinedMapLayer = L.GridLayer.extend({
|
||||||
mipmap.regions[coords.y-mipmap.info.minZ][coords.x-mipmap.info.minX])
|
mipmap.regions[coords.y-mipmap.info.minZ][coords.x-mipmap.info.minX])
|
||||||
tile.src = 'data/'+this.layer+'/'+z+'/r.'+coords.x+'.'+coords.y+'.png';
|
tile.src = 'data/'+this.layer+'/'+z+'/r.'+coords.x+'.'+coords.y+'.png';
|
||||||
|
|
||||||
if (coords.z >= 0)
|
if (z == 0)
|
||||||
L.DomUtil.addClass(tile, 'overzoomed');
|
L.DomUtil.addClass(tile, 'overzoomed');
|
||||||
|
|
||||||
return tile;
|
return tile;
|
||||||
|
|
Loading…
Add table
Reference in a new issue