Show / Hide Table of Contents

    Class ViewportLimiter

    Inheritance
    System.Object
    ViewportLimiter
    Implements
    IViewportLimiter
    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.UI
    Assembly: Mapsui.dll
    Syntax
    public class ViewportLimiter : 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
    public BoundingBox PanLimits { get; set; }
    Property Value
    Type Description
    BoundingBox
    | 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
    public MinMax ZoomLimits { get; set; }
    Property Value
    Type Description
    MinMax
    | Improve this Doc View Source

    ZoomMode

    Zoom mode to use, when map is zoomed

    Declaration
    public ZoomMode ZoomMode { get; set; }
    Property Value
    Type Description
    ZoomMode

    Methods

    | Improve this Doc View Source

    Limit(IViewport, IReadOnlyList<Double>, BoundingBox)

    Declaration
    public 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
    public void LimitExtent(IViewport viewport, BoundingBox mapEnvelope)
    Parameters
    Type Name Description
    IViewport viewport
    BoundingBox mapEnvelope
    | Improve this Doc View Source

    LimitResolution(Double, Double, Double, IReadOnlyList<Double>, BoundingBox)

    Declaration
    public 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

    Implements

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