diff --git a/koki/map.js b/koki/map.js index 6dfdbb9..62ee03d 100644 --- a/koki/map.js +++ b/koki/map.js @@ -48,6 +48,11 @@ navigator.geolocation.clearWatch(watchId); } } + function reset() { + if (stamp == 1) { + stamp -= 1; + } + } mymap.options.singleClickTimeout = 250; mymap.on('singleclick', function(e) { if (true){ @@ -73,4 +78,5 @@ document.getElementById("start").addEventListener("click", tryWatchGPS); document.getElementById("stop").addEventListener("click", stopGPS); + document.getElementById("reset").addEventListener("click", reset); }, false);