diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-10 17:11:13 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-10 17:11:13 +1300 |
commit | 3a80d70af58cab4378823d555c77e6dbe3babdf4 (patch) | |
tree | 53fe747f70b4047f3eea6edb4a9207beb0c7a5ed | |
parent | 962f2baceacbf9032fbbb5b87f33f62065a20e13 (diff) | |
download | traccar-server-3a80d70af58cab4378823d555c77e6dbe3babdf4.tar.gz traccar-server-3a80d70af58cab4378823d555c77e6dbe3babdf4.tar.bz2 traccar-server-3a80d70af58cab4378823d555c77e6dbe3babdf4.zip |
Implement attribution for custom map
-rw-r--r-- | web/app/view/Map.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/app/view/Map.js b/web/app/view/Map.js index 22ba3b2b7..849f678a7 100644 --- a/web/app/view/Map.js +++ b/web/app/view/Map.js @@ -52,7 +52,10 @@ Ext.define('Traccar.view.Map', { if (type === 'custom') { layer = new ol.layer.Tile({ source: new ol.source.XYZ({ - url: server.get('mapUrl') + url: server.get('mapUrl'), + attributions: [new ol.Attribution({ + html: '' + })] }) }); } else if (type === 'bingRoad') { @@ -93,8 +96,7 @@ Ext.define('Traccar.view.Map', { this.map = new ol.Map({ target: this.body.dom.id, layers: [layer, vectorLayer], - view: this.mapView, - controls: ol.control.defaults({ attribution: false }) + view: this.mapView }); this.map.on('click', function (e) { |