aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'web/app')
-rw-r--r--web/app/Style.js4
-rw-r--r--web/app/store/MapTypes.js3
-rw-r--r--web/app/view/map/BaseMap.js10
3 files changed, 14 insertions, 3 deletions
diff --git a/web/app/Style.js b/web/app/Style.js
index 27243531..f12e9f53 100644
--- a/web/app/Style.js
+++ b/web/app/Style.js
@@ -42,8 +42,8 @@ Ext.define('Traccar.Style', {
columnWidthNormal: 100,
- mapDefaultLat: 1.283333,
- mapDefaultLon: 103.833333,
+ mapDefaultLat: 9.933333,
+ mapDefaultLon: -84.083333,
mapDefaultZoom: 4,
mapRouteColor: [
diff --git a/web/app/store/MapTypes.js b/web/app/store/MapTypes.js
index 77c10ebd..3d322438 100644
--- a/web/app/store/MapTypes.js
+++ b/web/app/store/MapTypes.js
@@ -44,6 +44,9 @@ Ext.define('Traccar.store.MapTypes', {
key: 'yandexSat',
name: Strings.mapYandexSat
}, {
+ key: 'wikimedia',
+ name: Strings.mapWikimedia
+ }, {
key: 'custom',
name: Strings.mapCustom
}]
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);