diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-04 06:51:33 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-04 06:52:57 +0100 |
commit | e4a1cce0e426ab8c8cf6a288a6594a406466c15f (patch) | |
tree | 4ea29ee3cf945d8e5ba7271f2948f776f92b7876 | |
parent | e027f76d9b11721c9bf75313469df37e1d472a2c (diff) | |
download | MinedMap-e4a1cce0e426ab8c8cf6a288a6594a406466c15f.tar MinedMap-e4a1cce0e426ab8c8cf6a288a6594a406466c15f.zip |
viewer: fix overzoomed condition for retina
-rw-r--r-- | viewer/MinedMap.js | 2 |
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; |