Map Methods

Include Protected Members
Include Inherited Members

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

The Map type exposes the following members.

Methods

  Name Description
AddHandler Adds a routed event handler for a specified routed event, adding the handler to the handler collection on the current element. Specify handledEventsToo as true to have the provided handler be invoked for routed event that had already been marked as handled by another element along the event route. (Inherited from UIElement.)
AddRoute Displays the specified route on the Map.
ApplyTemplate (Inherited from Control.)
Arrange Positions child objects and determines a size for a UIElement. Parent objects that implement custom layout for their child elements should call this method from their layout override implementations to form a recursive layout update. (Inherited from UIElement.)
ArrangeOverride Provides the behavior for the Arrange pass of Windows Phone layout. Classes can override this method to define their own Arrange pass behavior. (Inherited from FrameworkElement.)
CaptureMouse Sets touch capture to a UIElement. (Inherited from UIElement.)
CheckAccess Determines whether the calling thread has access to this object. (Inherited from DependencyObject.)
ClearValue Clears the local value of a dependency property. (Inherited from DependencyObject.)
ConvertGeoCoordinateToViewportPoint Converts the specified GeoCoordinate to the corresponding point in the viewport of the Map control.
ConvertViewportPointToGeoCoordinate Converts the specified point in the viewport of the Map control to a GeoCoordinate.
Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
FindName Retrieves an object that has the specified identifier name. (Inherited from FrameworkElement.)
Focus (Inherited from Control.)
GetAnimationBaseValue Returns any base value established for a Windows Phone dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.)
GetBindingExpression Retrieves the BindingExpression for a dependency property where a binding is established. (Inherited from FrameworkElement.)
GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
GetMapElementsAt Retrieves the list of MapElement objects at the specified point in the viewport of the Map control.
GetTemplateChild (Inherited from Control.)
GetType Gets the Type of the current instance. (Inherited from Object.)
GetValue Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)
InvalidateArrange Invalidates the arrange state (layout) for a UIElement. After the invalidation, the UIElement will have its layout updated, which will occur asynchronously. (Inherited from UIElement.)
InvalidateMeasure Invalidates the measurement state (layout) for a UIElement. (Inherited from UIElement.)
Measure Updates the DesiredSize of a UIElement. Typically, objects that implement custom layout for their layout children call this method from their own MeasureOverride implementations to form a recursive layout update. (Inherited from UIElement.)
MeasureOverride Provides the behavior for the Measure pass of Windows Phone layout. Classes can override this method to define their own Measure pass behavior. (Inherited from FrameworkElement.)
MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
OnApplyTemplate Builds the visual tree for the Map control when a new template is applied. (Overrides FrameworkElement..::.OnApplyTemplate()()().)
OnCreateAutomationPeer When implemented in a derived class, returns class-specific AutomationPeer implementations for the Windows Phone automation infrastructure. (Inherited from UIElement.)
OnDoubleTap (Inherited from Control.)
OnDragEnter (Inherited from Control.)
OnDragLeave (Inherited from Control.)
OnDragOver (Inherited from Control.)
OnDrop (Inherited from Control.)
OnGotFocus (Inherited from Control.)
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.)
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.)
OnTap (Inherited from Control.)
OnTextInput (Inherited from Control.)
OnTextInputStart (Inherited from Control.)
OnTextInputUpdate (Inherited from Control.)
ReadLocalValue Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)
ReleaseMouseCapture Removes touch capture from a UIElement. After this call, typically no object holds touch capture. (Inherited from UIElement.)
RemoveHandler Removes the specified routed event handler from this UIElement. (Inherited from UIElement.)
RemoveRoute Removes the specified route from the Map.
SetBinding Attaches a binding to a FrameworkElement, using the provided binding object, and returns a BindingExpressionBase for possible later use. (Inherited from FrameworkElement.)
SetValue Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)
SetView(LocationRectangle) Sets the map view to the specified geographical region.
SetView(GeoCoordinate, Double) Sets the map view using the specified center and zoom level.
SetView(LocationRectangle, MapAnimationKind) Sets the map view to the specified geographical region. The view change uses the specified animation.
SetView(LocationRectangle, Thickness) Sets the map view to the specified geographical region with the specified margin.
SetView(GeoCoordinate, Double, MapAnimationKind) Sets the map view using the specified center and zoom level. The view change uses the specified animation.
SetView(GeoCoordinate, Double, Double) Sets the map view using the specified center, zoom level, and heading.
SetView(LocationRectangle, Thickness, MapAnimationKind) Sets the map view to the specified geographical region with the specified margin. The view change uses the specified animation.
SetView(GeoCoordinate, Double, Double, MapAnimationKind) Sets the map view using the specified center, zoom level, and heading. The view change uses the specified animation.
SetView(GeoCoordinate, Double, Double, Double) Sets the map view using the specified center, zoom level, heading, and pitch.
SetView(GeoCoordinate, Double, Double, Double, MapAnimationKind) Sets the map view using the specified center, zoom level, heading, and pitch. The view change uses the specified animation.
ToString Returns a string that represents the current object. (Inherited from Object.)
TransformToVisual Returns a transform object that can be used to transform coordinates from the UIElement to the specified object. (Inherited from UIElement.)
UpdateLayout Ensures that all positions of child objects of a UIElement are properly updated for layout. (Inherited from UIElement.)

Top

See Also

Reference

Map Class

Microsoft.Phone.Maps.Controls Namespace