summaryrefslogtreecommitdiff
path: root/client/map/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-17 17:24:43 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-17 17:24:43 +0100
commit744dcfc832b34fb944044e62bddb3ef6154ff9fd (patch)
tree37b2873333f70885fbb78d20181a835d63a8b52c /client/map/index.js
parent37c1cd8f75e05490067d132f60f7e378809c6b49 (diff)
marker
Diffstat (limited to 'client/map/index.js')
-rw-r--r--client/map/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/client/map/index.js b/client/map/index.js
index 053cf13b..e8543c77 100644
--- a/client/map/index.js
+++ b/client/map/index.js
@@ -33,6 +33,7 @@ function addMarker(map, latlng, title, subtext) {
"<br>",
subtext,
].join(''))
+ return marker
}
function addArc(map, src, dest) {
@@ -74,5 +75,6 @@ export default function append(el, payload) {
addArc(map, source, latlng)
})
- addMarker(map, source, paper.title, paper.address)
+ const rootMarker = addMarker(map, source, paper.title, paper.address)
+ rootMarker.openPopup()
}