diff options
| -rw-r--r-- | reports/map.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/reports/map.js b/reports/map.js index 95a5cf26..58984c8e 100644 --- a/reports/map.js +++ b/reports/map.js @@ -55,7 +55,7 @@ points.forEach(point => { if (!latlng.length || isNaN(latlng[0]) || isNaN(latlng[1])) return var marker = L.marker(latlng, { icon: redDot }).addTo(map); marker.bindPopup([ - "<b>",point[0], "</b>", + "<b>", point[0], "</b>", "<br>", point[1], ].join('')) @@ -82,4 +82,11 @@ points.forEach(point => { ], ] }, pathStyle).addTo(map) -})
\ No newline at end of file +}) + +var marker = L.marker(source, { icon: redDot }).addTo(map); +marker.bindPopup([ + "<b>", document.querySelector('h2').innerText, "</b>", + '<br/>', + address[0] +].join('')) |
