Add geocoding logic/store

This commit is contained in:
Eli Ribble 2026-04-05 03:47:22 +00:00
parent 5681ff2283
commit b6cfbee102
No known key found for this signature in database
4 changed files with 68 additions and 12 deletions

View file

@ -23,7 +23,6 @@
if (response !== undefined && response.features.length > 0) {
const addressInput = document.querySelector("address-input");
addressInput.SetValue(response.features[0]);
setLocationInputs(response.features[0]);
}
}
async function handleMarkerDrag(lngLat) {
@ -35,7 +34,6 @@
if (response !== undefined && response.features.length > 0) {
const addressInput = document.querySelector("address-input");
addressInput.SetValue(response.features[0]);
setLocationInputs(response.features[0]);
}
}
// Check for source identification
@ -112,8 +110,6 @@
center: l.geometry.coordinates,
zoom: 14,
});
setLocationInputs(l);
});
document.querySelectorAll(".source-card").forEach((card) => {
card.style.cursor = "pointer";