Show / Hide Table of Contents

    Class Navigator

    Inheritance
    System.Object
    Navigator
    Implements
    INavigator
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Mapsui
    Assembly: Mapsui.dll
    Syntax
    public class Navigator : INavigator

    Constructors

    | Improve this Doc View Source

    Navigator(Map, IViewport)

    Declaration
    public Navigator(Map map, IViewport viewport)
    Parameters
    Type Name Description
    Map map
    IViewport viewport

    Properties

    | Improve this Doc View Source

    Navigated

    Declaration
    public EventHandler Navigated { get; set; }
    Property Value
    Type Description
    System.EventHandler

    Methods

    | Improve this Doc View Source

    CenterOn(Point)

    Change center of viewport

    Declaration
    public void CenterOn(Point center)
    Parameters
    Type Name Description
    Point center

    New center point of viewport

    | Improve this Doc View Source

    CenterOn(Double, Double)

    Change center of viewport to X/Y coordinates

    Declaration
    public void CenterOn(double x, double y)
    Parameters
    Type Name Description
    System.Double x

    X value of the new center

    System.Double y

    Y value of the new center

    | Improve this Doc View Source

    NavigateTo(BoundingBox, ScaleMethod)

    Navigate center of viewport to center of extent and change resolution

    Declaration
    public void NavigateTo(BoundingBox extent, ScaleMethod scaleMethod = ScaleMethod.Fit)
    Parameters
    Type Name Description
    BoundingBox extent

    New extent for viewport to show

    ScaleMethod scaleMethod

    Scale method to use to determine resolution

    | Improve this Doc View Source

    NavigateTo(Point, Double)

    Change both center and resolution of the viewport

    Declaration
    public void NavigateTo(Point center, double resolution)
    Parameters
    Type Name Description
    Point center

    The new center

    System.Double resolution

    The new resolution

    | Improve this Doc View Source

    NavigateToFullEnvelope(ScaleMethod)

    Declaration
    public void NavigateToFullEnvelope(ScaleMethod scaleMethod = ScaleMethod.Fill)
    Parameters
    Type Name Description
    ScaleMethod scaleMethod
    | Improve this Doc View Source

    RotateTo(Double)

    Change rotation of viewport

    Declaration
    public void RotateTo(double rotation)
    Parameters
    Type Name Description
    System.Double rotation

    New rotation in degrees of viewport>

    | Improve this Doc View Source

    ZoomIn()

    Declaration
    public void ZoomIn()
    | Improve this Doc View Source

    ZoomIn(Point)

    Declaration
    public void ZoomIn(Point centerOfZoom)
    Parameters
    Type Name Description
    Point centerOfZoom
    | Improve this Doc View Source

    ZoomOut()

    Declaration
    public void ZoomOut()
    | Improve this Doc View Source

    ZoomOut(Point)

    Declaration
    public void ZoomOut(Point centerOfZoom)
    Parameters
    Type Name Description
    Point centerOfZoom
    | Improve this Doc View Source

    ZoomTo(Double)

    Change resolution of viewport

    Declaration
    public void ZoomTo(double resolution)
    Parameters
    Type Name Description
    System.Double resolution

    New resolution to use

    | Improve this Doc View Source

    ZoomTo(Double, Point)

    Declaration
    public void ZoomTo(double resolution, Point centerOfZoom)
    Parameters
    Type Name Description
    System.Double resolution
    Point centerOfZoom

    Implements

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