diff --git a/map/gps/gps-chase.js b/map/gps/gps-chase.js index 01a0db8..62d59f6 100755 --- a/map/gps/gps-chase.js +++ b/map/gps/gps-chase.js @@ -36,12 +36,12 @@ "ここは lat="+latlng.lat+", lng="+latlng.lng+" です." ).openPopup(); var x = latlng.lat, y = latlng.lng; - if (x > 38.892185 && x < 38.892511 && y > 139.819694 && y < 139.819254) { - alert("GOAL!"); + if(x > 38.892960 && x < 38.893068 && y > 139.817843 && y <139.818283){ + alert("おめでとう!!"); stopGPS(); - } else { - document.getElementById("title").textContent - = "ゴールは公益大のどこかだよ〜" + }else { + document.getElementByID("title").textContent + ="裏庭に行ってみて!"; } // ★★★★★ ここまでの latlng.lat と latlng.lng を // if文などで判定して、特定の場所に近づいたら「GOAL!」と