diff --git a/map/gps-chase/gps-chase.js b/map/gps-chase/gps-chase.js index ef648c1..58994b4 100644 --- a/map/gps-chase/gps-chase.js +++ b/map/gps-chase/gps-chase.js @@ -26,8 +26,10 @@ mymap.on('move', function(e) { if(latlng.distanceTo(goul) <= 50){ if(!g){ + g = true; alert("ゴール!"); stopGPS(); + } } });