Interface IViewport
Assembly: Mapsui.dll
Syntax
public interface IViewport : IReadOnlyViewport
Methods
|
Improve this Doc
View Source
SetCenter(ReadOnlyPoint)
Declaration
void SetCenter(ReadOnlyPoint center)
Parameters
|
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
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