aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/Map.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-03 11:54:24 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-03 11:54:24 +1200
commitd5d7a82207f27fa5e544e1cf050dcc02fc1df12f (patch)
tree8f6bf5aeeae8d56f7295d0c1a8a1f15c7d746148 /web/app/view/map/Map.js
parent8e41bea48b0b248bcb198186783778002a92738e (diff)
downloadtrackermap-server-d5d7a82207f27fa5e544e1cf050dcc02fc1df12f.tar.gz
trackermap-server-d5d7a82207f27fa5e544e1cf050dcc02fc1df12f.tar.bz2
trackermap-server-d5d7a82207f27fa5e544e1cf050dcc02fc1df12f.zip
Change aliases and xtype names
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'
})});