diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-23 19:36:24 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-23 19:36:24 +0100 |
| commit | 4983e0ad91dc0d8dea6e79754e83f0c52e7ed5d2 (patch) | |
| tree | 962f400c3b1a0db431e62fd3749568bc1ec6ac3a | |
| parent | f9e9fb0bbf4a3dcc16f186d300d0553fe781bff4 (diff) | |
| download | snap-yow-4983e0ad91dc0d8dea6e79754e83f0c52e7ed5d2.tar.gz snap-yow-4983e0ad91dc0d8dea6e79754e83f0c52e7ed5d2.zip | |
use maxZoom and maxNativeZoom (experimental)
| -rwxr-xr-x | snap.html | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: '© <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: '© <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: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors' }); } |
