Interface INavigator
Namespace: Mapsui
Assembly: Mapsui.dll
Syntax
public interface INavigator
Properties
| Improve this Doc View SourceNavigated
Called each time one of the navigation methods is called
Declaration
EventHandler Navigated { get; set; }
Property Value
Type | Description |
---|---|
System.EventHandler |
Methods
| Improve this Doc View SourceCenterOn(Point)
Change center of viewport
Declaration
void CenterOn(Point center)
Parameters
Type | Name | Description |
---|---|---|
Point | center | New center point of viewport |
CenterOn(Double, Double)
Change center of viewport to X/Y coordinates
Declaration
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 |
NavigateTo(BoundingBox, ScaleMethod)
Navigate center of viewport to center of extent and change resolution
Declaration
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(Point, Double)
Change both center and resolution of the viewport
Declaration
void NavigateTo(Point center, double resolution)
Parameters
Type | Name | Description |
---|---|---|
Point | center | The new center |
System.Double | resolution | The new resolution |
NavigateToFullEnvelope(ScaleMethod)
Declaration
void NavigateToFullEnvelope(ScaleMethod scaleMethod = ScaleMethod.Fill)
Parameters
Type | Name | Description |
---|---|---|
ScaleMethod | scaleMethod |
RotateTo(Double)
Change rotation of viewport
Declaration
void RotateTo(double rotation)
Parameters
Type | Name | Description |
---|---|---|
System.Double | rotation | New rotation in degrees of viewport> |
ZoomIn()
Declaration
void ZoomIn()
ZoomIn(Point)
Declaration
void ZoomIn(Point centerOfZoom)
Parameters
Type | Name | Description |
---|---|---|
Point | centerOfZoom |
ZoomOut()
Declaration
void ZoomOut()
ZoomOut(Point)
Declaration
void ZoomOut(Point centerOfZoom)
Parameters
Type | Name | Description |
---|---|---|
Point | centerOfZoom |
ZoomTo(Double)
Change resolution of viewport
Declaration
void ZoomTo(double resolution)
Parameters
Type | Name | Description |
---|---|---|
System.Double | resolution | New resolution to use |
ZoomTo(Double, Point)
Declaration
void ZoomTo(double resolution, Point centerOfZoom)
Parameters
Type | Name | Description |
---|---|---|
System.Double | resolution | |
Point | centerOfZoom |