aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/Map.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/map/Map.js')
-rw-r--r--web/app/view/map/Map.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/map/Map.js b/web/app/view/map/Map.js
index 5702ff7b5..6b323e555 100644
--- a/web/app/view/map/Map.js
+++ b/web/app/view/map/Map.js
@@ -16,7 +16,7 @@
Ext.define('Traccar.view.map.Map', {
extend: 'Ext.form.Panel',
- xtype: 'map-view',
+ xtype: 'mapView',
requires: [
'Traccar.view.map.MapController'
@@ -39,12 +39,12 @@ Ext.define('Traccar.view.map.Map', {
var bindKey = 'AseEs0DLJhLlTNoxbNXu7DGsnnH4UoWuGue7-irwKkE3fffaClwc9q_Mr6AyHY8F';
if (mapLayer === 'bingRoad') {
- var layer = new ol.layer.Tile({ source: new ol.source.BingMaps({
+ layer = new ol.layer.Tile({ source: new ol.source.BingMaps({
key: bindKey,
imagerySet: 'Road'
})});
} else if (mapLayer === 'bingAerial') {
- var layer = new ol.layer.Tile({ source: new ol.source.BingMaps({
+ layer = new ol.layer.Tile({ source: new ol.source.BingMaps({
key: bindKey,
imagerySet: 'Aerial'
})});