diff --git a/map/gps/gps-chase.js b/map/gps/gps-chase.js index 2a57d8c..7cfab15 100644 --- a/map/gps/gps-chase.js +++ b/map/gps/gps-chase.js @@ -26,9 +26,6 @@ let d = L.marker([38.894329, 139.819570]).bindPopup(popup4).addTo(mymap); d = L.latLng(38.894329, 139.819570); - var gpsmarker = L.marker(mymap.getCenter()).addTo(mymap); - gpsmarker.bindPopup("STARTおしてね").openPopup(); - var nTrial = 100 var watchId = null; // 最初はnullにしておく function stopGPS() { // watchが動いていたら止めてnullにする @@ -36,7 +33,7 @@ if (watchId != null) { // nullかどうかで比較しないとだめ(初期値0) navigator.geolocation.clearWatch(watchId); document.getElementById("title").textContent = "stop"; - gpsmarker.setPopupContent("停めました"); + gpsmarker.setPopupContent("問題だよ!"); } watchId = null; }