diff --git a/map/gps/gps-chase.js b/map/gps/gps-chase.js index ee09d9c..cee78cc 100644 --- a/map/gps/gps-chase.js +++ b/map/gps/gps-chase.js @@ -85,6 +85,14 @@ function checkButton(){ answer = document.getElementById( "mytext" ).value ; msg.innerText = '送信できました'; + var latlng1 = L.latLng([38.879232, 139.853824]); + if(latlng.distanceTo(latlng1) < 50){ + if(answer == 2236){ + alert("正解です"); + }else{ + alert("不正解です"); + } + } } function onError(err) {