summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-23 19:36:24 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-23 19:36:24 +0100
commit4983e0ad91dc0d8dea6e79754e83f0c52e7ed5d2 (patch)
tree962f400c3b1a0db431e62fd3749568bc1ec6ac3a
parentf9e9fb0bbf4a3dcc16f186d300d0553fe781bff4 (diff)
downloadsnap-yow-4983e0ad91dc0d8dea6e79754e83f0c52e7ed5d2.tar.gz
snap-yow-4983e0ad91dc0d8dea6e79754e83f0c52e7ed5d2.zip
use maxZoom and maxNativeZoom (experimental)
-rwxr-xr-xsnap.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/snap.html b/snap.html
index f5741a4..8b2e2e1 100755
--- a/snap.html
+++ b/snap.html
@@ -83,6 +83,7 @@
// initialize leaflet
map = L.map('map', {
+ maxZoom: 21,
keyboard: false,
closePopupOnClick: false
});
@@ -107,6 +108,7 @@
layer = L.tileLayer('http://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}@2x.png?access_token=pk.eyJ1IjoiY29kZS13dnMiLCJhIjoielU1N2dQayJ9.miUjtJaW7Y_Xx46dC6m0LA', {
useCache: true,
cacheMaxAge: 604800000, // one week
+ maxNativeZoom: 19,
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
});
new OSMBuildings(map).load();
@@ -116,6 +118,7 @@
layer = L.tileLayer('http://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.jpg70?access_token=pk.eyJ1IjoiY29kZS13dnMiLCJhIjoielU1N2dQayJ9.miUjtJaW7Y_Xx46dC6m0LA', {
useCache: true,
cacheMaxAge: 604800000, // one week
+ maxNativeZoom: 19,
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
});
// shit, we're offline - let's hope there is something cached
@@ -125,6 +128,7 @@
useCache: true,
useOnlyCache: true,
cacheMaxAge: 604800000, // one week
+ maxNativeZoom: 19,
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
});
}