diff --git a/koki/map.js b/koki/map.js index aa928c7..4b2e2dc 100644 --- a/koki/map.js +++ b/koki/map.js @@ -62,12 +62,11 @@ var x =L.latLng([38.919212, 139.828072]); console.log(latlng.distanceTo(x)); if (latlng.distanceTo(x) < 30) { + stamp(); if (stamp == 0) { alert("スタンプゲット!!"); stamp += 1; - stamp(); - } - + } } });