From 3a80d70af58cab4378823d555c77e6dbe3babdf4 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 10 Nov 2015 17:11:13 +1300 Subject: Implement attribution for custom map --- web/app/view/Map.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'web') 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) { -- cgit v1.2.3