diff --git a/map/gps/gps-chase.js b/map/gps/gps-chase.js index 3068c9d..055810c 100644 --- a/map/gps/gps-chase.js +++ b/map/gps/gps-chase.js @@ -38,6 +38,7 @@ var x = latlng.lat, y = latlng.lng; if(38.921 < x || x < 38.923 && 139.845 < y || y < 139.846) { alert("ゴール!"); + stopGPS(); } // ★★★★★ ここまでの latlng.lat と latlng.lng を // if文などで判定して、特定の場所に近づいたら「GOAL!」と