summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-13 03:07:32 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-13 03:07:32 +0100
commit0c4b06ddfb38287e0ce50b5d361df2909dbc1944 (patch)
tree4c323e8c1ef2721609ecd0d66e023ea3b8e1cdaf
parent21ce0374d0737ab76c2fadf25047138e0df84c4e (diff)
center point for the paper itself
-rw-r--r--reports/map.js11
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(''))