mirror of
https://github.com/umap-project/umap.git
synced 2025-05-06 06:21:49 +02:00
fix: accept long floats for latitude and longitude
Without "step: any", long floats are considered invalid.
This commit is contained in:
parent
625131f7df
commit
36a0e36c14
1 changed files with 20 additions and 2 deletions
|
@ -680,8 +680,26 @@ L.U.Marker = L.Marker.extend({
|
|||
appendEditFieldsets: function (container) {
|
||||
L.U.FeatureMixin.appendEditFieldsets.call(this, container)
|
||||
const coordinatesOptions = [
|
||||
['_latlng.lat', { handler: 'FloatInput', label: L._('Latitude') }],
|
||||
['_latlng.lng', { handler: 'FloatInput', label: L._('Longitude') }],
|
||||
[
|
||||
'_latlng.lat',
|
||||
{
|
||||
handler: 'FloatInput',
|
||||
label: L._('Latitude'),
|
||||
step: 'any',
|
||||
min: -90,
|
||||
max: 90,
|
||||
},
|
||||
],
|
||||
[
|
||||
'_latlng.lng',
|
||||
{
|
||||
handler: 'FloatInput',
|
||||
label: L._('Longitude'),
|
||||
step: 'any',
|
||||
min: -180,
|
||||
max: 180,
|
||||
},
|
||||
],
|
||||
]
|
||||
const builder = new L.U.FormBuilder(this, coordinatesOptions, {
|
||||
callback: function () {
|
||||
|
|
Loading…
Reference in a new issue