]> git.openstreetmap.org Git - rails.git/commitdiff
Close directions popup with sidebar
authorMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Tue, 4 Feb 2025 06:16:05 +0000 (07:16 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Feb 2025 06:16:05 +0000 (07:16 +0100)
app/assets/javascripts/index/directions.js

index acba02d837e834ee77469141477e2e3048092958..681479e52aaf05da13fdbd7b4891aea4c2e17809 100644 (file)
@@ -227,6 +227,7 @@ OSM.Directions = function (map) {
       directionsCloseButton.on("click", function () {
         map.removeLayer(polyline);
         $("#sidebar_content").html("");
+        popup.close();
         map.setSidebarOverlaid(true);
         // TODO: collapse width of sidebar back to previous
       });