From f4dead26c92e2ef6be45af0eb56d12bb3a00d983 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Sat, 24 Sep 2022 22:20:18 -0600 Subject: lots of style updates after design review, bug fixes, and more improve --- src/components/LocationsMap.svelte | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/components/LocationsMap.svelte') diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte index b1d9ce55..2227a831 100644 --- a/src/components/LocationsMap.svelte +++ b/src/components/LocationsMap.svelte @@ -9,7 +9,7 @@ if (browser) { const leaflet = await import('leaflet'); - map = leaflet.map(mapElement).setView([49.267265, -123.1491965], 13); + map = leaflet.map(mapElement, { attributionControl: false }).setView([0, 0], 0); const myCustomColour = 'orange'; @@ -76,6 +76,15 @@ .bindPopup(location.info) ._icon.classList.add('huechange'); }); + + map.fitBounds([ + [locations[0].lat, locations[0].long], + [locations[1].lat, locations[1].long], + [locations[2].lat, locations[2].long], + [locations[3].lat, locations[3].long], + [locations[4].lat, locations[4].long], + [locations[5].lat, locations[5].long] + ]); } }); -- cgit v1.2.3