aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/BaseMap.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-14 12:21:07 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-14 12:21:07 +1200
commit789a699ede9e4d1071c6212c5460d20c453a6fa0 (patch)
tree18e12fb81fa0709258f4d213de2197cfe9eda4b6 /web/app/view/map/BaseMap.js
parent99717a97e04d09b8bc6d80d4ff3372a730af5d45 (diff)
downloadtrackermap-web-789a699ede9e4d1071c6212c5460d20c453a6fa0.tar.gz
trackermap-web-789a699ede9e4d1071c6212c5460d20c453a6fa0.tar.bz2
trackermap-web-789a699ede9e4d1071c6212c5460d20c453a6fa0.zip
Change default map to OSMv3.11
Diffstat (limited to 'web/app/view/map/BaseMap.js')
-rw-r--r--web/app/view/map/BaseMap.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js
index 0dab7ca1..c4297f68 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: [
+ '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
+ 'contributors, &copy; <a href="https://carto.com/attributions">CARTO</a>'
+ ]
+ })
+ ]
+ })
});
} 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: [
- '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
- 'contributors, &copy; <a href="https://carto.com/attributions">CARTO</a>'
- ]
- })
- ]
- })
+ source: new ol.source.OSM({})
});
}