diff options
| author | adamhrv <adam@ahprojects.com> | 2019-01-21 11:03:39 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-01-21 11:03:39 +0100 |
| commit | dc56b3326d7776e626039eb144e29562e9fdf355 (patch) | |
| tree | 2edbddd0885cfdb59e202bde43bc1b7c692ae4ed /client/map/index.js | |
| parent | e06af50389f849be0bfe4fa97d39f4519ef2c711 (diff) | |
| parent | 3ea3d6991f50c9cd94d8a9b4130c3194bd50e160 (diff) | |
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'client/map/index.js')
| -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() } |
