Show / Hide Table of Contents

    Class ZoomHelper

    Inheritance
    System.Object
    ZoomHelper
    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.Utilities
    Assembly: Mapsui.dll
    Syntax
    public static class ZoomHelper

    Methods

    | Improve this Doc View Source

    ClipResolutionToExtremes(IReadOnlyList<Double>, Double)

    Declaration
    [Obsolete("Use ViewportLimiter.LimitExtent instead")]
    public static double ClipResolutionToExtremes(IReadOnlyList<double> resolutions, double resolution)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<System.Double> resolutions
    System.Double resolution
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    DetermineResolution(Double, Double, Double, Double, ScaleMethod)

    Declaration
    public static double DetermineResolution(double worldWidth, double worldHeight, double screenWidth, double screenHeight, ScaleMethod scaleMethod = ScaleMethod.Fit)
    Parameters
    Type Name Description
    System.Double worldWidth
    System.Double worldHeight
    System.Double screenWidth
    System.Double screenHeight
    ScaleMethod scaleMethod
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    ZoomIn(IReadOnlyList<Double>, Double)

    Declaration
    public static double ZoomIn(IReadOnlyList<double> resolutions, double resolution)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<System.Double> resolutions
    System.Double resolution
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    ZoomOut(IReadOnlyList<Double>, Double)

    Declaration
    public static double ZoomOut(IReadOnlyList<double> resolutions, double resolution)
    Parameters
    Type Name Description
    System.Collections.Generic.IReadOnlyList<System.Double> resolutions
    System.Double resolution
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    ZoomToBoudingbox(Viewport, Double, Double, Double, Double, Double, Double, ScaleMethod)

    Declaration
    public static void ZoomToBoudingbox(Viewport viewport, double x1, double y1, double x2, double y2, double screenWidth, double screenHeight, ScaleMethod scaleMethod = ScaleMethod.Fit)
    Parameters
    Type Name Description
    Viewport viewport
    System.Double x1
    System.Double y1
    System.Double x2
    System.Double y2
    System.Double screenWidth
    System.Double screenHeight
    ScaleMethod scaleMethod
    | Improve this Doc View Source

    ZoomToBoudingbox(Double, Double, Double, Double, Double, Double, out Double, out Double, out Double, ScaleMethod)

    Declaration
    public static void ZoomToBoudingbox(double x1, double y1, double x2, double y2, double screenWidth, double screenHeight, out double x, out double y, out double resolution, ScaleMethod scaleMethod = ScaleMethod.Fit)
    Parameters
    Type Name Description
    System.Double x1
    System.Double y1
    System.Double x2
    System.Double y2
    System.Double screenWidth
    System.Double screenHeight
    System.Double x
    System.Double y
    System.Double resolution
    ScaleMethod scaleMethod
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX