diff options
| author | secondl1ght <[email protected]> | 2022-09-24 22:20:18 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-09-24 22:20:18 -0600 |
| commit | a84071c0f874b856f448f4521d943a2f0e7148cb (patch) | |
| tree | 41048b6b097d90e01c696213789ea7f2bdabda05 /src/components/LocationsMap.svelte | |
| parent | 72e424cb1ea8f57f8a40d30c6c165ad65b094f6f (diff) | |
| download | coinos-ui-a84071c0f874b856f448f4521d943a2f0e7148cb.tar.gz coinos-ui-a84071c0f874b856f448f4521d943a2f0e7148cb.zip | |
lots of style updates after design review, bug fixes, and more improve
Diffstat (limited to 'src/components/LocationsMap.svelte')
| -rw-r--r-- | src/components/LocationsMap.svelte | 11 |
1 files changed, 10 insertions, 1 deletions
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] + ]); } }); |
