Fix setting address on marker drag of standing water page
This commit is contained in:
parent
c39837faba
commit
d03ae73285
2 changed files with 2 additions and 6 deletions
|
|
@ -246,9 +246,9 @@
|
|||
</div>
|
||||
<input type="hidden" id="map-zoom" name="map-zoom" />
|
||||
<input type="hidden" id="address-country" name="address-country" />
|
||||
<input type="hidden" id="address-locality" name="address-locality" />
|
||||
<input type="hidden" id="address-number" name="address-number" />
|
||||
<input type="hidden" id="address-postalcode" name="address-postalcode" />
|
||||
<input type="hidden" id="address-locality" name="address-locality" />
|
||||
<input type="hidden" id="address-region" name="address-region" />
|
||||
<input type="hidden" id="address-street" name="address-street" />
|
||||
<input type="hidden" id="latitude" name="latitude" />
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
if (response !== undefined && response.features.length > 0) {
|
||||
const addressInput = document.querySelector("address-input");
|
||||
addressInput.SetValue(response.features[0]);
|
||||
setLocationInputs(response.features[0]);
|
||||
}
|
||||
}
|
||||
function setLocationInputs(location) {
|
||||
|
|
@ -267,11 +268,6 @@
|
|||
<div class="row mb-3">
|
||||
<!-- Hidden fields for location data -->
|
||||
<input type="hidden" id="address-country" name="address-country" />
|
||||
<input
|
||||
type="hidden"
|
||||
id="address-postcode"
|
||||
name="address-postcode"
|
||||
/>
|
||||
<input
|
||||
type="hidden"
|
||||
id="address-locality"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue