Skip to content

Commit

Permalink
Fix Style color object for IconStyleOptions. (#87)
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 authored Oct 28, 2024
1 parent 1ee0fca commit 7d73045
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 7d73045

Please sign in to comment.