Skip to content

Commit

Permalink
fix: don't force opacity to be assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
ger-benjamin committed Oct 8, 2024
1 parent 5d11f43 commit fd1bdbc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/SldStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,10 @@ export class SldStyleParser implements StyleParser<string> {
}

textSymbolizer.color = color ? color : '#000000';
textSymbolizer.opacity = isNil(opacity) ? 1 : numberExpression(opacity);

if (!isNil(opacity)) {
textSymbolizer.opacity = numberExpression(opacity);
}

const haloRadius = get(sldSymbolizer, 'Halo.Radius.#text');
if (!isNil(haloRadius)) {
Expand Down

0 comments on commit fd1bdbc

Please sign in to comment.