From 0c4b06ddfb38287e0ce50b5d361df2909dbc1944 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 13 Nov 2018 03:07:32 +0100 Subject: center point for the paper itself --- reports/map.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'reports/map.js') 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([ - "",point[0], "", + "", point[0], "", "
", 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([ + "", document.querySelector('h2').innerText, "", + '
', + address[0] +].join('')) -- cgit v1.2.3-70-g09d2