Show / Hide Table of Contents

Class MapView

A user interface control that displays two-dimensional (2D) geographic content defined by a Map.

Inheritance
Object
DependencyObject
UIElement
FrameworkElement
Control
GeoView
MapView
Implements
IEquatable<DependencyObject>
IAnimationObject
IVisualElement
IVisualElement2
IEquatable<UIElement>
IEquatable<FrameworkElement>
WinRT.IWinRTObject
IDynamicInterfaceCastable
IEquatable<Control>
INotifyPropertyChanged
GeoView.OnLostFocus(RoutedEventArgs)
GeoView.DrawStatusChanged
GeoView.LayerViewStateChanged
GeoView.SpatialReferenceChanged
GeoView.ViewpointChanged
GeoView.ShowCalloutForGeoElement(GeoElement, Point, CalloutDefinition)
GeoView.ShowCalloutAt(MapPoint, CalloutDefinition)
GeoView.ShowCalloutAt(MapPoint, UIElement, Point)
GeoView.DismissCallout()
GeoView.IsCalloutVisible
GeoView.ExportImageAsync()
GeoView.GraphicsOverlays
GeoView.GraphicsOverlaysProperty
GeoView.GetCurrentViewpoint(ViewpointType)
GeoView.SetViewpoint(Viewpoint)
GeoView.SetViewpointAsync(Viewpoint)
GeoView.SetViewpointAsync(Viewpoint, TimeSpan)
GeoView.SetBookmarkAsync(Bookmark)
GeoView.GetLayerViewState(Layer)
GeoView.IdentifyGraphicsOverlayAsync(GraphicsOverlay, Point, Double, Boolean)
GeoView.IdentifyGraphicsOverlayAsync(GraphicsOverlay, Point, Double, Boolean, Int64)
GeoView.IdentifyGraphicsOverlaysAsync(Point, Double, Boolean)
GeoView.IdentifyGraphicsOverlaysAsync(Point, Double, Boolean, Int64)
GeoView.IdentifyLayerAsync(Layer, Point, Double, Boolean)
GeoView.IdentifyLayerAsync(Layer, Point, Double, Boolean, CancellationToken)
GeoView.IdentifyLayerAsync(Layer, Point, Double, Boolean, Int64)
GeoView.IdentifyLayerAsync(Layer, Point, Double, Boolean, Int64, CancellationToken)
GeoView.IdentifyLayersAsync(Point, Double, Boolean)
GeoView.IdentifyLayersAsync(Point, Double, Boolean, CancellationToken)
GeoView.IdentifyLayersAsync(Point, Double, Boolean, Int64)
GeoView.IdentifyLayersAsync(Point, Double, Boolean, Int64, CancellationToken)
GeoView.GeoViewTapped
GeoView.GeoViewDoubleTapped
GeoView.GeoViewHolding
GeoView.INotifyPropertyChanged.PropertyChanged
GeoView.IsAttributionTextVisible
GeoView.AttributionText
GeoView.IsAttributionTextVisibleProperty
GeoView.SpatialReference
GeoView.IsWrapAroundEnabled
GeoView.IsNavigating
GeoView.NavigationCompleted
GeoView.DrawStatus
GeoView.ViewInsets
GeoView.ViewInsetsProperty
GeoView.TimeExtent
GeoView.TimeExtentProperty
GeoView.Overlays
GeoView.OverlaysProperty
GeoView.GetViewOverlayAnchor(FrameworkElement)
GeoView.SetViewOverlayAnchor(FrameworkElement, MapPoint)
GeoView.ViewOverlayAnchorProperty
GeoView.SelectionProperties
GeoView.SelectionPropertiesProperty
GeoView.Labeling
GeoView.LabelingProperty
Microsoft.UI.Xaml.Controls.Control.As<I>()
Control.GetIsTemplateFocusTarget(FrameworkElement)
Control.SetIsTemplateFocusTarget(FrameworkElement, Boolean)
Control.GetIsTemplateKeyTipTarget(DependencyObject)
Control.SetIsTemplateKeyTipTarget(DependencyObject, Boolean)
Microsoft.UI.Xaml.Controls.Control.FromAbi(System.IntPtr)
Microsoft.UI.Xaml.Controls.Control.Equals(Microsoft.UI.Xaml.Controls.Control)
Microsoft.UI.Xaml.Controls.Control.Equals(System.Object)
Microsoft.UI.Xaml.Controls.Control.GetHashCode()
Control.RemoveFocusEngagement()
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.OnPointerEntered(PointerRoutedEventArgs)
Control.OnPointerPressed(PointerRoutedEventArgs)
Control.OnPointerMoved(PointerRoutedEventArgs)
Control.OnPointerReleased(PointerRoutedEventArgs)
Control.OnPointerExited(PointerRoutedEventArgs)
Control.OnPointerCaptureLost(PointerRoutedEventArgs)
Control.OnPointerCanceled(PointerRoutedEventArgs)
Control.OnPointerWheelChanged(PointerRoutedEventArgs)
Control.OnTapped(TappedRoutedEventArgs)
Control.OnDoubleTapped(DoubleTappedRoutedEventArgs)
Control.OnHolding(HoldingRoutedEventArgs)
Control.OnRightTapped(RightTappedRoutedEventArgs)
Control.OnManipulationStarting(ManipulationStartingRoutedEventArgs)
Control.OnManipulationInertiaStarting(ManipulationInertiaStartingRoutedEventArgs)
Control.OnManipulationStarted(ManipulationStartedRoutedEventArgs)
Control.OnManipulationDelta(ManipulationDeltaRoutedEventArgs)
Control.OnManipulationCompleted(ManipulationCompletedRoutedEventArgs)
Control.OnKeyUp(KeyRoutedEventArgs)
Control.OnKeyDown(KeyRoutedEventArgs)
Control.OnPreviewKeyDown(KeyRoutedEventArgs)
Control.OnPreviewKeyUp(KeyRoutedEventArgs)
Control.OnGotFocus(RoutedEventArgs)
Control.OnCharacterReceived(CharacterReceivedRoutedEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnDragOver(DragEventArgs)
Control.OnDrop(DragEventArgs)
Microsoft.UI.Xaml.Controls.Control.IsOverridableInterface(System.Guid)
Control.BackgroundProperty
Control.BackgroundSizingProperty
Control.BorderBrushProperty
Control.BorderThicknessProperty
Control.CharacterSpacingProperty
Control.CornerRadiusProperty
Control.DefaultStyleKeyProperty
Control.DefaultStyleResourceUriProperty
Control.ElementSoundModeProperty
Control.FontFamilyProperty
Control.FontSizeProperty
Control.FontStretchProperty
Control.FontStyleProperty
Control.FontWeightProperty
Control.ForegroundProperty
Control.HorizontalContentAlignmentProperty
Control.IsEnabledProperty
Control.IsFocusEngagedProperty
Control.IsFocusEngagementEnabledProperty
Control.IsTemplateFocusTargetProperty
Control.IsTemplateKeyTipTargetProperty
Control.IsTextScaleFactorEnabledProperty
Control.PaddingProperty
Control.RequiresPointerProperty
Control.TabNavigationProperty
Control.TemplateProperty
Control.VerticalContentAlignmentProperty
Microsoft.UI.Xaml.Controls.Control.WinRT.IWinRTObject.HasUnwrappableNativeObject
Microsoft.UI.Xaml.Controls.Control.WinRT.IWinRTObject.NativeObject
Control.Background
Control.BackgroundSizing
Control.BorderBrush
Control.BorderThickness
Control.CharacterSpacing
Control.CornerRadius
Control.DefaultStyleKey
Control.DefaultStyleResourceUri
Control.ElementSoundMode
Control.FontFamily
Control.FontSize
Control.FontStretch
Control.FontStyle
Control.FontWeight
Control.Foreground
Control.HorizontalContentAlignment
Control.IsEnabled
Control.IsFocusEngaged
Control.IsFocusEngagementEnabled
Control.IsTextScaleFactorEnabled
Control.Padding
Control.RequiresPointer
Control.TabNavigation
Control.Template
Control.VerticalContentAlignment
Control.FocusDisengaged
Control.FocusEngaged
Control.IsEnabledChanged
FrameworkElement.DeferTree(DependencyObject)
Microsoft.UI.Xaml.FrameworkElement.Equals(Microsoft.UI.Xaml.FrameworkElement)
FrameworkElement.FindName(String)
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.InvalidateViewport()
FrameworkElement.MeasureOverride(Size)
FrameworkElement.ArrangeOverride(Size)
FrameworkElement.GoToElementStateCore(String, Boolean)
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualThemeProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.AllowFocusOnInteractionProperty
FrameworkElement.AllowFocusWhenDisabledProperty
FrameworkElement.DataContextProperty
FrameworkElement.FlowDirectionProperty
FrameworkElement.FocusVisualMarginProperty
FrameworkElement.FocusVisualPrimaryBrushProperty
FrameworkElement.FocusVisualPrimaryThicknessProperty
FrameworkElement.FocusVisualSecondaryBrushProperty
FrameworkElement.FocusVisualSecondaryThicknessProperty
FrameworkElement.HeightProperty
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.LanguageProperty
FrameworkElement.MarginProperty
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidthProperty
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidthProperty
FrameworkElement.NameProperty
FrameworkElement.RequestedThemeProperty
FrameworkElement.StyleProperty
FrameworkElement.TagProperty
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.WidthProperty
FrameworkElement.ActualHeight
FrameworkElement.ActualTheme
FrameworkElement.ActualWidth
FrameworkElement.AllowFocusOnInteraction
FrameworkElement.AllowFocusWhenDisabled
FrameworkElement.BaseUri
FrameworkElement.DataContext
FrameworkElement.FlowDirection
FrameworkElement.FocusVisualMargin
FrameworkElement.FocusVisualPrimaryBrush
FrameworkElement.FocusVisualPrimaryThickness
FrameworkElement.FocusVisualSecondaryBrush
FrameworkElement.FocusVisualSecondaryThickness
FrameworkElement.Height
FrameworkElement.HorizontalAlignment
FrameworkElement.IsLoaded
FrameworkElement.Language
FrameworkElement.Margin
FrameworkElement.MaxHeight
FrameworkElement.MaxWidth
FrameworkElement.MinHeight
FrameworkElement.MinWidth
FrameworkElement.Name
FrameworkElement.Parent
FrameworkElement.RequestedTheme
FrameworkElement.Resources
FrameworkElement.Style
FrameworkElement.Tag
FrameworkElement.Triggers
FrameworkElement.VerticalAlignment
FrameworkElement.Width
FrameworkElement.ActualThemeChanged
FrameworkElement.DataContextChanged
FrameworkElement.EffectiveViewportChanged
FrameworkElement.LayoutUpdated
FrameworkElement.Loaded
FrameworkElement.Loading
FrameworkElement.SizeChanged
FrameworkElement.Unloaded
UIElement.TryStartDirectManipulation(Pointer)
UIElement.RegisterAsScrollPort(UIElement)
Microsoft.UI.Xaml.UIElement.Equals(Microsoft.UI.Xaml.UIElement)
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.CapturePointer(Pointer)
UIElement.ReleasePointerCapture(Pointer)
UIElement.ReleasePointerCaptures()
UIElement.AddHandler(RoutedEvent, Object, Boolean)
UIElement.RemoveHandler(RoutedEvent, Object)
UIElement.TransformToVisual(UIElement)
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.UpdateLayout()
UIElement.CancelDirectManipulations()
UIElement.StartDragAsync(PointerPoint)
UIElement.StartBringIntoView()
UIElement.StartBringIntoView(BringIntoViewOptions)
UIElement.TryInvokeKeyboardAccelerator(ProcessKeyboardAcceleratorEventArgs)
UIElement.Focus(FocusState)
UIElement.StartAnimation(ICompositionAnimationBase)
UIElement.StopAnimation(ICompositionAnimationBase)
UIElement.OnDisconnectVisualChildren()
UIElement.FindSubElementsForTouchTargeting(Point, Rect)
UIElement.GetChildrenInTabFocusOrder()
UIElement.OnKeyboardAcceleratorInvoked(KeyboardAcceleratorInvokedEventArgs)
UIElement.OnProcessKeyboardAccelerators(ProcessKeyboardAcceleratorEventArgs)
UIElement.OnBringIntoViewRequested(BringIntoViewRequestedEventArgs)
UIElement.PopulatePropertyInfoOverride(String, AnimationPropertyInfo)
UIElement.PopulatePropertyInfo(String, AnimationPropertyInfo)
Microsoft.UI.Xaml.UIElement.Microsoft.UI.Composition.IAnimationObject.PopulatePropertyInfo(System.String, Microsoft.UI.Composition.AnimationPropertyInfo)
UIElement.GetVisualInternal()
Microsoft.UI.Xaml.UIElement.Microsoft.UI.Composition.IVisualElement2.GetVisualInternal()
UIElement.AccessKeyProperty
UIElement.AccessKeyScopeOwnerProperty
UIElement.AllowDropProperty
UIElement.BringIntoViewRequestedEvent
UIElement.CacheModeProperty
UIElement.CanBeScrollAnchorProperty
UIElement.CanDragProperty
UIElement.CharacterReceivedEvent
UIElement.ClipProperty
UIElement.CompositeModeProperty
UIElement.ContextFlyoutProperty
UIElement.ContextRequestedEvent
UIElement.DoubleTappedEvent
UIElement.DragEnterEvent
UIElement.DragLeaveEvent
UIElement.DragOverEvent
UIElement.DropEvent
UIElement.ExitDisplayModeOnAccessKeyInvokedProperty
UIElement.FocusStateProperty
UIElement.GettingFocusEvent
UIElement.HighContrastAdjustmentProperty
UIElement.HoldingEvent
UIElement.IsAccessKeyScopeProperty
UIElement.IsDoubleTapEnabledProperty
UIElement.IsHitTestVisibleProperty
UIElement.IsHoldingEnabledProperty
UIElement.IsRightTapEnabledProperty
UIElement.IsTabStopProperty
UIElement.IsTapEnabledProperty
UIElement.KeyDownEvent
UIElement.KeyTipHorizontalOffsetProperty
UIElement.KeyTipPlacementModeProperty
UIElement.KeyTipTargetProperty
UIElement.KeyTipVerticalOffsetProperty
UIElement.KeyUpEvent
UIElement.KeyboardAcceleratorPlacementModeProperty
UIElement.KeyboardAcceleratorPlacementTargetProperty
UIElement.LightsProperty
UIElement.LosingFocusEvent
UIElement.ManipulationCompletedEvent
UIElement.ManipulationDeltaEvent
UIElement.ManipulationInertiaStartingEvent
UIElement.ManipulationModeProperty
UIElement.ManipulationStartedEvent
UIElement.ManipulationStartingEvent
UIElement.NoFocusCandidateFoundEvent
UIElement.OpacityProperty
UIElement.PointerCanceledEvent
UIElement.PointerCaptureLostEvent
UIElement.PointerCapturesProperty
UIElement.PointerEnteredEvent
UIElement.PointerExitedEvent
UIElement.PointerMovedEvent
UIElement.PointerPressedEvent
UIElement.PointerReleasedEvent
UIElement.PointerWheelChangedEvent
UIElement.PreviewKeyDownEvent
UIElement.PreviewKeyUpEvent
UIElement.ProjectionProperty
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformProperty
UIElement.RightTappedEvent
UIElement.ShadowProperty
UIElement.TabFocusNavigationProperty
UIElement.TabIndexProperty
UIElement.TappedEvent
UIElement.Transform3DProperty
UIElement.TransitionsProperty
UIElement.UseLayoutRoundingProperty
UIElement.UseSystemFocusVisualsProperty
UIElement.VisibilityProperty
UIElement.XYFocusDownNavigationStrategyProperty
UIElement.XYFocusDownProperty
UIElement.XYFocusKeyboardNavigationProperty
UIElement.XYFocusLeftNavigationStrategyProperty
UIElement.XYFocusLeftProperty
UIElement.XYFocusRightNavigationStrategyProperty
UIElement.XYFocusRightProperty
UIElement.XYFocusUpNavigationStrategyProperty
UIElement.XYFocusUpProperty
UIElement.AccessKey
UIElement.AccessKeyScopeOwner
UIElement.ActualOffset
UIElement.ActualSize
UIElement.AllowDrop
UIElement.CacheMode
UIElement.CanBeScrollAnchor
UIElement.CanDrag
UIElement.CenterPoint
UIElement.Clip
UIElement.CompositeMode
UIElement.ContextFlyout
UIElement.DesiredSize
UIElement.ExitDisplayModeOnAccessKeyInvoked
UIElement.FocusState
UIElement.HighContrastAdjustment
UIElement.IsAccessKeyScope
UIElement.IsDoubleTapEnabled
UIElement.IsHitTestVisible
UIElement.IsHoldingEnabled
UIElement.IsRightTapEnabled
UIElement.IsTabStop
UIElement.IsTapEnabled
UIElement.KeyTipHorizontalOffset
UIElement.KeyTipPlacementMode
UIElement.KeyTipTarget
UIElement.KeyTipVerticalOffset
UIElement.KeyboardAcceleratorPlacementMode
UIElement.KeyboardAcceleratorPlacementTarget
UIElement.KeyboardAccelerators
UIElement.Lights
UIElement.ManipulationMode
UIElement.Opacity
UIElement.OpacityTransition
UIElement.PointerCaptures
UIElement.Projection
UIElement.ProtectedCursor
UIElement.RasterizationScale
UIElement.RenderSize
UIElement.RenderTransform
UIElement.RenderTransformOrigin
UIElement.Rotation
UIElement.RotationAxis
UIElement.RotationTransition
UIElement.Scale
UIElement.ScaleTransition
UIElement.Shadow
UIElement.TabFocusNavigation
UIElement.TabIndex
UIElement.Transform3D
UIElement.TransformMatrix
UIElement.Transitions
UIElement.Translation
UIElement.TranslationTransition
UIElement.UseLayoutRounding
UIElement.UseSystemFocusVisuals
UIElement.Visibility
UIElement.XYFocusDown
UIElement.XYFocusDownNavigationStrategy
UIElement.XYFocusKeyboardNavigation
UIElement.XYFocusLeft
UIElement.XYFocusLeftNavigationStrategy
UIElement.XYFocusRight
UIElement.XYFocusRightNavigationStrategy
UIElement.XYFocusUp
UIElement.XYFocusUpNavigationStrategy
UIElement.XamlRoot
UIElement.AccessKeyDisplayDismissed
UIElement.AccessKeyDisplayRequested
UIElement.AccessKeyInvoked
UIElement.BringIntoViewRequested
UIElement.CharacterReceived
UIElement.ContextCanceled
UIElement.ContextRequested
UIElement.DoubleTapped
UIElement.DragEnter
UIElement.DragLeave
UIElement.DragOver
UIElement.DragStarting
UIElement.Drop
UIElement.DropCompleted
UIElement.GettingFocus
UIElement.GotFocus
UIElement.Holding
UIElement.KeyDown
UIElement.KeyUp
UIElement.LosingFocus
UIElement.LostFocus
UIElement.ManipulationCompleted
UIElement.ManipulationDelta
UIElement.ManipulationInertiaStarting
UIElement.ManipulationStarted
UIElement.ManipulationStarting
UIElement.NoFocusCandidateFound
UIElement.PointerCanceled
UIElement.PointerCaptureLost
UIElement.PointerEntered
UIElement.PointerExited
UIElement.PointerMoved
UIElement.PointerPressed
UIElement.PointerReleased
UIElement.PointerWheelChanged
UIElement.PreviewKeyDown
UIElement.PreviewKeyUp
UIElement.ProcessKeyboardAccelerators
UIElement.RightTapped
UIElement.Tapped
Microsoft.UI.Xaml.DependencyObject.Equals(Microsoft.UI.Xaml.DependencyObject)
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.GetAnimationBaseValue(DependencyProperty)
DependencyObject.RegisterPropertyChangedCallback(DependencyProperty, DependencyPropertyChangedCallback)
DependencyObject.UnregisterPropertyChangedCallback(DependencyProperty, Int64)
Microsoft.UI.Xaml.DependencyObject.WinRT.IWinRTObject.AdditionalTypeData
DependencyObject.Dispatcher
DependencyObject.DispatcherQueue
Object.Equals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.UI.Controls
Assembly: Esri.ArcGISRuntime.WinUI.dll
Syntax
[TemplatePart(Name = "ZoomBox", Type = typeof(FrameworkElement))]
[ContentProperty(Name = "Map")]
public class MapView : GeoView, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, ICustomQueryInterface, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>, INotifyPropertyChanged
Remarks

The MapView is a container that holds a Map. A Map holds a collection of operational layers and Basemap. Layers are visual representations of geographic information and come in many forms. The types of layers that are displayed in a MapView are two dimensional in nature; meaning they are displayed in X/Y (a.k.a. Latitude/Longitude) coordinate space.

There is only one Map per MapView and it is set by the Map Property. Multiple Map objects can be created and swapped out dynamically as the application is running in the MapView.

To display a Map, add a MapView control to your app and assign the map to it. This loads the map, its basemap and collection of operational layers, and displays their content on screen.

User interactions such as pan, zoom, rotate, and identify or selection are supported in the MapView using touch, mouse, keyboard, or pen/pencil. If required, you can override keys, clicks, and gestures to provide a specific user experience.

The visible area of the MapView is represented by the Viewpoint.

You can programmatically set the visible area by specifying a viewpoint. For example, SetViewpointGeometryAsync(Geometry) sets the visible area to the extent of a provided geometry, and SetViewpointGeometryAsync(Geometry, Double) zooms to a given scale, centered at the given point. Any geometries passed to these methods are automatically projected to match the SpatialReference of the map view's Map, if required.

To determine the current visible area or the center point and scale of a MapView, call GetCurrentViewpoint(ViewpointType). Call IsNavigating to ensure that any user-initiated or programmatic navigation is complete before getting the current Viewpoint.

In an MVC architecture, this class represents the View tier. The Model tier is represented by the Map object which provides a collection of operational layers and a Basemap. A Layer provides a visual representation of geographic information and comes in many forms. The types of layers that are displayed in a MapView are two-dimensional in nature; meaning they are displayed in X/Y coordinate space.

Constructors

Name Description
MapView()

Initializes a new instance of the MapView class.

Fields

Name Description
BackgroundGridProperty

Identifies the BackgroundGrid Dependency Property

GridProperty

Identifies the Grid Dependency Property

InteractionOptionsProperty

Identifies the InteractionOptions Dependency Property

LocationDisplayProperty

Identifies the LocationDisplay Dependency Property

MapProperty

Identifies the Map dependency property

SketchEditorProperty

Identifies the SketchEditor Dependency Property

Properties

Name Description
BackgroundGrid

Gets or sets the background grid that a Map is displayed on top of.

Grid

Gets or sets a coordinate system grid to display on top of the MapView.

InteractionOptions

Gets or sets a set of properties that control user interaction with the MapView.

LocationDisplay

Gets the location display that manages and renders the device's current location on a MapView using a data source, such as a GPS sensor.

Map

Gets or sets the map that the MapView is displaying.

MapRotation

Gets the rotation angle of the Map in degrees from its north-south direction.

MapScale

Gets the scale of the MapView.

SketchEditor

Gets or sets the sketch editor used for drawing and editing on the map.

UnitsPerPixel

Gets the size of each device-independent pixel (DIP) in map units.

VisibleArea

Gets the view's visible area.

WrapAroundMode

Gets or sets whether continuous panning across the international date line is enabled.

Methods

Name Description
CancelSetViewpointOperations()

Cancels any pending or currently running SetViewpointAsync operations.

LocationToScreen(MapPoint)

Converts a location in map coordinates to a screen coordinate relative to the upper-left corner of the map.

OnApplyTemplate()

Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.

OnCreateAutomationPeer()

Returns a class-specific AutomationPeer implementation for the Microsoft UI Automation infrastructure.

ScreenToLocation(Point)

Converts screen coordinates relative to the upper-left corner of the map view to a location in map coordinates.

SetViewpointAsync(Viewpoint, TimeSpan, AnimationCurve)

Animates the display to the new viewpoint using the provided animation curve. The AnimationCurve defines the animation easing function.

SetViewpointCenterAsync(MapPoint)

Centers the map view at the provided center point.

SetViewpointCenterAsync(MapPoint, Double)

Centers the map view at the provided center point and zooms to the given scale.

SetViewpointCenterAsync(Double, Double)

Centers the view on the provided point.

SetViewpointCenterAsync(Double, Double, Double)

Centers the view on the provided point and zooms to the provided scale.

SetViewpointGeometryAsync(Geometry)

Zooms and pans the map view to the extent of the provided geometry.

SetViewpointGeometryAsync(Geometry, Double)

Zooms and pans the map view to the extent of the provided geometry with additional padding.

SetViewpointRotationAsync(Double)

Sets the rotatation of the map view to the provided angle.

SetViewpointScaleAsync(Double)

Zooms the map view to the provided scale around its current center point.

Applies to

TargetVersions
.NET 6.0 Windows100.13 - 200.1
In This Article
Back to top Copyright © 2022 Esri.