summaryrefslogtreecommitdiff
path: root/reports/map.js
diff options
context:
space:
mode:
Diffstat (limited to 'reports/map.js')
-rw-r--r--reports/map.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/reports/map.js b/reports/map.js
index e6244686..6a2db154 100644
--- a/reports/map.js
+++ b/reports/map.js
@@ -22,6 +22,14 @@ if (address) {
source = address.slice(3,5).map(n => parseFloat(n))
console.log(address, source)
}
+
+var redDot = L.icon({
+ iconUrl: '../reddot.png',
+ iconSize: [17, 17], // size of the icon
+ iconAnchor: [8, 8], // point of the icon which will correspond to marker's location
+ popupAnchor: [0, -5] // point from which the popup should open relative to the iconAnchor
+});
+
points.forEach(point => {
/*
[
@@ -39,7 +47,7 @@ points.forEach(point => {
const latlng = point.slice(5,7).map(n => parseFloat(n))
console.log(point)
if (!latlng.length || isNaN(latlng[0]) || isNaN(latlng[1])) return
- var marker = L.marker(latlng).addTo(map);
+ var marker = L.marker(latlng, { icon: redDot }).addTo(map);
marker.bindPopup([
"<b>",point[0], "</b>",
"<br>",