feat: add hidden input for geolocation diameter
This commit is contained in:
parent
f1e16e8c74
commit
1431aab04a
|
@ -85,6 +85,11 @@ const backendUrl = import.meta.env.PUBLIC_BACKEND_URL
|
|||
</p>
|
||||
</div>
|
||||
<input name='geolocation' id='geolocation-input' hidden />
|
||||
<input
|
||||
name='geolocation-diameter'
|
||||
id='geolocation-diameter-input'
|
||||
hidden
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
|
|
@ -167,6 +167,10 @@ const DiameterControl = L.Control.extend({
|
|||
targetLocationCircle.setRadius(targetLocationCircleRadius)
|
||||
|
||||
diameterText.innerText = `${targetLocationCircleRadius.toString()}m`
|
||||
updateInputValue(
|
||||
"geolocation-diameter-input",
|
||||
targetLocationCircleRadius.toString()
|
||||
)
|
||||
L.DomEvent.stop(ev)
|
||||
})
|
||||
|
||||
|
@ -181,6 +185,10 @@ const DiameterControl = L.Control.extend({
|
|||
)
|
||||
targetLocationCircle.setRadius(targetLocationCircleRadius)
|
||||
diameterText.innerText = `${targetLocationCircleRadius.toString()}m`
|
||||
updateInputValue(
|
||||
"geolocation-diameter-input",
|
||||
targetLocationCircleRadius.toString()
|
||||
)
|
||||
|
||||
L.DomEvent.stop(ev)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user