Skip to content

Commit

Permalink
Fix Style color object for IconStyleOptions.
Browse files Browse the repository at this point in the history
- OL js represents RGBA as int array and setting Color breaks JSInterop when string.
- Future extensions could include allowing Color Setting in the SetCustomImageStyle method.
- Setting the style color allows image markers to be tinted.
  • Loading branch information
Horndev committed Oct 17, 2024
1 parent 55eeb45 commit 3bb8ff9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenLayers.Blazor/StyleOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public class IconStyleOptions : ImageStyleOptions
[JsonConverter(typeof(JsonStringEnumKebabLowerConverter))]
public IconAnchorUnits AnchorYUnits { get; set; }

public string Color { get; set; }
public int[] Color { get; set; }

public string CrossOrigin { get; set; }
public double? Width { get; set; }
Expand Down

0 comments on commit 3bb8ff9

Please sign in to comment.