diff --git a/map3.html b/map3.html index 98dbc4a..ecaaf07 100644 --- a/map3.html +++ b/map3.html @@ -84,7 +84,7 @@ lng = position.coords.longitude; // 自分の位置をサーバーに送信 - fetch("http://roy.e.koeki-u.ac.jp/~c123139/map/save_location.rb", { + fetch("http://roy.e.koeki-u.ac.jp/~c123139/map/2025-shino/save_location.rb", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ lat: lat, lng: lng, group: group }) @@ -117,7 +117,7 @@ if (myMarker) { myMarker.setLatLng([lat, lng]); } - fetch("http://roy.e.koeki-u.ac.jp/~c123139/map/save_location.rb", { + fetch("http://roy.e.koeki-u.ac.jp/~c123139/map/2025-shino/save_location.rb", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ lat: lat, lng: lng, group: group }) @@ -127,7 +127,7 @@ // 他の人の位置を読み込んで表示 function loadOthers() { - fetch("http://roy.e.koeki-u.ac.jp/~c123139/map/get_locations.rb") + fetch("http://roy.e.koeki-u.ac.jp/~c123139/map/2025-shino/get_locations.rb") .then(res => res.json()) .then(data => { // 既存の他人のマーカーを削除