0 out of 1 rated this helpful - Rate this topic

Map Class

Windows Phone

March 22, 2012

Represents the default map class.

System.Object
  System.Windows.DependencyObject
    System.Windows.UIElement
      System.Windows.FrameworkElement
        System.Windows.Controls.Control
          System.Windows.Controls.ContentControl
            Microsoft.Phone.Controls.Maps.Core.MapBase
              Microsoft.Phone.Controls.Maps.Core.MapCore
                Microsoft.Phone.Controls.Maps.Map

Namespace:  Microsoft.Phone.Controls.Maps
Assembly:  Microsoft.Phone.Controls.Maps (in Microsoft.Phone.Controls.Maps.dll)
XMLNS for XAML: Not mapped to an xmlns.
public sealed class Map : MapCore
<Map>
  Children
</Map>

The Map type exposes the following members.

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

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.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)