diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-17 17:24:43 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-17 17:24:43 +0100 |
| commit | 744dcfc832b34fb944044e62bddb3ef6154ff9fd (patch) | |
| tree | 37b2873333f70885fbb78d20181a835d63a8b52c | |
| parent | 37c1cd8f75e05490067d132f60f7e378809c6b49 (diff) | |
marker
| -rw-r--r-- | client/map/index.js | 4 |
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() } |
