diff --git a/static/index.html b/static/index.html index e09b26e..5041587 100644 --- a/static/index.html +++ b/static/index.html @@ -92,19 +92,6 @@ polyline.bindPopup(tagsContent+"
"+buttons); - // // Listen for popup open to attach event listeners - // polyline.on('popupopen', function(e) { - // document.querySelectorAll(".popup-btn").forEach(button => { - // button.addEventListener("click", async function(event) { - // const value = event.target.getAttribute("data-value"); - - // await fetch("/api/foo", { - // method: "POST", - // body: value - // }); - // }); - // }); - // }); } }) .catch(error => { @@ -114,11 +101,6 @@ const control = new L.Control.SimpleLocate({ position: "topleft", className: "button-locate", - afterClick: (result) => { - console.log("afterClick", result); - if (!result.geolocation) console.log("Geolocation Error"); - if (!result.orientation) console.log("Orientation Error"); - }, }).addTo(map);