From 41b989d6e3a02670c81a7482236c80785f6edd13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Mon, 1 Jun 2020 23:46:43 +0200 Subject: [PATCH] MAPG-41 don't re-load pano when clicking again on the selected marker --- public/static/js/map_editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/static/js/map_editor.js b/public/static/js/map_editor.js index 9f790a4..5c8b574 100644 --- a/public/static/js/map_editor.js +++ b/public/static/js/map_editor.js @@ -82,6 +82,10 @@ }) .addTo(MapEditor.map) .on('click', function () { + if (MapEditor.selectedMarker === this) { + return; + } + MapEditor.select(this); }); }