MapSpan Class

Definition

Represents a rectangular region on the map, defined by a center point and span.

public ref class MapSpan sealed
public sealed class MapSpan
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Maps.MapSpanTypeConverter))]
public sealed class MapSpan
type MapSpan = class
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Maps.MapSpanTypeConverter))>]
type MapSpan = class
Public NotInheritable Class MapSpan
Inheritance
MapSpan
Attributes

Constructors

Name Description
MapSpan(Location, Double, Double)

Initializes a new instance of the MapSpan class with the specified center and span in degrees.

Properties

Name Description
Center

Gets the center location of this span.

LatitudeDegrees

Gets the latitude span in degrees.

LongitudeDegrees

Gets the longitude span in degrees.

Radius

Gets the approximate radius of the span.

Methods

Name Description
ClampLatitude(Double, Double)

Creates a new MapSpan with latitude clamped to the specified bounds.

Equals(Object)

Determines whether the specified object is equal to the current object.

FromCenterAndRadius(Location, Distance)

Creates a new MapSpan from a center location and radius.

FromLocations(IEnumerable<Location>)

Creates a MapSpan that encompasses all of the specified locations.

GetHashCode()

Serves as the default hash function.

ToString()

Returns a string that represents the current object.

WithZoom(Double)

Creates a new MapSpan with the specified zoom factor applied.

Operators

Name Description
Equality(MapSpan, MapSpan)

Determines whether two MapSpan instances are equal.

Inequality(MapSpan, MapSpan)

Determines whether two MapSpan instances are not equal.

Applies to