Search Results for

    Show / Hide Table of Contents

    Class SymbolStyle

    Inheritance
    object
    Style
    VectorStyle
    SymbolStyle
    CalloutStyle
    Implements
    IStyle
    Inherited Members
    VectorStyle.Line
    VectorStyle.Outline
    VectorStyle.Fill
    VectorStyle.Equals(VectorStyle)
    Style.MinVisible
    Style.MaxVisible
    Style.Enabled
    Style.Opacity
    Style.Equals(Style)
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Styles
    Assembly: Mapsui.dll
    Syntax
    public class SymbolStyle : VectorStyle, IStyle

    Properties

    | Edit this page View Source

    BitmapId

    Id of the image in the BitmapRegistry, if SymbolType is Image

    Declaration
    public int BitmapId { get; set; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    BlendModeColor

    When BlendModeColor is set a BitmapType.Picture (e.g. used for SVG) will be drawn in the BlendModeColor ignoring the colors of the Picture itself.

    Declaration
    public Color? BlendModeColor { get; set; }
    Property Value
    Type Description
    Color
    | Edit this page View Source

    DefaultHeight

    Declaration
    public static double DefaultHeight { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    DefaultWidth

    Declaration
    public static double DefaultWidth { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    RotateWithMap

    When true a symbol will rotate along with the rotation of the map. This is useful if you need to symbolize the direction in which a vehicle is moving. When the symbol is false it will retain it's position to the screen. This is useful for pins like symbols. The default is false. This mode is not supported in the WPF renderer.

    Declaration
    public bool RotateWithMap { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SymbolOffset

    Gets or sets the offset in pixels of the symbol.

    Declaration
    public Offset SymbolOffset { get; set; }
    Property Value
    Type Description
    Offset
    Remarks

    The symbol offset is scaled with the SymbolScale property and refers to the offset of SymbolScale=1.0.

    | Edit this page View Source

    SymbolOffsetRotatesWithMap

    Should SymbolOffset position rotate with map

    Declaration
    public bool SymbolOffsetRotatesWithMap { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SymbolRotation

    Gets or sets the rotation of the symbol in degrees (clockwise is positive)

    Declaration
    public double SymbolRotation { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    SymbolScale

    Scale of the symbol (defaults to 1)

    Declaration
    public double SymbolScale { get; set; }
    Property Value
    Type Description
    double
    Remarks

    Setting the SymbolScale to '2.0' doubles the size of the symbol. A SymbolScale of 0.5 makes the scale half the size. of the original image

    | Edit this page View Source

    SymbolType

    Declaration
    public SymbolType SymbolType { get; set; }
    Property Value
    Type Description
    SymbolType
    | Edit this page View Source

    UnitType

    Declaration
    public UnitType UnitType { get; set; }
    Property Value
    Type Description
    UnitType

    Methods

    | Edit this page View Source

    Equals(SymbolStyle?)

    Declaration
    public bool Equals(SymbolStyle? symbolStyle)
    Parameters
    Type Name Description
    SymbolStyle symbolStyle
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    VectorStyle.Equals(object?)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    VectorStyle.GetHashCode()

    Operators

    | Edit this page View Source

    operator ==(SymbolStyle?, SymbolStyle?)

    Declaration
    public static bool operator ==(SymbolStyle? symbolStyle1, SymbolStyle? symbolStyle2)
    Parameters
    Type Name Description
    SymbolStyle symbolStyle1
    SymbolStyle symbolStyle2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(SymbolStyle?, SymbolStyle?)

    Declaration
    public static bool operator !=(SymbolStyle? symbolStyle1, SymbolStyle? symbolStyle2)
    Parameters
    Type Name Description
    SymbolStyle symbolStyle1
    SymbolStyle symbolStyle2
    Returns
    Type Description
    bool

    Implements

    IStyle

    Extension Methods

    StyleExtensions.GetStylesToApply(IStyle?, double)
    StyleExtensions.ShouldBeApplied(IStyle?, double)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX