Add geocoding logic/store
This commit is contained in:
parent
5681ff2283
commit
b6cfbee102
4 changed files with 68 additions and 12 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue