Skip to content

Commit

Permalink
Merge pull request #932 from geoadmin/fix-646-symbolizaion-geojson
Browse files Browse the repository at this point in the history
PB-646: Fix logic to set value in style from literal.
  • Loading branch information
ltshb authored Jun 19, 2024
2 parents 79358e2 + 0aadc33 commit 0fd088c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ OlStyleForPropertyValue.prototype.setOlRotation_ = function (
}

OlStyleForPropertyValue.prototype.getOlStyle_ = function (feature, resolution, properties) {
// A value can be 0
const value = properties[this.key] ? properties[this.key] : this.defaultVal
// Use default value if key is not found in properties
const value = properties[this.key] ?? this.defaultVal
const geomType = getGeomTypeFromGeometry(feature.getGeometry())

let olStyles = null
Expand Down

0 comments on commit 0fd088c

Please sign in to comment.