aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/MapController.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r--web/app/view/MapController.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/app/view/MapController.js b/web/app/view/MapController.js
index 205d40882..15bc24cdf 100644
--- a/web/app/view/MapController.js
+++ b/web/app/view/MapController.js
@@ -35,6 +35,11 @@ Ext.define('Traccar.view.MapController', {
load: 'loadReport',
clear: 'clearReport'
}
+ },
+ component: {
+ '#': {
+ selectFeature: 'selectFeature'
+ }
}
}
},
@@ -206,5 +211,9 @@ Ext.define('Traccar.view.MapController', {
selectReport: function (position) {
this.selectMarker(this.reportMarkers[position.get('id')]);
+ },
+
+ selectFeature: function (feature) {
+ console.log(feature);
}
});