Skip to content

Commit

Permalink
Merge pull request #1094 from openlayers/sdf-color
Browse files Browse the repository at this point in the history
Fall back to default icon-color when drawing SDF
  • Loading branch information
ahocevar authored Feb 25, 2024
2 parents 135aa36 + b4c4452 commit 7b8545b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stylefunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,11 @@ export function stylefunction(
if (haloWidth) {
if (spriteImageData.sdf) {
img = drawIconHalo(
drawSDF(spriteImage, spriteImageData, iconColor),
drawSDF(
spriteImage,
spriteImageData,
iconColor || [0, 0, 0, 1],
),
{
x: 0,
y: 0,
Expand Down

0 comments on commit 7b8545b

Please sign in to comment.