Skip to content

Commit

Permalink
type icon fillColor assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Mar 5, 2024
1 parent 5fdc2bd commit b149041
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/layer/styleParser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,10 @@ export default layer => {
cat.style.icon[key] = cat.style[key]
})

// The fillColor will only be required by svgSymbols type icons, e.g. 'dot'
if (defaultStyle.icon?.type) {
cat.style.icon.fillColor = cat.style.fillColor
}

}
}

0 comments on commit b149041

Please sign in to comment.