fix null opacity

partly revert 952385 - since ´null´ is actually used in ternary fields.
Remove null opacity from the testcase. It should be either unset or a
numeric value.
This commit is contained in:
Joachim Schleicher 2023-11-14 20:48:11 +01:00
parent 952385b1cd
commit 34bb2d6eb8
2 changed files with 1 additions and 3 deletions

View file

@ -161,7 +161,7 @@ L.Util.detectFileType = (f) => {
} }
L.Util.usableOption = (options, option) => L.Util.usableOption = (options, option) =>
options[option] !== undefined && options[option] !== '' && options[option] !== null options[option] !== undefined && options[option] !== ''
L.Util.greedyTemplate = (str, data, ignore) => { L.Util.greedyTemplate = (str, data, ignore) => {
function getValue(data, path) { function getValue(data, path) {

View file

@ -92,14 +92,12 @@ var defaultDatalayerData = function (custom) {
displayOnLoad: true, displayOnLoad: true,
id: 62, id: 62,
pictogram_url: null, pictogram_url: null,
opacity: null,
weight: null, weight: null,
fillColor: '', fillColor: '',
color: '', color: '',
stroke: true, stroke: true,
smoothFactor: null, smoothFactor: null,
dashArray: '', dashArray: '',
fillOpacity: null,
fill: true, fill: true,
} }
return L.extend({}, _default, custom) return L.extend({}, _default, custom)