diff --git a/A2teamkadai/map.js b/A2teamkadai/map.js index d376f2f..14867e6 100644 --- a/A2teamkadai/map.js +++ b/A2teamkadai/map.js @@ -9,7 +9,7 @@ //表示するタイルレイヤのURLとAttributionコントロールの記述を設定して、地図に追加する L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap contributors,' - }).addTo(map); + }); // 外部のGeoJSONファイルを取得する fetch("tsuruoka_asahi.geojson") .then(response => response.json()) @@ -94,4 +94,4 @@ document.getElementById("c").addEventListener("click", () => { judgeAnswer("c"); }); -}); \ No newline at end of file +});