Search Results for

    Show / Hide Table of Contents

    Interface IMapControl

    Namespace: Mapsui.UI
    Assembly: Mapsui.dll
    Syntax
    public interface IMapControl

    Properties

    | Edit this page View Source

    Map

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

    Performance

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

    PixelDensity

    The number of pixel per device independent unit

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

    ReSnapRotationDegrees

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

    Renderer

    Declaration
    IRenderer Renderer { get; }
    Property Value
    Type Description
    IRenderer
    | Edit this page View Source

    UnSnapRotationDegrees

    Declaration
    double UnSnapRotationDegrees { get; set; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    GetMapInfo(MPoint, int)

    Check, if a feature at a given screen position is hit

    Declaration
    MapInfo? GetMapInfo(MPoint screenPosition, int margin = 0)
    Parameters
    Type Name Description
    MPoint screenPosition

    Screen position to check for widgets and features

    int margin

    An optional extra margin around the feature to enlarge the hit area.

    Returns
    Type Description
    MapInfo
    | Edit this page View Source

    GetSnapshot(IEnumerable<ILayer>?)

    Create a snapshot form map as PNG image

    Declaration
    byte[] GetSnapshot(IEnumerable<ILayer>? layers = null)
    Parameters
    Type Name Description
    IEnumerable<ILayer> layers

    Layers that should be included in snapshot

    Returns
    Type Description
    byte[]

    Byte array with snapshot in png format. If there are any problems than returns null.

    | Edit this page View Source

    OpenBrowser(string)

    Declaration
    void OpenBrowser(string url)
    Parameters
    Type Name Description
    string url
    | Edit this page View Source

    Refresh(ChangeType)

    Declaration
    void Refresh(ChangeType changeType = ChangeType.Discrete)
    Parameters
    Type Name Description
    ChangeType changeType
    | Edit this page View Source

    RefreshData(ChangeType)

    Declaration
    void RefreshData(ChangeType changeType = ChangeType.Discrete)
    Parameters
    Type Name Description
    ChangeType changeType
    | Edit this page View Source

    RefreshGraphics()

    Declaration
    void RefreshGraphics()
    | Edit this page View Source

    ToDeviceIndependentUnits(MPoint)

    Converts coordinates in pixels to device independent units (or DIP or DP).

    Declaration
    MPoint ToDeviceIndependentUnits(MPoint coordinateInPixels)
    Parameters
    Type Name Description
    MPoint coordinateInPixels

    Coordinate in pixels

    Returns
    Type Description
    MPoint

    Coordinate in device independent units (or DIP or DP)

    | Edit this page View Source

    ToPixels(MPoint)

    Converts coordinates in device independent units (or DIP or DP) to pixels.

    Declaration
    MPoint ToPixels(MPoint coordinateInDeviceIndependentUnits)
    Parameters
    Type Name Description
    MPoint coordinateInDeviceIndependentUnits

    Coordinate in device independent units (or DIP or DP)

    Returns
    Type Description
    MPoint

    Coordinate in pixels

    | Edit this page View Source

    Unsubscribe()

    Declaration
    void Unsubscribe()

    Events

    | Edit this page View Source

    Info

    Declaration
    event EventHandler<MapInfoEventArgs> Info
    Event Type
    Type Description
    EventHandler<MapInfoEventArgs>

    Extension Methods

    MapControlExtensions.WaitForLoadingAsync(IMapControl)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX