From 789a699ede9e4d1071c6212c5460d20c453a6fa0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 14 Apr 2017 12:21:07 +1200 Subject: Change default map to OSM --- web/app/view/map/BaseMap.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'web/app/view/map/BaseMap.js') diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index 0dab7ca..c4297f6 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: [ + '© OpenStreetMap ' + + 'contributors, © CARTO' + ] + }) + ] + }) }); } 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: [ - '© OpenStreetMap ' + - 'contributors, © CARTO' - ] - }) - ] - }) + source: new ol.source.OSM({}) }); } -- cgit v1.2.3