summaryrefslogtreecommitdiff
path: root/snap.html
diff options
context:
space:
mode:
Diffstat (limited to 'snap.html')
-rwxr-xr-xsnap.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/snap.html b/snap.html
index 9b0cafe..0d81ddd 100755
--- a/snap.html
+++ b/snap.html
@@ -103,7 +103,7 @@
}
console.log('Using tile layer appropriate for ' + state);
// download everything and in high resolution
- if (state == 'mobilewifi') {
+ if (state == 'wifi') {
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
@@ -112,7 +112,7 @@
new OSMBuildings(map).load();
// download low-res and cache as much as possible
// we do not need OSMBuildings here
- } else if (state == "mobilecellular") {
+ } else if (state == "cellular") {
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