Search Results for

    Show / Hide Table of Contents

    Class Pin

    Inheritance
    object
    Pin
    Implements
    IFeatureProvider
    IDisposable
    INotifyPropertyChanged
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.UI.Forms
    Assembly: Mapsui.UI.Forms.dll
    Syntax
    public class Pin : IFeatureProvider, IDisposable, INotifyPropertyChanged

    Constructors

    | Edit this page View Source

    Pin()

    Initializes a new instance of the Pin class

    Declaration
    public Pin()
    | Edit this page View Source

    Pin(MapView)

    Initializes a new instance of the Pin class

    Declaration
    public Pin(MapView mapView)
    Parameters
    Type Name Description
    MapView mapView

    MapView to which this pin belongs

    Properties

    | Edit this page View Source

    Address

    Adress (like street) of pin

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

    Anchor

    Anchor of bitmap in pixel

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

    Callout

    Gets the callout

    Declaration
    public Callout Callout { get; }
    Property Value
    Type Description
    Callout

    Callout for this pin

    | Edit this page View Source

    Color

    Color of pin

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

    Feature

    Mapsui feature for this pin

    Declaration
    public GeometryFeature? Feature { get; }
    Property Value
    Type Description
    GeometryFeature

    Mapsui feature

    | Edit this page View Source

    Height

    Height of the bitmap after scaling, if there is one, if not, than -1

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

    Icon

    Byte[] holding the bitmap informations

    Declaration
    public byte[]? Icon { get; set; }
    Property Value
    Type Description
    byte[]
    | Edit this page View Source

    IsVisible

    Determins, if the pin is drawn on map

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

    Label

    Label of pin

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

    MaxVisible

    MaxVisible for pin in resolution of Mapsui (smaller values are higher zoom levels)

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

    MinVisible

    MinVisible for pin in resolution of Mapsui (smaller values are higher zoom levels)

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

    Position

    Position of pin, place where anchor is

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

    RotateWithMap

    When true a symbol will rotate along with the rotation of the map. The default is false.

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

    Rotation

    Rotation in degrees around the anchor point

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

    Scale

    Scaling of pin

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

    Svg

    String holding the Svg image informations

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

    Tag

    Tag holding free data

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

    Transparency

    Transparency of pin

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

    Type

    Type of pin. There are some predefined pins.

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

    Width

    Width of the bitmap after scaling, if there is one, if not, than -1

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

    Methods

    | Edit this page View Source

    Dispose()

    Declaration
    public virtual void Dispose()
    | Edit this page View Source

    Equals(object?)

    Determines whether the specified object is equal to the current Pin.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current Pin.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current Pin; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    HideCallout()

    Hide corresponding callout

    Declaration
    public void HideCallout()
    | Edit this page View Source

    IsCalloutVisible()

    Check visibility for corresponding callout

    Declaration
    public bool IsCalloutVisible()
    Returns
    Type Description
    bool

    True, if callout is visible on map

    | Edit this page View Source

    OnPropertyChanged(string?)

    Declaration
    protected virtual void OnPropertyChanged(string? propertyName = null)
    Parameters
    Type Name Description
    string propertyName
    | Edit this page View Source

    SetField<T>(ref T, T, string?)

    Declaration
    protected bool SetField<T>(ref T field, T value, string? propertyName = null)
    Parameters
    Type Name Description
    T field
    T value
    string propertyName
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    ShowCallout()

    Show corresponding callout

    Declaration
    public void ShowCallout()

    Events

    | Edit this page View Source

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler? PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Operators

    | Edit this page View Source

    operator ==(Pin?, Pin?)

    Declaration
    public static bool operator ==(Pin? left, Pin? right)
    Parameters
    Type Name Description
    Pin left
    Pin right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(Pin?, Pin?)

    Declaration
    public static bool operator !=(Pin? left, Pin? right)
    Parameters
    Type Name Description
    Pin left
    Pin right
    Returns
    Type Description
    bool

    Implements

    IFeatureProvider
    IDisposable
    INotifyPropertyChanged
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX