diff --git a/map/gps/gps-chase.js b/map/gps/gps-chase.js index 9b0f721..212aa55 100644 --- a/map/gps/gps-chase.js +++ b/map/gps/gps-chase.js @@ -36,10 +36,9 @@ "ここは lat="+latlng.lat+", lng="+latlng.lng+" です." ).openPopup(); tar x = latlng.lng, y = latlng.lat; - if (x > 38.892010 && x < 38.894715 && y > 139.818406 && y < 139.819844){ + if (x > 38.892010 && x < 38.894715 && y > 139.818406 && y < 139.819844) alert("ゴール!!"); stopGPS(); - } // ★★★★★ ここまでの latlng.lat と latlng.lng を // if文などで判定して、特定の場所に近づいたら「GOAL!」と // 表示するように変えてみよ。