diff options
| author | Code WvS <code-wvs@quantentunnel.de> | 2015-03-22 18:09:26 +0100 |
|---|---|---|
| committer | Code WvS <code-wvs@quantentunnel.de> | 2015-03-22 18:09:26 +0100 |
| commit | da0a10f4e989d83a0768602514281f0e40666e7d (patch) | |
| tree | cb91ef669f63fcdccff602370f481434b437457e | |
| parent | ba5af162af694fc1d767816ed19cf180e2a0b943 (diff) | |
| download | snap-yow-da0a10f4e989d83a0768602514281f0e40666e7d.tar.gz snap-yow-da0a10f4e989d83a0768602514281f0e40666e7d.zip | |
correct connection state names
| -rwxr-xr-x | snap.html | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
