From f45de7f278cbcd4ab10dfdca66ceafbbb30b0be6 Mon Sep 17 00:00:00 2001
From: secondl1ght <85003930+secondl1ght@users.noreply.github.com>
Date: Fri, 16 Sep 2022 22:50:17 -0600
Subject: add new locations to map
---
docker-compose.yml | 6 ++--
src/components/LocationsMap.svelte | 69 +++++++++++++++++++++++++-------------
2 files changed, 49 insertions(+), 26 deletions(-)
diff --git a/docker-compose.yml b/docker-compose.yml
index 8c3393ab..48e12fa7 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -8,11 +8,11 @@ services:
- '3121:3121'
environment:
NODE_ENV: production
- ORIGIN: "https://v2.coinos.io"
+ ORIGIN: 'https://v2.coinos.io'
PORT: 3121
extra_hosts:
- host.docker.internal:host-gateway
-networks:
- default:
+networks:
+ default:
name: net
external: true
diff --git a/src/components/LocationsMap.svelte b/src/components/LocationsMap.svelte
index fe9dadfe..e3e12ee2 100644
--- a/src/components/LocationsMap.svelte
+++ b/src/components/LocationsMap.svelte
@@ -14,16 +14,16 @@
const myCustomColour = 'orange';
const markerHtmlStyles = `
- background-color: ${myCustomColour};
- width: 3rem;
- height: 3rem;
- display: block;
- left: -1.5rem;
- top: -1.5rem;
- position: relative;
- border-radius: 3rem 3rem 0;
- transform: rotate(45deg);
- border: 1px solid #FFFFFF`;
+ background-color: ${myCustomColour};
+ width: 3rem;
+ height: 3rem;
+ display: block;
+ left: -1.5rem;
+ top: -1.5rem;
+ position: relative;
+ border-radius: 3rem 3rem 0;
+ transform: rotate(45deg);
+ border: 1px solid #FFFFFF`;
const icon = L.divIcon({
className: 'my-custom-pin',
@@ -33,6 +33,35 @@
html: ``
});
+ const locations = [
+ {
+ lat: 49.27034,
+ long: -123.141373,
+ info: 'Rolf Vancouver
1628 W 1st Ave #231, Vancouver
www.rolfbodywork.com'
+ },
+ { lat: 49.26419, long: -123.15702, info: 'Tacos Jorge
2287 W Broadway, Vancouver' },
+ {
+ lat: 49.28273,
+ long: -123.120735,
+ info: 'Engage Strategies
LinkedIn'
+ },
+ {
+ lat: 49.28134,
+ long: -123.02373,
+ info: 'Lumota Collection
Clothing Design/Upcycling - Appointment Only
778-726-3776
369 Boundary Rd, Vancouver, BC V5K 2B1
IG: Lumotacollection
FB: Lumotacollection'
+ },
+ {
+ lat: 49.22643,
+ long: -122.93085,
+ info: 'Goodwin Contracting
Project Management/Consulting - Appointment Only
403-812-1085
8017 17th Ave, Burnaby, BC V3N 1M5'
+ },
+ {
+ lat: 51.04813,
+ long: -114.07999,
+ info: 'Goodwin Contracting
Project Management/Consulting - Appointment Only
403-812-1085
8017 17th Ave, Burnaby, BC V3N 1M5'
+ }
+ ];
+
leaflet
.tileLayer('https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png', {
maxZoom: 19,
@@ -40,19 +69,13 @@
})
.addTo(map);
- leaflet
- .marker([49.27034, -123.141373])
- .addTo(map)
- .bindPopup(
- 'Rolf Vancouver
1628 W 1st Ave #231, Vancouver
www.rolfbodywork.com'
- )
- ._icon.classList.add('huechange');
-
- leaflet
- .marker([49.26419, -123.15702])
- .addTo(map)
- .bindPopup('Tacos Jorge
2287 W Broadway, Vancouver')
- ._icon.classList.add('huechange');
+ locations.forEach((location) => {
+ leaflet
+ .marker([location.lat, location.long])
+ .addTo(map)
+ .bindPopup(location.info)
+ ._icon.classList.add('huechange');
+ });
}
});
--
cgit v1.2.3