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:
parent
952385b1cd
commit
34bb2d6eb8
2 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue