Remove unused comments/code

This commit is contained in:
Chandler Swift 2025-02-12 22:34:25 -06:00
parent 1bc68692cc
commit 47d1fca78f
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -92,19 +92,6 @@
polyline.bindPopup(tagsContent+"<br>"+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);
</script>