aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/map/MapMarkerController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-07-28 16:32:34 +1200
committerGitHub <noreply@github.com>2017-07-28 16:32:33 +1200
commita2e350b15065bf9922631944daa95790b7a869a8 (patch)
tree604d904829d2069d6d0ba900d23d08a54123a8c5 /web/app/view/map/MapMarkerController.js
parent352159c53b862a78cead3c1447d14eca28bd9c58 (diff)
parentd15a49e82481381a571c0c2285edd2fc77ccb5ca (diff)
downloadtrackermap-web-a2e350b15065bf9922631944daa95790b7a869a8.tar.gz
trackermap-web-a2e350b15065bf9922631944daa95790b7a869a8.tar.bz2
trackermap-web-a2e350b15065bf9922631944daa95790b7a869a8.zip
Merge pull request #537 from Abyss777/hide_geofences
Do not show geofenceId if it is unknown
Diffstat (limited to 'web/app/view/map/MapMarkerController.js')
-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 2f1d91e1..df4029d2 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);
}