diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-23 21:38:39 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-23 21:38:39 +1200 |
commit | 3195e708dc18c82f07869267738e43f08bd74696 (patch) | |
tree | 74ff67d905a4b50d8ca73320619bbaf540e618fb /web/app/view/map | |
parent | 1d01b029eef451f2e340fe0807f861bea034e442 (diff) | |
download | trackermap-server-3195e708dc18c82f07869267738e43f08bd74696.tar.gz trackermap-server-3195e708dc18c82f07869267738e43f08bd74696.tar.bz2 trackermap-server-3195e708dc18c82f07869267738e43f08bd74696.zip |
Move Bing key into settings
Diffstat (limited to 'web/app/view/map')
-rw-r--r-- | web/app/view/map/Map.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js index 9d9a92886..db7dde02e 100644 --- a/web/app/view/map/Map.js +++ b/web/app/view/map/Map.js @@ -36,16 +36,16 @@ Ext.define('Traccar.view.map.Map', { var layer; var mapLayer = user.get('map') || server.get('map'); - var bindKey = 'AseEs0DLJhLlTNoxbNXu7DGsnnH4UoWuGue7-irwKkE3fffaClwc9q_Mr6AyHY8F'; + var bingKey = server.get('bingKey'); if (mapLayer === 'bingRoad') { layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ - key: bindKey, + key: bingKey, imagerySet: 'Road' })}); } else if (mapLayer === 'bingAerial') { layer = new ol.layer.Tile({ source: new ol.source.BingMaps({ - key: bindKey, + key: bingKey, imagerySet: 'Aerial' })}); } else { |