diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/app/mapfactory.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/js/app/mapfactory.js b/src/js/app/mapfactory.js index 8d8bb0e..f54060d 100644 --- a/src/js/app/mapfactory.js +++ b/src/js/app/mapfactory.js @@ -1,8 +1,11 @@ define(['leaflet'], function(L) { // base config var attribOSM = '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors', - OSMLayer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - attribution: attribOSM + attribCarto = '© <a href="http://cartodb.com/attributions">CartoDB</a>', + TileLayer = L.tileLayer('https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', { + attribution: 'Imagery ' + attribCarto + ' — Map data ' + attribOSM, + subdomains: 'abcd', + maxZoom: 19 }), scale = L.control.scale({ imperial: false @@ -10,7 +13,7 @@ define(['leaflet'], function(L) { return function(id, bounds) { var map = L.map(id, { - layers: [OSMLayer] + layers: [TileLayer] }) if (bounds) { map.fitBounds(L.latLngBounds(bounds)); |