aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/MapController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/map/MapController.js')
-rw-r--r--web/app/view/map/MapController.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/web/app/view/map/MapController.js b/web/app/view/map/MapController.js
index 2564335c9..e9757daac 100644
--- a/web/app/view/map/MapController.js
+++ b/web/app/view/map/MapController.js
@@ -23,7 +23,9 @@ Ext.define('Traccar.view.map.MapController', {
controller: {
'*': {
reportShow: 'reportShow',
- reportClear: 'reportClear'
+ reportClear: 'reportClear',
+ selectDevice: 'selectDevice',
+ selectReport: 'selectReport'
}
}
}
@@ -139,6 +141,14 @@ Ext.define('Traccar.view.map.MapController', {
vectorSource.removeFeature(this.reportRoute);
vectorSource.removeFeature(this.reportStart);
vectorSource.addFeature(this.reportFinish);
+ },
+
+ selectDevice: function(device) {
+ console.log(device); // DELME
+ },
+
+ selectReport: function(position) {
+ console.log(position); // DELME
}
});