Show / Hide Table of Contents

    Class ImageStyle

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

    Constructors

    | Improve this Doc View Source

    ImageStyle()

    Declaration
    public ImageStyle()

    Properties

    | Improve this Doc View Source

    BitmapId

    This identifies bitmap in the BitmapRegistry.

    Declaration
    public int BitmapId { get; set; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc 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
    System.Boolean
    | Improve this Doc 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.

    | Improve this Doc 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
    System.Double
    | Improve this Doc View Source

    SymbolScale

    Scale of the symbol (defaults to 1)

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

    Setting the symbolscale to '2.0' doubles the size of the symbol, where a scale of 0.5 makes the scale half the size of the original image

    | Improve this Doc View Source

    UnitType

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

    Implements

    IStyle
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX