aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/BaseMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-05-26 17:32:14 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-05-26 17:32:14 +1200
commitbc22b44fd9c980146d862566e21f6247aafdd807 (patch)
tree486c385878262772995e611953230adaafd3e8fc /web/app/view/map/BaseMap.js
parent206342be5bb9aa9d73cf07529795a28d2606c944 (diff)
downloadtrackermap-web-bc22b44fd9c980146d862566e21f6247aafdd807.tar.gz
trackermap-web-bc22b44fd9c980146d862566e21f6247aafdd807.tar.bz2
trackermap-web-bc22b44fd9c980146d862566e21f6247aafdd807.zip
Change map defaults
Diffstat (limited to 'web/app/view/map/BaseMap.js')
-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..e545c301 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);