feat/style: close panel on map click and optimize tablet layout
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
// ──────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user