diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 13:47:26 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-08 13:47:26 +1300 |
commit | cdd83e0d13961c3465c7faf554ea8c709bd761b3 (patch) | |
tree | 8188ec2385a38a8939298aed526f87054be8c26a /web/app/view/MapController.js | |
parent | ea38e23c5c19f953d5db5107a56d697d31deef95 (diff) | |
download | trackermap-server-cdd83e0d13961c3465c7faf554ea8c709bd761b3.tar.gz trackermap-server-cdd83e0d13961c3465c7faf554ea8c709bd761b3.tar.bz2 trackermap-server-cdd83e0d13961c3465c7faf554ea8c709bd761b3.zip |
Add map feature selection event
Diffstat (limited to 'web/app/view/MapController.js')
-rw-r--r-- | web/app/view/MapController.js | 9 |
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); } }); |