Show / Hide Table of Contents

    Interface IViewport

    Inherited Members
    IReadOnlyViewport.ViewportChanged
    IReadOnlyViewport.Center
    IReadOnlyViewport.Resolution
    IReadOnlyViewport.Extent
    IReadOnlyViewport.Width
    IReadOnlyViewport.Height
    IReadOnlyViewport.Rotation
    IReadOnlyViewport.HasSize
    IReadOnlyViewport.IsRotated
    IReadOnlyViewport.ScreenToWorld(Point)
    IReadOnlyViewport.ScreenToWorld(Double, Double)
    IReadOnlyViewport.WorldToScreen(Point)
    IReadOnlyViewport.WorldToScreen(Double, Double)
    IReadOnlyViewport.WorldToScreenUnrotated(Double, Double)
    IReadOnlyViewport.WorldToScreenUnrotated(Point)
    IReadOnlyViewport.WindowExtent
    Namespace: Mapsui
    Assembly: Mapsui.dll
    Syntax
    public interface IViewport : IReadOnlyViewport

    Methods

    | Improve this Doc View Source

    SetCenter(ReadOnlyPoint)

    Declaration
    void SetCenter(ReadOnlyPoint center)
    Parameters
    Type Name Description
    ReadOnlyPoint center
    | Improve this Doc View Source

    SetCenter(Double, Double)

    Declaration
    void SetCenter(double x, double y)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    | Improve this Doc View Source

    SetResolution(Double)

    Declaration
    void SetResolution(double resolution)
    Parameters
    Type Name Description
    System.Double resolution
    | Improve this Doc View Source

    SetResolution(Double, ReadOnlyPoint)

    Declaration
    void SetResolution(double resolution, ReadOnlyPoint centerOfZoom)
    Parameters
    Type Name Description
    System.Double resolution
    ReadOnlyPoint centerOfZoom
    | Improve this Doc View Source

    SetRotation(Double)

    Declaration
    void SetRotation(double rotation)
    Parameters
    Type Name Description
    System.Double rotation
    | Improve this Doc View Source

    SetSize(Double, Double)

    Declaration
    void SetSize(double width, double height)
    Parameters
    Type Name Description
    System.Double width
    System.Double height
    | Improve this Doc View Source

    Transform(Point, Point, Double, Double)

    Moving the position of viewport to a new one

    Declaration
    void Transform(Point position, Point previousPosition, double deltaResolution = 1, double deltaRotation = 0)
    Parameters
    Type Name Description
    Point position

    Current center of touch

    Point previousPosition

    Previous center of touch

    System.Double deltaResolution

    Change of resolution for transformation (<1: zoom out, >1: zoom in)

    System.Double deltaRotation

    Change of rotation

    Extension Methods

    ViewportExtensions.ToSKMatrix(IViewport)
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX