From da0a10f4e989d83a0768602514281f0e40666e7d Mon Sep 17 00:00:00 2001 From: Code WvS Date: Sun, 22 Mar 2015 18:09:26 +0100 Subject: correct connection state names --- snap.html | 4 ++-- 1 file 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 -- cgit v1.3.1