diff --git a/Map/point/pointmapset.js b/Map/point/pointmapset.js index 7888c00..1538839 100644 --- a/Map/point/pointmapset.js +++ b/Map/point/pointmapset.js @@ -99,10 +99,10 @@ fetch(urlbase + "/" + m + ".csv").then((resp) => { return resp.text(); // HTTPレスポンスから文字列を抜き出して返す }).then((txt) => { // それを csvlines として受け取る - var line, x, name, lat, lon; /* ここに csvlines を複数のCSV行として処理するものを書く */ + var line, x, name, lat, lng; /* ここに csvlines を複数のCSV行として処理するものを書く */ for (line of txt) { x = line.split(","); - name = x[0], lat = x[1], lon = x[2]; + name = x[0], lat = x[1], lng = x[2]; L.marker(pointmap).bindPopup(name).addTo(pointmap); } });