Search Results for

    Show / Hide Table of Contents

    Class MapSpan

    MapSpan represents an area of the earth

    Inheritance
    object
    MapSpan
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.UI.Forms
    Assembly: Mapsui.UI.Forms.dll
    Syntax
    public class MapSpan

    Constructors

    | Edit this page View Source

    MapSpan(Position, double, double)

    Initializes a new instance of the MapSpan class.

    Declaration
    public MapSpan(Position center, double latitudeDegrees, double longitudeDegrees)
    Parameters
    Type Name Description
    Position center

    Center of the MapSpan

    double latitudeDegrees

    Extend of MapSpan in latitude direction in degrees

    double longitudeDegrees

    Extend of MapSpan in longitude direction in degrees

    Properties

    | Edit this page View Source

    Center

    Center of MapSpan

    Declaration
    public Position Center { get; }
    Property Value
    Type Description
    Position

    Center of MapSpan

    | Edit this page View Source

    LatitudeDegrees

    Extend of MapSpan in latitude degrees

    Declaration
    public double LatitudeDegrees { get; }
    Property Value
    Type Description
    double

    Extend in latitude degrees

    | Edit this page View Source

    LongitudeDegrees

    Extend of MapSpan in longitude degrees

    Declaration
    public double LongitudeDegrees { get; }
    Property Value
    Type Description
    double

    Extend in longitude degrees

    | Edit this page View Source

    Radius

    Radius of smallest circle thats fit into MapSpan

    Declaration
    public Distance Radius { get; }
    Property Value
    Type Description
    Distance

    The radius.

    Methods

    | Edit this page View Source

    ClampLatitude(double, double)

    Clamp latitude between north and south

    Declaration
    public MapSpan ClampLatitude(double north, double south)
    Parameters
    Type Name Description
    double north

    Maximal latitude degrees for north

    double south

    Maximal latitude degrees for south

    Returns
    Type Description
    MapSpan

    MapSpan with center clamped between north and south

    | Edit this page View Source

    Equals(object?)

    Determines whether the specified object is equal to the current MapSpan

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with current MapSpan

    Returns
    Type Description
    bool

    true if the specified object is equal to the current MapSpan; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    FromCenterAndRadius(Position, Distance)

    Create a new MapSpan from center and radius

    Declaration
    public static MapSpan FromCenterAndRadius(Position center, Distance radius)
    Parameters
    Type Name Description
    Position center

    Center for new MapSpan

    Distance radius

    Radius for new MapSpan

    Returns
    Type Description
    MapSpan

    New MapSpan

    | Edit this page View Source

    FromPositions(IEnumerable<Position>)

    Create a new MapSpan from multiple positions

    Declaration
    public static MapSpan FromPositions(IEnumerable<Position> positions)
    Parameters
    Type Name Description
    IEnumerable<Position> positions

    List of positions to get the new MapSpan

    Returns
    Type Description
    MapSpan

    New MapSpan

    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    WithZoom(double)

    Create a new MapSPan with given zoom factor

    Declaration
    public MapSpan WithZoom(double zoomFactor)
    Parameters
    Type Name Description
    double zoomFactor

    Zoom factor

    Returns
    Type Description
    MapSpan

    New MapSpan

    Operators

    | Edit this page View Source

    operator ==(MapSpan, MapSpan)

    Declaration
    public static bool operator ==(MapSpan left, MapSpan right)
    Parameters
    Type Name Description
    MapSpan left
    MapSpan right
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(MapSpan, MapSpan)

    Declaration
    public static bool operator !=(MapSpan left, MapSpan right)
    Parameters
    Type Name Description
    MapSpan left
    MapSpan right
    Returns
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX