diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-14 12:21:07 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-14 12:21:07 +1200 |
commit | 789a699ede9e4d1071c6212c5460d20c453a6fa0 (patch) | |
tree | 18e12fb81fa0709258f4d213de2197cfe9eda4b6 /web/app | |
parent | 99717a97e04d09b8bc6d80d4ff3372a730af5d45 (diff) | |
download | trackermap-web-789a699ede9e4d1071c6212c5460d20c453a6fa0.tar.gz trackermap-web-789a699ede9e4d1071c6212c5460d20c453a6fa0.tar.bz2 trackermap-web-789a699ede9e4d1071c6212c5460d20c453a6fa0.zip |
Change default map to OSMv3.11
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/map/BaseMap.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index 0dab7ca1..c4297f68 100644 --- a/web/app/view/map/BaseMap.js +++ b/web/app/view/map/BaseMap.js @@ -69,9 +69,19 @@ Ext.define('Traccar.view.map.BaseMap', { imagerySet: 'AerialWithLabels' }) }); - } else if (type === 'osm') { + } else if (type === 'carto') { layer = new ol.layer.Tile({ - source: new ol.source.OSM({}) + source: new ol.source.XYZ({ + url: 'https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', + attributions: [ + new ol.Attribution({ + html: [ + '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> ' + + 'contributors, © <a href="https://carto.com/attributions">CARTO</a>' + ] + }) + ] + }) }); } else if (type === 'baidu') { layer = new ol.layer.Tile({ @@ -135,17 +145,7 @@ Ext.define('Traccar.view.map.BaseMap', { }); } else { layer = new ol.layer.Tile({ - source: new ol.source.XYZ({ - url: 'https://cartodb-basemaps-{a-d}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png', - attributions: [ - new ol.Attribution({ - html: [ - '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> ' + - 'contributors, © <a href="https://carto.com/attributions">CARTO</a>' - ] - }) - ] - }) + source: new ol.source.OSM({}) }); } |