style: move map zoom controls to bottom-right to prevent UI overlap
This commit is contained in:
+4
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user