summaryrefslogtreecommitdiff
path: root/client/map/index.js
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-01-21 11:03:39 +0100
committeradamhrv <adam@ahprojects.com>2019-01-21 11:03:39 +0100
commitdc56b3326d7776e626039eb144e29562e9fdf355 (patch)
tree2edbddd0885cfdb59e202bde43bc1b7c692ae4ed /client/map/index.js
parente06af50389f849be0bfe4fa97d39f4519ef2c711 (diff)
parent3ea3d6991f50c9cd94d8a9b4130c3194bd50e160 (diff)
Merge branch 'master' of github.com:adamhrv/megapixels_dev
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()
}