From e4a1cce0e426ab8c8cf6a288a6594a406466c15f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 4 Feb 2015 06:51:33 +0100 Subject: viewer: fix overzoomed condition for retina --- viewer/MinedMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer') diff --git a/viewer/MinedMap.js b/viewer/MinedMap.js index f6be634..b733eca 100644 --- a/viewer/MinedMap.js +++ b/viewer/MinedMap.js @@ -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; -- cgit v1.2.3