Map Class
Windows Phone
March 22, 2012
Represents the default map class.
Namespace:
Microsoft.Phone.Controls.Maps
Assembly: Microsoft.Phone.Controls.Maps (in Microsoft.Phone.Controls.Maps.dll)
XMLNS for XAML: Not mapped to an xmlns.
The Map type exposes the following members.
| Name | Description | |
|---|---|---|
|
ActualHeight | (Inherited from FrameworkElement.) |
|
ActualWidth | (Inherited from FrameworkElement.) |
|
AllowDrop | (Inherited from UIElement.) |
|
AnimationLevel | When overridden in a derived class, gets or sets the animation level of map navigation. (Inherited from MapBase.) |
|
Background | (Inherited from Control.) |
|
BorderBrush | (Inherited from Control.) |
|
BorderThickness | (Inherited from Control.) |
|
BoundingRectangle | Gets the rectangle that defines the boundaries of the map view. (Inherited from MapCore.) |
|
CacheMode | (Inherited from UIElement.) |
|
Center | Gets the center location of the map view. (Inherited from MapBase.) |
|
Children | Gets the child elements of the map. (Inherited from MapBase.) |
|
Clip | (Inherited from UIElement.) |
|
Content | (Inherited from ContentControl.) |
|
ContentTemplate | (Inherited from ContentControl.) |
|
CopyrightVisibility | Gets or sets the visibility of the copyright on the map. (Inherited from MapBase.) |
|
CredentialsProvider | Gets or sets the credentials provider. |
|
Culture | Gets or sets the culture used by the map. (Inherited from MapBase.) |
|
Cursor | (Inherited from FrameworkElement.) |
|
DataContext | (Inherited from FrameworkElement.) |
|
DefaultStyleKey | (Inherited from Control.) |
|
DesiredSize | (Inherited from UIElement.) |
|
Dispatcher | (Inherited from DependencyObject.) |
|
FlowDirection | (Inherited from FrameworkElement.) |
|
FontFamily | (Inherited from Control.) |
|
FontSize | (Inherited from Control.) |
|
FontStretch | (Inherited from Control.) |
|
FontStyle | (Inherited from Control.) |
|
FontWeight | (Inherited from Control.) |
|
Foreground | (Inherited from Control.) |
|
Heading | Gets or sets the directional heading of the map. (Inherited from MapBase.) |
|
Height | (Inherited from FrameworkElement.) |
|
HorizontalAlignment | (Inherited from FrameworkElement.) |
|
HorizontalContentAlignment | (Inherited from Control.) |
|
IsDownloading | Gets a Boolean value indicating whether map data is downloading. (Inherited from MapCore.) |
|
IsEnabled | (Inherited from Control.) |
|
IsHitTestVisible | (Inherited from UIElement.) |
|
IsIdle | Gets whether the map is idle. (Inherited from MapCore.) |
|
IsTabStop | (Inherited from Control.) |
|
Language | (Inherited from FrameworkElement.) |
|
LoadingException | Gets the exception that occurred while loading the map. (Inherited from MapCore.) |
|
LogoVisibility | Gets or sets the visibility of the logo on the map. (Inherited from MapBase.) |
|
MapForeground | Gets the map foreground. |
|
Margin | (Inherited from FrameworkElement.) |
|
MaxHeight | (Inherited from FrameworkElement.) |
|
MaxWidth | (Inherited from FrameworkElement.) |
|
MinHeight | (Inherited from FrameworkElement.) |
|
MinWidth | (Inherited from FrameworkElement.) |
|
Mode | Gets or sets the map mode. (Overrides MapBase.Mode.) |
|
Name | (Inherited from FrameworkElement.) |
|
Opacity | (Inherited from UIElement.) |
|
OpacityMask | (Inherited from UIElement.) |
|
Padding | (Inherited from Control.) |
|
Parent | (Inherited from FrameworkElement.) |
|
Pitch | Gets or sets the pitch of the map. (Inherited from MapBase.) |
|
Projection | (Inherited from UIElement.) |
|
RenderSize | (Inherited from UIElement.) |
|
RenderTransform | (Inherited from UIElement.) |
|
RenderTransformOrigin | (Inherited from UIElement.) |
|
Resources | (Inherited from FrameworkElement.) |
|
RootLayer | Gets the base map layer. (Inherited from MapBase.) |
|
ScaleVisibility | Gets or sets the visibility of the scale bar. (Inherited from MapBase.) |
|
Style | (Inherited from FrameworkElement.) |
|
TabIndex | (Inherited from Control.) |
|
TabNavigation | (Inherited from Control.) |
|
Tag | (Inherited from FrameworkElement.) |
|
TargetBoundingRectangle | Gets the bounding rectangle that defines the boundaries of the map view toward which the map is animating. (Inherited from MapCore.) |
|
TargetCenter | Gets the location that defines the center of the map view toward which the map is animating. (Inherited from MapCore.) |
|
TargetHeading | Gets the heading of the map view toward which the map is animating. (Inherited from MapCore.) |
|
TargetPitch | Gets the pitch of the map view toward which the map is animating. (Inherited from MapCore.) |
|
TargetZoomLevel | Gets the zoom level of the map view toward which the map is animating. (Inherited from MapCore.) |
|
Template | (Inherited from Control.) |
|
Triggers | (Inherited from FrameworkElement.) |
|
UseLayoutRounding | (Inherited from UIElement.) |
|
VerticalAlignment | (Inherited from FrameworkElement.) |
|
VerticalContentAlignment | (Inherited from Control.) |
|
ViewportSize | Gets the size of the viewport. (Inherited from MapCore.) |
|
Visibility | (Inherited from UIElement.) |
|
Width | (Inherited from FrameworkElement.) |
|
ZoomBarVisibility | Gets or sets whether the map zoom level bar displays. (Inherited from MapBase.) |
|
ZoomLevel | When overridden in a derived class, gets or sets the zoom level of the map. Valid zoom levels are 1 through 19, where 1 is the farthest zoomed out (a view of the world) and 19 is the closest map view. (Inherited from MapBase.) |
| Name | Description | |
|---|---|---|
|
AddHandler | (Inherited from UIElement.) |
|
ApplyTemplate | (Inherited from Control.) |
|
Arrange | (Inherited from UIElement.) |
|
ArrangeOverride | Arranges the elements to fit the given window size. (Inherited from MapCore.) |
|
CaptureMouse | (Inherited from UIElement.) |
|
CheckAccess | (Inherited from DependencyObject.) |
|
ClearValue | (Inherited from DependencyObject.) |
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
FindName | (Inherited from FrameworkElement.) |
|
Focus | (Inherited from Control.) |
|
GetAnimationBaseValue | (Inherited from DependencyObject.) |
|
GetBindingExpression | (Inherited from FrameworkElement.) |
|
GetHashCode | (Inherited from Object.) |
|
GetTemplateChild | (Inherited from Control.) |
|
GetType | (Inherited from Object.) |
|
GetValue | (Inherited from DependencyObject.) |
|
InvalidateArrange | (Inherited from UIElement.) |
|
InvalidateMeasure | (Inherited from UIElement.) |
|
LocationToViewportPoint | Converts a location to a viewport point. (Inherited from MapCore.) |
|
Measure | (Inherited from UIElement.) |
|
MeasureOverride | Measures the map elements so that they fit within the map size. (Inherited from MapCore.) |
|
MemberwiseClone | (Inherited from Object.) |
|
OnAnimationLevelChanged | Enables derived classes to provide custom handling when the animation level of the map changes. (Inherited from MapCore.) |
|
OnApplyTemplate | (Inherited from FrameworkElement.) |
|
OnCenterChanged | Enables derived classes to provide custom handling when the center of the map changes. (Inherited from MapCore.) |
|
OnContentChanged | (Inherited from ContentControl.) |
|
OnCreateAutomationPeer | Enables derived classes to provide custom handling when an automation peer is created. (Inherited from MapBase.) |
|
OnCredentialsProviderChanged | Enables derived classes to provide custom handling when the map credentials provider object changes. (Inherited from MapCore.) |
|
OnCultureChanged | Enables derived classes to provide custom handling when the culture of the map changes. (Inherited from MapCore.) |
|
OnDoubleTap | (Inherited from Control.) |
|
OnDragEnter | (Inherited from Control.) |
|
OnDragLeave | (Inherited from Control.) |
|
OnDragOver | (Inherited from Control.) |
|
OnDrop | (Inherited from Control.) |
|
OnFirstFrame | When overridden in a derived class, executes on the first map view frame. (Inherited from MapCore.) |
|
OnGotFocus | (Inherited from Control.) |
|
OnHeadingChanged | Enables derived classes to provide custom handling when the heading of the map changes. (Inherited from MapCore.) |
|
OnHold | (Inherited from Control.) |
|
OnKeyDown | (Inherited from Control.) |
|
OnKeyUp | (Inherited from Control.) |
|
OnLostFocus | (Inherited from Control.) |
|
OnLostMouseCapture | (Inherited from Control.) |
|
OnManipulationCompleted | (Inherited from Control.) |
|
OnManipulationDelta | (Inherited from Control.) |
|
OnManipulationStarted | (Inherited from Control.) |
|
OnModeChanged | Enables derived classes to provide custom handling when the mode of the map changes. (Inherited from MapCore.) |
|
OnMouseEnter | (Inherited from Control.) |
|
OnMouseLeave | (Inherited from Control.) |
|
OnMouseLeftButtonDown | (Inherited from Control.) |
|
OnMouseLeftButtonUp | (Inherited from Control.) |
|
OnMouseMove | (Inherited from Control.) |
|
OnMouseRightButtonDown | (Inherited from Control.) |
|
OnMouseRightButtonUp | (Inherited from Control.) |
|
OnMouseWheel | (Inherited from Control.) |
|
OnOverlayVisibilityChanged | Enables derived classes to provide custom handling when the copyright, scale bar, or zoom bar visibility changes. (Inherited from MapBase.) |
|
OnPitchChanged | Enables derived classes to provide custom handling when the pitch of the map changes. (Inherited from MapCore.) |
|
OnTap | (Inherited from Control.) |
|
OnTextInput | (Inherited from Control.) |
|
OnTextInputStart | (Inherited from Control.) |
|
OnTextInputUpdate | (Inherited from Control.) |
|
OnZoomLevelChanged | Enables derived classes to provide custom handling when the pitch of the map view changes. (Inherited from MapCore.) |
|
ProjectionUpdated | Enables derived classes to provide custom handling when the map projection is updated. (Inherited from MapCore.) |
|
ReadLocalValue | (Inherited from DependencyObject.) |
|
ReleaseMouseCapture | (Inherited from UIElement.) |
|
RemoveHandler | (Inherited from UIElement.) |
|
SetBinding | (Inherited from FrameworkElement.) |
|
SetMode | Sets the mode of the map. (Inherited from MapCore.) |
|
SetValue | (Inherited from DependencyObject.) |
|
SetView(LocationRect) | Sets the map view using the specified location rectangle. (Inherited from MapCore.) |
|
SetView(GeoCoordinate, Double) | Sets the map view based on the specified center and zoom level. (Inherited from MapCore.) |
|
SetView(GeoCoordinate, Double, Double) | Sets the map view based on the specified center, zoom level, and heading. (Inherited from MapCore.) |
|
SetView(GeoCoordinate, Double, Double, Double) | Sets the map view based on the specified center, zoom level, heading, and pitch. (Inherited from MapCore.) |
|
ToString | (Inherited from Object.) |
|
TransformToVisual | (Inherited from UIElement.) |
|
TryLocationToViewportPoint | Tries to convert a location to a viewport point. (Inherited from MapCore.) |
|
TryViewportPointToLocation | Tries to convert a viewport point to a location. (Inherited from MapCore.) |
|
UpdateLayout | (Inherited from UIElement.) |
|
ViewportPointToLocation | Converts a viewport point to a location. (Inherited from MapCore.) |
| Name | Description | |
|---|---|---|
|
BindingValidationError | (Inherited from FrameworkElement.) |
|
DoubleTap | (Inherited from UIElement.) |
|
GotFocus | (Inherited from UIElement.) |
|
Hold | (Inherited from UIElement.) |
|
IsEnabledChanged | (Inherited from Control.) |
|
KeyDown | (Inherited from UIElement.) |
|
KeyUp | (Inherited from UIElement.) |
|
LayoutUpdated | (Inherited from FrameworkElement.) |
|
Loaded | (Inherited from FrameworkElement.) |
|
LoadingError | Occurs when there is an error loading the map. (Inherited from MapCore.) |
|
LostFocus | (Inherited from UIElement.) |
|
LostMouseCapture | (Inherited from UIElement.) |
|
ManipulationCompleted | (Inherited from UIElement.) |
|
ManipulationDelta | (Inherited from UIElement.) |
|
ManipulationStarted | (Inherited from UIElement.) |
|
MapPan | Occurs when the screen is touched and dragged to pan the map. This event occurs every frame. (Inherited from MapCore.) |
|
MapResolved | Occurs when the map Tiles are fully downloaded, regardless of whether the user is still interacting with the map. (Inherited from MapCore.) |
|
MapZoom | Occurs when the map is touched to zoom the map. (Inherited from MapCore.) |
|
ModeChanged | Occurs when the map mode changes. (Inherited from MapCore.) |
|
MouseEnter | (Inherited from UIElement.) |
|
MouseLeave | (Inherited from UIElement.) |
|
MouseLeftButtonDown | (Inherited from UIElement.) |
|
MouseLeftButtonUp | (Inherited from UIElement.) |
|
MouseMove | (Inherited from UIElement.) |
|
MouseWheel | (Inherited from UIElement.) |
|
SizeChanged | (Inherited from FrameworkElement.) |
|
Tap | (Inherited from UIElement.) |
|
TargetViewChanged | Occurs when the view towards which the map is animating changes. (Inherited from MapCore.) |
|
TextInput | (Inherited from UIElement.) |
|
TextInputStart | (Inherited from UIElement.) |
|
TextInputUpdate | (Inherited from UIElement.) |
|
Unloaded | (Inherited from FrameworkElement.) |
|
ViewChangeEnd | Occurs when the view is done changing. (Inherited from MapCore.) |
|
ViewChangeOnFrame | Occurs for every frame of a view change. (Inherited from MapCore.) |
|
ViewChangeStart | Occurs when the view starts changing. (Inherited from MapCore.) |
If you are developing your application to target 256-MB devices, consider using a BingMapsTask instead of a Map control. This helps minimize the memory impact of your application, which is of particular importance when running on a 256-MB device. For more information, see Developing for 256-MB Devices and How to: Use the Bing Maps Task for Windows Phone.