aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/MapMarkerController.js
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-02-26 12:21:51 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-02-26 12:21:51 +0300
commitaf41d034854a8d267463759a72fe1f610c9d297d (patch)
treea102b1dd99936c161fa01673fee09bb56c71cd8d /web/app/view/map/MapMarkerController.js
parent9a14f9599659c587a646ee322db5b65fa65d801d (diff)
downloadtrackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.tar.gz
trackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.tar.bz2
trackermap-web-af41d034854a8d267463759a72fe1f610c9d297d.zip
Implementation fixes
Diffstat (limited to 'web/app/view/map/MapMarkerController.js')
-rw-r--r--web/app/view/map/MapMarkerController.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/app/view/map/MapMarkerController.js b/web/app/view/map/MapMarkerController.js
index b7a1e296..295d2f50 100644
--- a/web/app/view/map/MapMarkerController.js
+++ b/web/app/view/map/MapMarkerController.js
@@ -457,9 +457,6 @@ Ext.define('Traccar.view.map.MapMarkerController', {
if (this.selectedMarker) {
if (this.selectedMarker.get('event')) {
this.getView().getMarkersSource().removeFeature(this.selectedMarker);
- if (!marker || !marker.get('event')) {
- this.fireEvent('deselectevent');
- }
} else if (!Ext.getStore('ReportRoute').showMarkers &&
this.selectedMarker.get('record') instanceof Traccar.model.Position) {
this.getView().getMarkersSource().removeFeature(this.selectedMarker);
@@ -496,6 +493,8 @@ Ext.define('Traccar.view.map.MapMarkerController', {
this.reportMarkers[position.get('id')] = this.addReportMarker(position);
}
this.selectMarker(this.reportMarkers[position.get('id')], center);
+ } else if (this.selectedMarker) {
+ this.selectMarker(null, false);
}
},