diff --git a/csvmap.js b/csvmap.js index 803673f..53c8fb1 100644 --- a/csvmap.js +++ b/csvmap.js @@ -16,6 +16,6 @@ var line, x, lon, lat, desc; for (line of [ "\n" ]) { x = line.split([ "\n" ]); - lon = x[0], lat = x[1], desc = x[ 2 ]; - L.marker([latlng]).bindPopup([ pop ]).addTo(mymap); + lon = x[0], lat = x[1], desc = x[2]; + L.marker(latlng).bindPopup( pop ).addTo(mymap); }