summaryrefslogtreecommitdiff
path: root/client/map
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-03-30 15:14:44 +0100
committerJules Laplace <julescarbon@gmail.com>2019-03-30 15:14:44 +0100
commitb9944ee1a4b07edda741cdfc89abf0715f65a164 (patch)
tree1f23b209b0f821f14e959464aca3bacc551ff51d /client/map
parentcbc0c2ef0862ab45da7c9392d4101332b6dab8e3 (diff)
rebuild
Diffstat (limited to 'client/map')
-rw-r--r--client/map/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/map/index.js b/client/map/index.js
index 7c205268..4e6db2de 100644
--- a/client/map/index.js
+++ b/client/map/index.js
@@ -102,7 +102,8 @@ export default function append(el, payload) {
const citationAddress = citation.addresses[0]
const latlng = [citationAddress.lat, citationAddress.lng].map(n => parseFloat(n))
if (Number.isNaN(latlng[0]) || Number.isNaN(latlng[1])) return
- addMarker(map, latlng, citation.title, citationAddress.name, citation.year, citation.pdf)
+ const addressString = citation.addresses.map(addr => addr.name).join('<br/>')
+ addMarker(map, latlng, citation.title, addressString, citation.year, citation.pdf)
addArc(map, source, latlng, arcStyles[citationAddress.type])
})