Show / Hide Table of Contents

    Class AnimatedNavigator

    Inheritance
    System.Object
    AnimatedNavigator
    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 AnimatedNavigator : INavigator

    Constructors

    | Improve this Doc View Source

    AnimatedNavigator(Map, IViewport)

    Declaration
    public AnimatedNavigator(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(Point, Int64)

    Change center of viewport

    Declaration
    public void CenterOn(Point center, long duration = 300L)
    Parameters
    Type Name Description
    Point center

    New center point of viewport

    System.Int64 duration

    Duration of animation in milliseconds

    | 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

    CenterOn(Double, Double, Int64)

    Change center of viewport to X/Y coordinates

    Declaration
    public void CenterOn(double x, double y, long duration = 300L)
    Parameters
    Type Name Description
    System.Double x

    X value of the new center

    System.Double y

    Y value of the new center

    System.Int64 duration

    Duration of animation in milliseconds

    | Improve this Doc View Source

    FlyTo(Point, Double, Int64)

    Fly to the given center with zooming out to given resolution and in again

    Declaration
    public void FlyTo(Point center, double maxResolution, long duration = 2000L)
    Parameters
    Type Name Description
    Point center

    Point to fly to

    System.Double maxResolution

    Maximum resolution to zoom out

    System.Int64 duration

    Duration for animation in milliseconds

    | 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 determin resolution

    | Improve this Doc View Source

    NavigateTo(BoundingBox, ScaleMethod, Int64)

    Navigate center of viewport to center of extent and change resolution

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

    New extent for viewport to show

    ScaleMethod scaleMethod

    Scale method to use to determine resolution

    System.Int64 duration

    Duration of animation in millisecondsScale 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

    NavigateTo(Point, Double, Int64)

    Navigate to center and change resolution with animation

    Declaration
    public void NavigateTo(Point center, double resolution, long duration = 300L)
    Parameters
    Type Name Description
    Point center

    New center to move to

    System.Double resolution

    New resolution to use

    System.Int64 duration

    Duration of animation in milliseconds

    | 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

    NavigateToFullEnvelope(ScaleMethod, Int64)

    Navigate to a resolution, so such the map uses the fill method

    Declaration
    public void NavigateToFullEnvelope(ScaleMethod scaleMethod = ScaleMethod.Fill, long duration = 300L)
    Parameters
    Type Name Description
    ScaleMethod scaleMethod
    System.Int64 duration

    Duration of animation in millisecondsScale method to use to determine resolution

    | 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

    RotateTo(Double, Int64)

    Change rotation of viewport

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

    New rotation in degrees of viewport>

    System.Int64 duration
    | Improve this Doc View Source

    ZoomIn()

    Zoom in to the next resolution

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

    ZoomIn(Point)

    Zoom in to a given point

    Declaration
    public void ZoomIn(Point centerOfZoom)
    Parameters
    Type Name Description
    Point centerOfZoom

    Center to use for zoom in

    | Improve this Doc View Source

    ZoomOut()

    Zoom out to the next resolution

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

    ZoomOut(Point)

    Zoom out to a given point

    Declaration
    public void ZoomOut(Point centerOfZoom)
    Parameters
    Type Name Description
    Point centerOfZoom

    Center to use for zoom out

    | 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)

    Zoom to a given resolution with a given point as center

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

    Resolution to zoom

    Point centerOfZoom

    Center to use for zoom

    | Improve this Doc View Source

    ZoomTo(Double, Int64)

    Change resolution of viewport

    Declaration
    public void ZoomTo(double resolution, long duration = 300L)
    Parameters
    Type Name Description
    System.Double resolution

    New resolution to use

    System.Int64 duration

    Duration of animation in milliseconds

    Implements

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