Microsoft.Phone.Maps.Controls Namespace

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Microsoft.Phone.Maps.Controls namespace contains the most commonly used public classes of the map control for Windows Phone.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_MAP

Windows Phone 8

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Classes

Class Description
GeoCoordinateCollection Represents a collection of geocoordinate objects.
GeoCoordinateCollectionConverter Converts types into GeoCoordinate objects.
GeoCoordinateConverter Converts types into GeoCoordinate.
LocationRectangle Represents a location rectangle on the map control.
LocationRectangleConverter Converts a string into an instance of LocationRectangle.
Map Represents the map control.
MapCartographicModeChangedEventArgs Provides data for the CartographicModeChanged event.
MapCenterChangedEventArgs Provides data for the CenterChanged event.
MapColorModeChangedEventArgs Provides data for the ColorModeChanged event.
MapElement Represents an element on the map control that contains the MapPolyline or MapPolygon.
MapEventArgs Provides data for the Map events.
MapHeadingChangedEventArgs Provides data for the HeadingChanged event.
MapLandmarksEnabledChangedEventArgs Provides data for the LandmarksEnabledChanged event.
MapLayer Represents a collection of MapOverlay objects.
MapOverlay Represents a map layer, which positions its child UIElement objects using geographic coordinates.
MapPedestrianFeaturesEnabledChangedEventArgs Provides data for the PedestrianFeaturesEnabledChanged event.
MapPitchChangedEventArgs Provides data for the PitchChanged event.
MapPointConverter Converts types into a Point.
MapPolygon Represents a polygon shape on a map control.
MapPolyline Represents a polyline on the map control.
MapResolveCompletedEventArgs Provide data for the ResolveCompleted event.
MapRoute Represents a route in the map control.
MapTransformCenterChangedEventArgs Provides data for the TransformCenterChanged event.
MapViewChangedEventArgs Provides data for the ViewChanged event.
MapViewChangingEventArgs Provides data for the ViewChanging event.
MapZoomLevelChangedEventArgs Provides data for the ZoomLevelChanged event.
TileSource Retrieves the URI for a tile based on its zoom level and tile position.

Structures

Structure Description
QuadKey Represents a Maps quadkey.

Enumerations

Enumeration Description
MapAnimationKind Specifies the animation to use when you change the view of the map by calling the SetView method.
MapCartographicMode Specifies the type of the Map – for example, a road map or an aerial map.
MapColorMode Specifies the color mode of the Map – for example, light or dark.
MapWatermarkMode Specifies when the watermark of the Map is displayed.
RouteViewKind Specifies the type of route to display in the map control.