diff --git a/csvmap.js b/csvmap.js index 3c4ab77..f9302e5 100644 --- a/csvmap.js +++ b/csvmap.js @@ -15,7 +15,7 @@ for (line of csvlines.split("\n")) { if (line == "") continue; x = line.split(","); - lat = x[0], lon = x[1], name = [2]; + lat = x[0], lon = x[1], name = x[2]; L.marker([lat, lon]).bindPopup(name).addTo(lg); } lg.addTo(mymap);