viewer: fix overzoomed condition for retina

This commit is contained in:
Matthias Schiffer 2015-02-04 06:51:33 +01:00
parent e027f76d9b
commit e4a1cce0e4

View file

@ -31,7 +31,7 @@ var MinedMapLayer = L.GridLayer.extend({
mipmap.regions[coords.y-mipmap.info.minZ][coords.x-mipmap.info.minX])
tile.src = 'data/'+this.layer+'/'+z+'/r.'+coords.x+'.'+coords.y+'.png';
if (coords.z >= 0)
if (z == 0)
L.DomUtil.addClass(tile, 'overzoomed');
return tile;