From 5c07a434e8f2113252a5ac21a6e35fa0df71f407 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Tue, 5 Dec 2017 12:53:06 +0500 Subject: Simplify attributions --- web/app/view/map/BaseMap.js | 34 ++++++---------------------------- 1 file changed, 6 insertions(+), 28 deletions(-) (limited to 'web/app') 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: [ - '© OpenStreetMap ' + - 'contributors, © CARTO' - ] - }) - ] + attributions: '© OpenStreetMap ' + + 'contributors, © CARTO' }) }); 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: '© Baidu' - }) - ] + attributions: '© Baidu' }) }); 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: '© Yandex' - }) - ] + attributions: '© Yandex' }) }); 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: '© Yandex' - }) - ] + attributions: '© Yandex' }) }); break; -- cgit v1.2.3