From bc22b44fd9c980146d862566e21f6247aafdd807 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 26 May 2018 17:32:14 +1200 Subject: Change map defaults --- web/app/view/map/BaseMap.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'web/app/view') diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index 68173a9..e545c30 100644 --- a/web/app/view/map/BaseMap.js +++ b/web/app/view/map/BaseMap.js @@ -130,10 +130,18 @@ Ext.define('Traccar.view.map.BaseMap', { }) }); break; - default: + case 'osm': layer = new ol.layer.Tile({ source: new ol.source.OSM({}) }); + break; + default: + layer = new ol.layer.Tile({ + source: new ol.source.OSM({ + url: 'https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png' + }) + }) + break; } lat = Traccar.app.getPreference('latitude', Traccar.Style.mapDefaultLat); -- cgit v1.2.3