aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-09-06 15:58:03 +0500
committerAbyss777 <abyss@fox5.ru>2016-09-06 15:58:03 +0500
commit97e80ec49fddec3d56880bae47bd070474fa8fa3 (patch)
tree79139d5328cba462f385a4876b71b3add6a7f7a2 /web/app/view/MapController.js
parent0affb8110de3c53942c85a220babc859e2a7727d (diff)
downloadtrackermap-server-97e80ec49fddec3d56880bae47bd070474fa8fa3.tar.gz
trackermap-server-97e80ec49fddec3d56880bae47bd070474fa8fa3.tar.bz2
trackermap-server-97e80ec49fddec3d56880bae47bd070474fa8fa3.zip
- Remove field container
- Renamed functions and strings
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r--web/app/view/MapController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 288593dab..c0ac2c534 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -24,7 +24,7 @@ Ext.define('Traccar.view.MapController', {
'*': {
selectDevice: 'selectDevice',
selectReport: 'selectReport',
- getMapCenter: 'getMapCenter'
+ mapstaterequest: 'getMapState'
}
},
store: {
@@ -307,11 +307,11 @@ Ext.define('Traccar.view.MapController', {
}
},
- getMapCenter: function () {
+ getMapState: function () {
var zoom, center, projection;
projection = this.getView().getMapView().getProjection();
center = ol.proj.transform(this.getView().getMapView().getCenter(), projection, 'EPSG:4326');
zoom = this.getView().getMapView().getZoom();
- this.fireEvent('setCenterFromMap', center[1], center[0], zoom);
+ this.fireEvent('mapstate', center[1], center[0], zoom);
}
});