Search Results for

    Show / Hide Table of Contents

    Interface IMapControl

    Inherited Members
    IDisposable.Dispose()
    Namespace: Mapsui.UI
    Assembly: Mapsui.dll
    Syntax
    public interface IMapControl : IDisposable

    Properties

    | Edit this page View Source

    Map

    Declaration
    Map Map { get; set; }
    Property Value
    Type Description
    Map

    Methods

    | Edit this page View Source

    GetMapInfo(ScreenPosition, IEnumerable<ILayer>)

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

    Declaration
    MapInfo GetMapInfo(ScreenPosition screenPosition, IEnumerable<ILayer> layers)
    Parameters
    Type Name Description
    ScreenPosition screenPosition

    Screen position to check for widgets and features.

    IEnumerable<ILayer> layers

    The layers to query.

    Returns
    Type Description
    MapInfo
    | Edit this page View Source

    GetPixelDensity()

    Returns the number of pixels per device independent unit

    Declaration
    float? GetPixelDensity()
    Returns
    Type Description
    float?
    | Edit this page View Source

    GetSnapshot(IEnumerable<ILayer>?, RenderFormat, int)

    Create a snapshot form map as PNG image

    Declaration
    byte[] GetSnapshot(IEnumerable<ILayer>? layers = null, RenderFormat renderFormat = RenderFormat.Png, int quality = 100)
    Parameters
    Type Name Description
    IEnumerable<ILayer> layers

    Layers that should be included in snapshot

    RenderFormat renderFormat

    render format

    int quality

    default quality is 90 is applicable for webp and jpg

    Returns
    Type Description
    byte[]

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

    | Edit this page View Source

    InvalidateCanvas()

    Declaration
    void InvalidateCanvas()
    | Edit this page View Source

    OpenInBrowser(string)

    Declaration
    void OpenInBrowser(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

    ToCoordinateInDeviceIndependentUnits(MPoint)

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

    Declaration
    MPoint ToCoordinateInDeviceIndependentUnits(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

    ToCoordinateInRawPixels(MPoint)

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

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

    Coordinate in device independent units (or DIP or DP)

    Returns
    Type Description
    MPoint

    Coordinate in raw 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)
    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX