summaryrefslogtreecommitdiff
path: root/client/map
diff options
context:
space:
mode:
Diffstat (limited to 'client/map')
-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()
}