aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/map')
-rw-r--r--web/app/view/map/BaseMap.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js
index 68173a99..07e391ff 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);