Merge pull request #1099 from umap-project/1090-followup
Follow up on #1090 for overlay’s opacity
This commit is contained in:
commit
b41a8cd39a
2 changed files with 2 additions and 2 deletions
|
@ -808,7 +808,7 @@ L.FormBuilder.Range = L.FormBuilder.Input.extend({
|
|||
'umap-field-datalist',
|
||||
this.getHelpTextParent()
|
||||
)
|
||||
datalist.id = `range-${this.options.label}`
|
||||
datalist.id = `range-${this.options.label || this.name}`
|
||||
this.input.setAttribute('list', datalist.id)
|
||||
var options = ''
|
||||
for (var i = this.options.min; i <= this.options.max; i += this.options.step) {
|
||||
|
|
|
@ -1651,7 +1651,7 @@ L.U.Map.include({
|
|||
],
|
||||
[
|
||||
'options.overlay.opacity',
|
||||
{ handler: 'Range', min: 0, max: 1, step: 'any', placeholder: L._('opacity') },
|
||||
{ handler: 'Range', min: 0, max: 1, step: 0.1, label: L._('Opacity') },
|
||||
],
|
||||
['options.overlay.tms', { handler: 'Switch', label: L._('TMS format') }],
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue