MapSpan MapSpan Class


A circular region on a Map.

public sealed class MapSpan
type MapSpan = class


MapSpan(Position, Double, Double) MapSpan(Position, Double, Double)

Returns a MapSpan that is centered on center and extends to latitudeDegress and longitudeDegress.


Center Center

The Position in the geographical center of the MapSpan.

LatitudeDegrees LatitudeDegrees

The degrees of latitude that are spanned by the MapSpan.

LongitudeDegrees LongitudeDegrees

The degrees of longitude that are spanned by the MapSpan.

Radius Radius

Gets the smallest distance across the MapSpan.


ClampLatitude(Double, Double) ClampLatitude(Double, Double)

Creates a new MapSpan with the same LongitudeDegrees as this and a radius defined by north and south.

Equals(Object) Equals(Object)

Whether obj is a MapSpan with identical position and radius values as this MapSpan.

FromCenterAndRadius(Position, Distance) FromCenterAndRadius(Position, Distance)

Returns a MapSpan that displays the area that is defined by center and radius.

GetHashCode() GetHashCode()

The hash value for this MapSpan, based on the position and radius.

WithZoom(Double) WithZoom(Double)

Creates a new MapSpan with the same Center as this but with a Radius multiplied by zoomFactor.


Equality(MapSpan, MapSpan) Equality(MapSpan, MapSpan)

Whether two MapSpan have equivalent values.

Inequality(MapSpan, MapSpan) Inequality(MapSpan, MapSpan)

Whether two MapSpan have different values.

Extension Methods

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to