diff --git a/hogemap.js b/hogemap.js index 8c64f81..2bb3c63 100644 --- a/hogemap.js +++ b/hogemap.js @@ -10,4 +10,6 @@ var maru = L.circle(e.latlng, 20); //まず変数に保存 setTimeout(() => {maru.remove();}, 3000); //3000ミリ秒経ったら消す maru.addTo(mymap); + var newh1 = "北緯" + e.latlng.lat + ", 東経"+e.latlng.lng; + document.getElementById("latlng").textContent = newh1; }); diff --git a/kokudo.html b/kokudo.html index 361279e..3368b56 100644 --- a/kokudo.html +++ b/kokudo.html @@ -8,7 +8,7 @@ -

りののMap

+

りののMap