diff options
Diffstat (limited to 'snap.html')
| -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 |
