diff --git a/map/gps/gps-chase.js b/map/gps/gps-chase.js index 483255d..f010fdf 100644 --- a/map/gps/gps-chase.js +++ b/map/gps/gps-chase.js @@ -36,14 +36,9 @@ "ここは lat="+latlng.lat+", lng="+latlng.lng+" です." ).openPopup(); var x=latlang.la,y=latlang.lang; - if(x>38.893033 ||x<38.892548 ||y>139.819066 ||y<139.819602) + if(x<38.893033 && x>38.892548 && y>139.819066 && y<139.819602) {alert("goal!"); - - navigator.geolocation.clearWatch(watchId); - document.getElementById("title").textContent = "stop"; - gpsmarker.setPopupContent("停めました"); - - + stopGPS(); } // ★★★★★ ここまでの latlng.lat と latlng.lng を