style: move map zoom controls to bottom-right to prevent UI overlap

This commit is contained in:
2569718930@qq.com
2026-03-03 22:00:57 +08:00
parent c83a2ae486
commit 6b79fc8d37
+4 -1
View File
@@ -23,10 +23,13 @@ function initMap() {
zoom: 3,
minZoom: 2,
maxZoom: 12,
zoomControl: true,
zoomControl: false,
attributionControl: true,
});
// Move zoom control to bottom right to avoid overlapping with city list
L.control.zoom({ position: "bottomright" }).addTo(map);
// CartoDB Dark Matter tiles (free, dark theme)
L.tileLayer("https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png", {
attribution: