Remove unused comments/code
This commit is contained in:
parent
1bc68692cc
commit
47d1fca78f
|
@ -92,19 +92,6 @@
|
||||||
|
|
||||||
polyline.bindPopup(tagsContent+"<br>"+buttons);
|
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 => {
|
.catch(error => {
|
||||||
|
@ -114,11 +101,6 @@
|
||||||
const control = new L.Control.SimpleLocate({
|
const control = new L.Control.SimpleLocate({
|
||||||
position: "topleft",
|
position: "topleft",
|
||||||
className: "button-locate",
|
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);
|
}).addTo(map);
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue