aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map
diff options
context:
space:
mode:
Diffstat (limited to 'web/app/view/map')
-rw-r--r--web/app/view/map/MapMarkerController.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/app/view/map/MapMarkerController.js b/web/app/view/map/MapMarkerController.js
index 2f1d91e..df4029d 100644
--- a/web/app/view/map/MapMarkerController.js
+++ b/web/app/view/map/MapMarkerController.js
@@ -495,11 +495,12 @@ Ext.define('Traccar.view.map.MapMarkerController', {
},
selectEvent: function (position) {
+ var marker;
this.fireEvent('deselectfeature');
if (position) {
- var maker = this.addReportMarker(position);
- maker.set('event', true);
- this.selectMarker(maker, true);
+ marker = this.addReportMarker(position);
+ marker.set('event', true);
+ this.selectMarker(marker, true);
} else if (this.selectedMarker && this.selectedMarker.get('event')) {
this.selectMarker(null, false);
}