diff options
author | Abyss777 <abyss@fox5.ru> | 2017-12-05 12:53:06 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-12-05 12:53:06 +0500 |
commit | 5c07a434e8f2113252a5ac21a6e35fa0df71f407 (patch) | |
tree | 4e8a548a23e118222a7a838ad172f88235feb52c /web/app/view/map | |
parent | c8c598791f7efdbbb0277d04ace48504b083dd30 (diff) | |
download | trackermap-web-5c07a434e8f2113252a5ac21a6e35fa0df71f407.tar.gz trackermap-web-5c07a434e8f2113252a5ac21a6e35fa0df71f407.tar.bz2 trackermap-web-5c07a434e8f2113252a5ac21a6e35fa0df71f407.zip |
Simplify attributions
Diffstat (limited to 'web/app/view/map')
-rw-r--r-- | web/app/view/map/BaseMap.js | 34 |
1 files changed, 6 insertions, 28 deletions
diff --git a/web/app/view/map/BaseMap.js b/web/app/view/map/BaseMap.js index 32fb17d1..c36e71a6 100644 --- a/web/app/view/map/BaseMap.js +++ b/web/app/view/map/BaseMap.js @@ -42,11 +42,7 @@ Ext.define('Traccar.view.map.BaseMap', { layer = new ol.layer.Tile({ source: new ol.source.XYZ({ url: server.get('mapUrl'), - attributions: [ - new ol.Attribution({ - html: '' - }) - ] + attributions: '' }) }); break; @@ -78,14 +74,8 @@ Ext.define('Traccar.view.map.BaseMap', { 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: [ - '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> ' + - 'contributors, © <a href="https://carto.com/attributions">CARTO</a>' - ] - }) - ] + attributions: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> ' + + 'contributors, © <a href="https://carto.com/attributions">CARTO</a>' }) }); break; @@ -118,11 +108,7 @@ Ext.define('Traccar.view.map.BaseMap', { 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5 ] }), - attributions: [ - new ol.Attribution({ - html: '© <a href="http://map.baidu.com/">Baidu</a>' - }) - ] + attributions: '© <a href="http://map.baidu.com/">Baidu</a>' }) }); break; @@ -131,11 +117,7 @@ Ext.define('Traccar.view.map.BaseMap', { source: new ol.source.XYZ({ url: 'https://vec0{1-4}.maps.yandex.net/tiles?l=map&x={x}&y={y}&z={z}', projection: 'EPSG:3395', - attributions: [ - new ol.Attribution({ - html: '© <a href="https://yandex.com/maps/">Yandex</a>' - }) - ] + attributions: '© <a href="https://yandex.com/maps/">Yandex</a>' }) }); break; @@ -144,11 +126,7 @@ Ext.define('Traccar.view.map.BaseMap', { source: new ol.source.XYZ({ url: 'https://sat0{1-4}.maps.yandex.net/tiles?l=sat&x={x}&y={y}&z={z}', projection: 'EPSG:3395', - attributions: [ - new ol.Attribution({ - html: '© <a href="https://yandex.com/maps/">Yandex</a>' - }) - ] + attributions: '© <a href="https://yandex.com/maps/">Yandex</a>' }) }); break; |