aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-11-10 17:11:13 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-11-10 17:11:13 +1300
commit3a80d70af58cab4378823d555c77e6dbe3babdf4 (patch)
tree53fe747f70b4047f3eea6edb4a9207beb0c7a5ed /web/app/view
parent962f2baceacbf9032fbbb5b87f33f62065a20e13 (diff)
downloadtrackermap-server-3a80d70af58cab4378823d555c77e6dbe3babdf4.tar.gz
trackermap-server-3a80d70af58cab4378823d555c77e6dbe3babdf4.tar.bz2
trackermap-server-3a80d70af58cab4378823d555c77e6dbe3babdf4.zip
Implement attribution for custom map
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/Map.js8
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) {