diff options
| -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' }); } |
