summaryrefslogtreecommitdiffstats
path: root/viewer
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-04 06:51:33 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-04 06:52:57 +0100
commite4a1cce0e426ab8c8cf6a288a6594a406466c15f (patch)
tree4ea29ee3cf945d8e5ba7271f2948f776f92b7876 /viewer
parente027f76d9b11721c9bf75313469df37e1d472a2c (diff)
downloadMinedMap-e4a1cce0e426ab8c8cf6a288a6594a406466c15f.tar
MinedMap-e4a1cce0e426ab8c8cf6a288a6594a406466c15f.zip
viewer: fix overzoomed condition for retina
Diffstat (limited to 'viewer')
-rw-r--r--viewer/MinedMap.js2
1 files changed, 1 insertions, 1 deletions
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;