diff options
author | Markus Koch <markus@notsyncing.net> | 2020-05-05 19:44:05 +0200 |
---|---|---|
committer | Markus Koch <markus@notsyncing.net> | 2020-05-05 19:44:05 +0200 |
commit | 2054d66191d2d7885f59ead1be882ca694feccfe (patch) | |
tree | 86d4556cff02adaba53c6de6e10225733186eec6 | |
parent | 3610b8b610dee65ac318c2a71b18a03f6cd573e5 (diff) | |
download | lifomapserver-2054d66191d2d7885f59ead1be882ca694feccfe.tar.gz lifomapserver-2054d66191d2d7885f59ead1be882ca694feccfe.tar.bz2 lifomapserver-2054d66191d2d7885f59ead1be882ca694feccfe.zip |
Fix property name check in streetlabels
-rw-r--r-- | htdocs/leafletjs/Leaflet.streetlabels.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/htdocs/leafletjs/Leaflet.streetlabels.js b/htdocs/leafletjs/Leaflet.streetlabels.js index 8aee67b..5342bea 100644 --- a/htdocs/leafletjs/Leaflet.streetlabels.js +++ b/htdocs/leafletjs/Leaflet.streetlabels.js @@ -42,8 +42,7 @@ L.StreetLabels = L.LabelTextCollision _text: function (ctx, layer) { - if (layer && layer.feature && layer.feature.properties && layer.feature.properties[this.options.propertyName] !== 'undefined') { - + if (layer && layer.feature && layer.feature.properties && layer.feature.properties[this.options.propertyName] !== undefined) { if (this.options.showLabelIf) { if (this.options.showLabelIf.call(this, layer.feature) === false) { return; |