Карта подогнана под навбар

This commit is contained in:
2022-04-22 02:35:29 +03:00
parent d21b413267
commit bfd3343896
4 changed files with 8 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
.navbar {
height: 7%;
}

View File

@@ -1,10 +1,10 @@
html,
body {
height: 100%;
margin: 0;
}
#map {
height: 100%;
width: 100%;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
height: 93%;
width: 70%;
}

View File

@@ -4,7 +4,7 @@ const osm = L.tileLayer(url, { attribution: copy });
const map = L.map("map", { layers: [osm], minZoom: 5 });
map.
locate()
.on("locationfound", (e) => map.setView(e.latlng, 8))
.on("locationfound", (e) => map.setView(e.latlng, 12))
.on("locationerror", () => map.setView([0, 0], 5));
async function loadFacilities() {