Interface IViewportLimiter
Assembly: Mapsui.dll
Syntax
public interface IViewportLimiter
Properties
|
Improve this Doc
View Source
PanLimits
Set this property in combination KeepCenterWithinExtents or KeepViewportWithinExtents.
If PanLimits is not set, Map.Extent will be used as restricted extent.
Declaration
BoundingBox PanLimits { get; set; }
Property Value
|
Improve this Doc
View Source
ZoomLimits
Pair of the limits for the resolutions (smallest and biggest). If ZoomMode is set
to anything else than None, resolution is kept between these values.
Declaration
MinMax ZoomLimits { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Limit(IViewport, IReadOnlyList<Double>, BoundingBox)
Declaration
void Limit(IViewport viewport, IReadOnlyList<double> mapResolutions, BoundingBox mapEnvelope)
Parameters
Type |
Name |
Description |
IViewport |
viewport |
|
System.Collections.Generic.IReadOnlyList<System.Double> |
mapResolutions |
|
BoundingBox |
mapEnvelope |
|
|
Improve this Doc
View Source
LimitExtent(IViewport, BoundingBox)
Declaration
void LimitExtent(IViewport viewport, BoundingBox mapEnvelope)
Parameters
|
Improve this Doc
View Source
LimitResolution(Double, Double, Double, IReadOnlyList<Double>, BoundingBox)
Declaration
double LimitResolution(double resolution, double screenWidth, double screenHeight, IReadOnlyList<double> mapResolutions, BoundingBox mapEnvelope)
Parameters
Type |
Name |
Description |
System.Double |
resolution |
|
System.Double |
screenWidth |
|
System.Double |
screenHeight |
|
System.Collections.Generic.IReadOnlyList<System.Double> |
mapResolutions |
|
BoundingBox |
mapEnvelope |
|
Returns
Type |
Description |
System.Double |
|