Merge pull request #1099 from umap-project/1090-followup

Follow up on #1090 for overlay’s opacity
This commit is contained in:
Yohan Boniface 2023-05-22 23:14:15 +02:00 committed by GitHub
commit b41a8cd39a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -808,7 +808,7 @@ L.FormBuilder.Range = L.FormBuilder.Input.extend({
'umap-field-datalist', 'umap-field-datalist',
this.getHelpTextParent() this.getHelpTextParent()
) )
datalist.id = `range-${this.options.label}` datalist.id = `range-${this.options.label || this.name}`
this.input.setAttribute('list', datalist.id) this.input.setAttribute('list', datalist.id)
var options = '' var options = ''
for (var i = this.options.min; i <= this.options.max; i += this.options.step) { for (var i = this.options.min; i <= this.options.max; i += this.options.step) {

View file

@ -1651,7 +1651,7 @@ L.U.Map.include({
], ],
[ [
'options.overlay.opacity', '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') }], ['options.overlay.tms', { handler: 'Switch', label: L._('TMS format') }],
] ]