GeoBlazor Pro
dymaptic.GeoBlazor.Pro
dymaptic.GeoBlazor.Pro.Model
GeoJSONStyle Class
Represents style properties for GeoJSON features, supporting common SVG and CSS styling attributes. Based on <a target=”_blank” href=”https://github.com/mapbox/simplestyle-spec/tree/master/1.1.0”>Mapbox SimpleStyle Spec</a>
public record GeoJSONStyle : System.IEquatable<dymaptic.GeoBlazor.Pro.Model.GeoJSONStyle>
Inheritance System.Object 🡒 GeoJSONStyle
Implements System.IEquatable<GeoJSONStyle>
Remarks
COLOR RULES: Colors can be in short form: “#ace”, or long form: “#aaccee”, with or without the # prefix. Colors are interpreted the same as in CSS, in #RRGGBB and #RGB order, but other color formats or named colors are not supported.
Constructors
GeoJSONStyle() Constructor
public GeoJSONStyle();
Fields
GeoJSONStyle.StyleProperties Field
Don’t add these properties to GeoBlazor graphic attributes.
public static string[] StyleProperties;
Field Value
Properties
GeoJSONStyle.Description Property
A description to show when this item is clicked or hovered over
public string? Description { get; init; }
Property Value
GeoJSONStyle.Fill Property
The color of the interior of a polygon. Default value “#555555”. Some schemas may also apply this to the center of a marker/point. Value must follow the Color Rules defined in the remarks section of this class.
public string? Fill { get; init; }
Property Value
GeoJSONStyle.FillOpacity Property
The opacity of the interior of a polygon. Default value 0.6. Value must be a floating point number greater than or equal to zero and less or equal to than one.
public System.Nullable<double> FillOpacity { get; init; }
Property Value
System.Nullable<System.Double>
GeoJSONStyle.FontSize Property
The font size for the text label (e.g., “12px”, “1em”).
public string? FontSize { get; init; }
Property Value
GeoJSONStyle.FontStyle Property
The font style for the text label (e.g., “normal”, “italic”, “oblique”).
public string? FontStyle { get; init; }
Property Value
GeoJSONStyle.FontWeight Property
The font weight for the text label (e.g., “normal”, “bold”, “700”).
public string? FontWeight { get; init; }
Property Value
GeoJSONStyle.MarkerColor Property
The marker’s color. Default value “#7e7e7e”. Value must follow the Color Rules defined in the remarks section of this class.
public string? MarkerColor { get; init; }
Property Value
GeoJSONStyle.MarkerSize Property
Specify the size of the marker. sizes can be different pixel sizes in different implementations. Value can be one of “small” (8pt), “medium” (12pt), “large” (16pt), or a pixel or point value (e.g., “4px”, “2pt”). Plain numbers are interpreted as points. Default “12pt”.
public string? MarkerSize { get; init; }
Property Value
GeoJSONStyle.MarkerSymbol Property
A symbol to position in the center of this icon if not provided or “”, no symbol is overlaid and only the marker is shown. Allowed values include - Icon ID - An integer 0 through 9 - A lowercase character “a” through “z”
public string? MarkerSymbol { get; init; }
Property Value
GeoJSONStyle.Stroke Property
The color of a line as part of a polygon, polyline, or multigeometry. Default value “#555555”. Value must follow the Color Rules defined in the remarks section of this class.
public string? Stroke { get; init; }
Property Value
GeoJSONStyle.StrokeDasharray Property
A list of comma and/or white space separated numbers that specify the pattern of dashes and gaps to use for the stroke. Supported values include: - 4 (“Dash”) - 4,3,1,3 (“Dash Dot”) - 1,2 (“Dot”) - 8,3 (“Long Dash”) - 8,3,1,3 (“Long Dash Dot”) - 8,3,1,3,1,3 (“Long Dash Dot Dot”) - 4,1 (“Short Dash”) - 4,1,1,1 (“Short Dash Dot”) - 4,1,1,1,1,1 (“Short Dash Dot Dot”) - 1 (“Short Dot”)
public string? StrokeDasharray { get; init; }
Property Value
GeoJSONStyle.StrokeLinecap Property
The shape to be used at the end of open subpaths when they are stroked (e.g., “butt”, “round”, “square”).
public string? StrokeLinecap { get; init; }
Property Value
GeoJSONStyle.StrokeLinejoin Property
The shape to be used at the corners of paths or basic shapes when they are stroked (e.g., “miter”, “round”, “bevel”).
public string? StrokeLinejoin { get; init; }
Property Value
GeoJSONStyle.StrokeOpacity Property
The opacity of the line component of a polygon, polyline, or multigeometry. Default value 1.0. Value must be a floating point number greater than or equal to zero and less or equal to than one.
public System.Nullable<double> StrokeOpacity { get; init; }
Property Value
System.Nullable<System.Double>
GeoJSONStyle.StrokeWidth Property
The width of the line component of a polygon, polyline, or multigeometry. Default value 0.75(pt). value must be a floating point number greater than or equal to 0.
public System.Nullable<double> StrokeWidth { get; init; }
Property Value
System.Nullable<System.Double>
GeoJSONStyle.Text Property
The text label to display on the feature.
public string? Text { get; init; }
Property Value
GeoJSONStyle.Title Property
A title to show when this item is clicked or hovered over
public string? Title { get; init; }