Class AnimatedNavigator
Inheritance
Implements
Inherited Members
Namespace: Mapsui
Assembly: Mapsui.dll
Syntax
public class AnimatedNavigator : INavigator
Constructors
| Improve this Doc View SourceAnimatedNavigator(Map, IViewport)
Declaration
public AnimatedNavigator(Map map, IViewport viewport)
Parameters
Type | Name | Description |
---|---|---|
Map | map | |
IViewport | viewport |
Properties
| Improve this Doc View SourceNavigated
Declaration
public EventHandler Navigated { get; set; }
Property Value
Type | Description |
---|---|
System.EventHandler |
Methods
| Improve this Doc View SourceCenterOn(Point)
Change center of viewport
Declaration
public void CenterOn(Point center)
Parameters
Type | Name | Description |
---|---|---|
Point | center | New center point of viewport |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
NavigateToFullEnvelope(ScaleMethod)
Declaration
public void NavigateToFullEnvelope(ScaleMethod scaleMethod = ScaleMethod.Fill)
Parameters
Type | Name | Description |
---|---|---|
ScaleMethod | scaleMethod |
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 |
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> |
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 |
ZoomIn()
Zoom in to the next resolution
Declaration
public void ZoomIn()
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 |
ZoomOut()
Zoom out to the next resolution
Declaration
public void ZoomOut()
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 |
ZoomTo(Double)
Change resolution of viewport
Declaration
public void ZoomTo(double resolution)
Parameters
Type | Name | Description |
---|---|---|
System.Double | resolution | New resolution to use |
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 |
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 |