feat/style: close panel on map click and optimize tablet layout

This commit is contained in:
2569718930@qq.com
2026-03-03 22:29:32 +08:00
parent 853992f15b
commit 27385e4cfe
2 changed files with 15 additions and 1 deletions
+5
View File
@@ -37,6 +37,11 @@ function initMap() {
subdomains: "abcd",
maxZoom: 19,
}).addTo(map);
// Close panel and clear selection when clicking on empty map space
map.on("click", () => {
closePanel();
});
}
// ──────────────────────────────────────────────────────────