summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCode WvS <code-wvs@quantentunnel.de>2015-03-22 18:09:26 +0100
committerCode WvS <code-wvs@quantentunnel.de>2015-03-22 18:09:26 +0100
commitda0a10f4e989d83a0768602514281f0e40666e7d (patch)
treecb91ef669f63fcdccff602370f481434b437457e
parentba5af162af694fc1d767816ed19cf180e2a0b943 (diff)
downloadsnap-yow-da0a10f4e989d83a0768602514281f0e40666e7d.tar.gz
snap-yow-da0a10f4e989d83a0768602514281f0e40666e7d.zip
correct connection state names
-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