Skip to content

MapView

Namespace: ThinkGeo.UI.Android

This class represents the map control.

public class MapView : Android.Widget.RelativeLayout, System.IDisposable, Android.Runtime.IJavaObject, Java.Interop.IJavaObjectEx, Java.Interop.IJavaPeerable, Android.Graphics.Drawables.Drawable+ICallback, Android.Views.Accessibility.IAccessibilityEventSource, Android.Views.KeyEvent+ICallback, Android.Views.IViewManager, Android.Views.IViewParent

Inheritance Object → Object → View → ViewGroup → RelativeLayout → MapView
Implements IDisposable, IJavaObject, IJavaObjectEx, IJavaPeerable, ICallback, IAccessibilityEventSource, ICallback, IViewManager, IViewParent

Remarks:

The mapView class inherits from the RelativeLayout, so it can be dragged onto the page or be created and added to a page via code like the popular control itself. You also need to configure the properties of the mapView. The most important step is adding overlays, which generate images and stack them over each other to form a map image. The mapView control has many methods and events through which you can interact with the mapView.

Fields

BitmapConfig

public static Config BitmapConfig;

Properties

Height

public int Height { get; }

Property Value

Int32

Width

public int Width { get; }

Property Value

Int32

DisplayDensity

Gets the display density.

public static float DisplayDensity { get; }

Property Value

Single

MapRotation

public double MapRotation { get; set; }

Property Value

Double

DrawingMarginInPixels

public ushort DrawingMarginInPixels { get; set; }

Property Value

UInt16

MapResizeMode

public MapResizeMode MapResizeMode { get; set; }

Property Value

MapResizeMode

CenterPoint

public PointShape CenterPoint { get; set; }

Property Value

PointShape

RotationEnabled

Gets or sets a value indicating whether this instance is inertial pan enabled.

public bool RotationEnabled { get; set; }

Property Value

Boolean
true if this instance is inertial pan enabled; otherwise, false.

CurrentExtent

Gets or sets the current extent of the MapControl.

public RectangleShape CurrentExtent { get; set; }

Property Value

RectangleShape

Remarks:

The current extent stands for the extent of current position, this is very important metrics to caculate the scale.

MapScale

Gets the current scale for the MapControl.

public double MapScale { get; set; }

Property Value

Double

        The current scale.

CurrentScale

public double CurrentScale { get; }

Property Value

Double

AdornmentOverlay

Gets or sets the adornment overlay in the MapControl.

public AdornmentOverlay AdornmentOverlay { get; }

Property Value

AdornmentOverlay

EditOverlay

Gets or sets the edit overlay in the MapControl.

public EditInteractiveOverlay EditOverlay { get; set; }

Property Value

EditInteractiveOverlay

ExtentOverlay

Gets or sets the extent overlay in the MapControl.

public ExtentInteractiveOverlay ExtentOverlay { get; set; }

Property Value

ExtentInteractiveOverlay

InteractiveOverlays

This property gets the collection of InteractiveOverlays in the MapControl.

public GeoCollection<InteractiveOverlay> InteractiveOverlays { get; }

Property Value

GeoCollection<InteractiveOverlay>

Remarks:

This property is used when you want to change the default behavior of the InteractiveOverlay or add your own customized InteractiveOverlay.

MapTools

Gets the map tools for the MapControl.

public MapTools MapTools { get; }

Property Value

MapTools

        The map tools.

MapUnit

Gets or sets the map unit used by the MapControl.

public GeographyUnit MapUnit { get; set; }

Property Value

GeographyUnit

Remarks:

The MapUnit reflects the data unit.

Overlays

This property gets the collection of Overlays in the MapControl.

public GeoCollection<Overlay> Overlays { get; }

Property Value

GeoCollection<Overlay>

TrackOverlay

Gets or sets the track overlay in the MapControl.

public TrackInteractiveOverlay TrackOverlay { get; set; }

Property Value

TrackInteractiveOverlay

ZoomLevelSet

This property gets or sets the ZoomLevelSet used for the MapView control.

public ZoomLevelSet ZoomLevelSet { get; set; }

Property Value

ZoomLevelSet

MinimumScale

This property gets and sets a minimum scale when navigating the map.

When you keep zooming in, and the target scale is smaller than the minimum scale, the zooming operation will be stopped.

public double MinimumScale { get; set; }

Property Value

Double

MaximumScale

This property gets and sets a maximum scale when navigating the map.

When you keep zooming out, and the target scale is bigger than the maximum scale, the zooming operation will be stopped.

public double MaximumScale { get; set; }

Property Value

Double

JniPeerMembers

public JniPeerMembers JniPeerMembers { get; }

Property Value

JniPeerMembers

Gravity

public GravityFlags Gravity { get; }

Property Value

GravityFlags

IgnoreGravity

public int IgnoreGravity { get; }

Property Value

Int32

AlwaysDrawnWithCacheEnabled

public bool AlwaysDrawnWithCacheEnabled { get; set; }

Property Value

Boolean

AnimationCacheEnabled

public bool AnimationCacheEnabled { get; set; }

Property Value

Boolean

ChildCount

public int ChildCount { get; }

Property Value

Int32

ClipChildren

public bool ClipChildren { get; }

Property Value

Boolean

ClipToPadding

public bool ClipToPadding { get; }

Property Value

Boolean

DescendantFocusability

public DescendantFocusability DescendantFocusability { get; set; }

Property Value

DescendantFocusability

FocusedChild

public View FocusedChild { get; }

Property Value

View

IsLayoutSuppressed

public bool IsLayoutSuppressed { get; }

Property Value

Boolean

LayoutAnimation

public LayoutAnimationController LayoutAnimation { get; set; }

Property Value

LayoutAnimationController

LayoutAnimationListener

public IAnimationListener LayoutAnimationListener { get; set; }

Property Value

IAnimationListener

LayoutMode

public ViewLayoutMode LayoutMode { get; set; }

Property Value

ViewLayoutMode

LayoutTransition

public LayoutTransition LayoutTransition { get; set; }

Property Value

LayoutTransition

MotionEventSplittingEnabled

public bool MotionEventSplittingEnabled { get; set; }

Property Value

Boolean

NestedScrollAxes

public ScrollAxis NestedScrollAxes { get; }

Property Value

ScrollAxis

PersistentDrawingCache

public PersistentDrawingCaches PersistentDrawingCache { get; set; }

Property Value

PersistentDrawingCaches

TouchscreenBlocksFocus

public bool TouchscreenBlocksFocus { get; set; }

Property Value

Boolean

TransitionGroup

public bool TransitionGroup { get; set; }

Property Value

Boolean

AccessibilityClassNameFormatted

public ICharSequence AccessibilityClassNameFormatted { get; }

Property Value

ICharSequence

AccessibilityClassName

public string AccessibilityClassName { get; }

Property Value

String

AccessibilityHeading

public bool AccessibilityHeading { get; set; }

Property Value

Boolean

AccessibilityLiveRegion

public AccessibilityLiveRegion AccessibilityLiveRegion { get; set; }

Property Value

AccessibilityLiveRegion

AccessibilityNodeProvider

public AccessibilityNodeProvider AccessibilityNodeProvider { get; }

Property Value

AccessibilityNodeProvider

AccessibilityPaneTitleFormatted

public ICharSequence AccessibilityPaneTitleFormatted { get; set; }

Property Value

ICharSequence

AccessibilityPaneTitle

public string AccessibilityPaneTitle { get; set; }

Property Value

String

AccessibilityTraversalAfter

public int AccessibilityTraversalAfter { get; set; }

Property Value

Int32

AccessibilityTraversalBefore

public int AccessibilityTraversalBefore { get; set; }

Property Value

Int32

Activated

public bool Activated { get; set; }

Property Value

Boolean

Alpha

public float Alpha { get; set; }

Property Value

Single

Animation

public Animation Animation { get; set; }

Property Value

Animation

AnimationMatrix

public Matrix AnimationMatrix { get; set; }

Property Value

Matrix

ApplicationWindowToken

public IBinder ApplicationWindowToken { get; }

Property Value

IBinder

AttributeSourceResourceMap

public IDictionary<Integer, Integer> AttributeSourceResourceMap { get; }

Property Value

IDictionary<Integer, Integer>

AutofillId

public AutofillId AutofillId { get; set; }

Property Value

AutofillId

AutofillType

public AutofillType AutofillType { get; }

Property Value

AutofillType

AutofillValue

public AutofillValue AutofillValue { get; }

Property Value

AutofillValue

Background

public Drawable Background { get; set; }

Property Value

Drawable

BackgroundTintBlendMode

public BlendMode BackgroundTintBlendMode { get; set; }

Property Value

BlendMode

BackgroundTintList

public ColorStateList BackgroundTintList { get; set; }

Property Value

ColorStateList

BackgroundTintMode

public Mode BackgroundTintMode { get; set; }

Property Value

Mode

Baseline

public int Baseline { get; }

Property Value

Int32

Bottom

public int Bottom { get; set; }

Property Value

Int32

CameraDistance

public float CameraDistance { get; }

Property Value

Single

Clickable

public bool Clickable { get; set; }

Property Value

Boolean

ClipBounds

public Rect ClipBounds { get; set; }

Property Value

Rect

ClipToOutline

public bool ClipToOutline { get; set; }

Property Value

Boolean

ContentCaptureSession

public ContentCaptureSession ContentCaptureSession { get; set; }

Property Value

ContentCaptureSession

ContentDescriptionFormatted

public ICharSequence ContentDescriptionFormatted { get; set; }

Property Value

ICharSequence

ContentDescription

public string ContentDescription { get; set; }

Property Value

String

Context

public Context Context { get; }

Property Value

Context

ContextClickable

public bool ContextClickable { get; set; }

Property Value

Boolean

DefaultFocusHighlightEnabled

public bool DefaultFocusHighlightEnabled { get; set; }

Property Value

Boolean

Display

public Display Display { get; }

Property Value

Display

DrawingCache

public Bitmap DrawingCache { get; }

Property Value

Bitmap

DrawingCacheBackgroundColor

public Color DrawingCacheBackgroundColor { get; set; }

Property Value

Color

DrawingCacheEnabled

public bool DrawingCacheEnabled { get; set; }

Property Value

Boolean

DrawingCacheQuality

public DrawingCacheQuality DrawingCacheQuality { get; set; }

Property Value

DrawingCacheQuality

DrawingTime

public long DrawingTime { get; }

Property Value

Int64

DuplicateParentStateEnabled

public bool DuplicateParentStateEnabled { get; set; }

Property Value

Boolean

Elevation

public float Elevation { get; set; }

Property Value

Single

Enabled

public bool Enabled { get; set; }

Property Value

Boolean

ExplicitStyle

public int ExplicitStyle { get; }

Property Value

Int32

FilterTouchesWhenObscured

public bool FilterTouchesWhenObscured { get; set; }

Property Value

Boolean

FitsSystemWindows

public bool FitsSystemWindows { get; }

Property Value

Boolean

Focusable

public bool Focusable { get; set; }

Property Value

Boolean

FocusableInTouchMode

public bool FocusableInTouchMode { get; set; }

Property Value

Boolean

FocusedByDefault

public bool FocusedByDefault { get; set; }

Property Value

Boolean

ForceDarkAllowed

public bool ForceDarkAllowed { get; set; }

Property Value

Boolean

Foreground

public Drawable Foreground { get; set; }

Property Value

Drawable

ForegroundGravity

public GravityFlags ForegroundGravity { get; }

Property Value

GravityFlags

ForegroundTintBlendMode

public BlendMode ForegroundTintBlendMode { get; set; }

Property Value

BlendMode

ForegroundTintList

public ColorStateList ForegroundTintList { get; set; }

Property Value

ColorStateList

ForegroundTintMode

public Mode ForegroundTintMode { get; set; }

Property Value

Mode

Handler

public Handler Handler { get; }

Property Value

Handler

HapticFeedbackEnabled

public bool HapticFeedbackEnabled { get; set; }

Property Value

Boolean

HasExplicitFocusable

public bool HasExplicitFocusable { get; }

Property Value

Boolean

HasFocus

public bool HasFocus { get; }

Property Value

Boolean

HasFocusable

public bool HasFocusable { get; }

Property Value

Boolean

HasNestedScrollingParent

public bool HasNestedScrollingParent { get; }

Property Value

Boolean

HasOnClickListeners

public bool HasOnClickListeners { get; }

Property Value

Boolean

HasOnLongClickListeners

public bool HasOnLongClickListeners { get; }

Property Value

Boolean

HasOverlappingRendering

public bool HasOverlappingRendering { get; }

Property Value

Boolean

HasPointerCapture

public bool HasPointerCapture { get; }

Property Value

Boolean

HasTransientState

public bool HasTransientState { get; set; }

Property Value

Boolean

HasWindowFocus

public bool HasWindowFocus { get; }

Property Value

Boolean

HorizontalFadingEdgeEnabled

public bool HorizontalFadingEdgeEnabled { get; set; }

Property Value

Boolean

HorizontalFadingEdgeLength

public int HorizontalFadingEdgeLength { get; }

Property Value

Int32

HorizontalScrollBarEnabled

public bool HorizontalScrollBarEnabled { get; set; }

Property Value

Boolean

HorizontalScrollbarThumbDrawable

public Drawable HorizontalScrollbarThumbDrawable { get; set; }

Property Value

Drawable

HorizontalScrollbarTrackDrawable

public Drawable HorizontalScrollbarTrackDrawable { get; set; }

Property Value

Drawable

Hovered

public bool Hovered { get; set; }

Property Value

Boolean

Id

public int Id { get; set; }

Property Value

Int32

ImportantForAccessibility

public ImportantForAccessibility ImportantForAccessibility { get; set; }

Property Value

ImportantForAccessibility

ImportantForAutofill

public ImportantForAutofill ImportantForAutofill { get; set; }

Property Value

ImportantForAutofill

ImportantForContentCapture

public int ImportantForContentCapture { get; set; }

Property Value

Int32

IsAccessibilityFocused

public bool IsAccessibilityFocused { get; }

Property Value

Boolean

IsAttachedToWindow

public bool IsAttachedToWindow { get; }

Property Value

Boolean

IsDirty

public bool IsDirty { get; }

Property Value

Boolean

IsFocused

public bool IsFocused { get; }

Property Value

Boolean

IsHardwareAccelerated

public bool IsHardwareAccelerated { get; }

Property Value

Boolean

IsImportantForAccessibility

public bool IsImportantForAccessibility { get; }

Property Value

Boolean

IsImportantForAutofill

public bool IsImportantForAutofill { get; }

Property Value

Boolean

IsImportantForContentCapture

public bool IsImportantForContentCapture { get; }

Property Value

Boolean

IsInEditMode

public bool IsInEditMode { get; }

Property Value

Boolean

IsInLayout

public bool IsInLayout { get; }

Property Value

Boolean

IsInTouchMode

public bool IsInTouchMode { get; }

Property Value

Boolean

IsLaidOut

public bool IsLaidOut { get; }

Property Value

Boolean

IsLayoutDirectionResolved

public bool IsLayoutDirectionResolved { get; }

Property Value

Boolean

IsLayoutRequested

public bool IsLayoutRequested { get; }

Property Value

Boolean

IsOpaque

public bool IsOpaque { get; }

Property Value

Boolean

IsPaddingRelative

public bool IsPaddingRelative { get; }

Property Value

Boolean

IsPivotSet

public bool IsPivotSet { get; }

Property Value

Boolean

IsScrollContainer

public bool IsScrollContainer { get; }

Property Value

Boolean

IsShowingLayoutBounds

public bool IsShowingLayoutBounds { get; }

Property Value

Boolean

IsShown

public bool IsShown { get; }

Property Value

Boolean

IsTemporarilyDetached

public bool IsTemporarilyDetached { get; }

Property Value

Boolean

IsTextAlignmentResolved

public bool IsTextAlignmentResolved { get; }

Property Value

Boolean

IsTextDirectionResolved

public bool IsTextDirectionResolved { get; }

Property Value

Boolean

KeepScreenOn

public bool KeepScreenOn { get; set; }

Property Value

Boolean

KeyDispatcherState

public DispatcherState KeyDispatcherState { get; }

Property Value

DispatcherState

KeyboardNavigationCluster

public bool KeyboardNavigationCluster { get; set; }

Property Value

Boolean

LabelFor

public int LabelFor { get; set; }

Property Value

Int32

LayerType

public LayerType LayerType { get; }

Property Value

LayerType

LayoutDirection

public LayoutDirection LayoutDirection { get; set; }

Property Value

LayoutDirection

LayoutParameters

public LayoutParams LayoutParameters { get; set; }

Property Value

LayoutParams

Left

public int Left { get; set; }

Property Value

Int32

LongClickable

public bool LongClickable { get; set; }

Property Value

Boolean

Matrix

public Matrix Matrix { get; }

Property Value

Matrix

MeasuredHeight

public int MeasuredHeight { get; }

Property Value

Int32

MeasuredHeightAndState

public int MeasuredHeightAndState { get; }

Property Value

Int32

MeasuredState

public int MeasuredState { get; }

Property Value

Int32

MeasuredWidth

public int MeasuredWidth { get; }

Property Value

Int32

MeasuredWidthAndState

public int MeasuredWidthAndState { get; }

Property Value

Int32

MinimumHeight

public int MinimumHeight { get; }

Property Value

Int32

MinimumWidth

public int MinimumWidth { get; }

Property Value

Int32

NestedScrollingEnabled

public bool NestedScrollingEnabled { get; set; }

Property Value

Boolean

NextClusterForwardId

public int NextClusterForwardId { get; set; }

Property Value

Int32

NextFocusDownId

public int NextFocusDownId { get; set; }

Property Value

Int32

NextFocusForwardId

public int NextFocusForwardId { get; set; }

Property Value

Int32

NextFocusLeftId

public int NextFocusLeftId { get; set; }

Property Value

Int32

NextFocusRightId

public int NextFocusRightId { get; set; }

Property Value

Int32

NextFocusUpId

public int NextFocusUpId { get; set; }

Property Value

Int32

OnFocusChangeListener

public IOnFocusChangeListener OnFocusChangeListener { get; set; }

Property Value

IOnFocusChangeListener

OutlineAmbientShadowColor

public int OutlineAmbientShadowColor { get; }

Property Value

Int32

OutlineProvider

public ViewOutlineProvider OutlineProvider { get; set; }

Property Value

ViewOutlineProvider

OutlineSpotShadowColor

public int OutlineSpotShadowColor { get; }

Property Value

Int32

OverScrollMode

public OverScrollMode OverScrollMode { get; set; }

Property Value

OverScrollMode

Overlay

public ViewOverlay Overlay { get; }

Property Value

ViewOverlay

PaddingBottom

public int PaddingBottom { get; }

Property Value

Int32

PaddingEnd

public int PaddingEnd { get; }

Property Value

Int32

PaddingLeft

public int PaddingLeft { get; }

Property Value

Int32

PaddingRight

public int PaddingRight { get; }

Property Value

Int32

PaddingStart

public int PaddingStart { get; }

Property Value

Int32

PaddingTop

public int PaddingTop { get; }

Property Value

Int32

Parent

public IViewParent Parent { get; }

Property Value

IViewParent

ParentForAccessibility

public IViewParent ParentForAccessibility { get; }

Property Value

IViewParent

PivotX

public float PivotX { get; set; }

Property Value

Single

PivotY

public float PivotY { get; set; }

Property Value

Single

PointerIcon

public PointerIcon PointerIcon { get; set; }

Property Value

PointerIcon

Pressed

public bool Pressed { get; set; }

Property Value

Boolean

Resources

public Resources Resources { get; }

Property Value

Resources

RevealOnFocusHint

public bool RevealOnFocusHint { get; set; }

Property Value

Boolean

public int Right { get; set; }

Property Value

Int32

RootSurfaceControl

public IAttachedSurfaceControl RootSurfaceControl { get; }

Property Value

IAttachedSurfaceControl

RootView

public View RootView { get; }

Property Value

View

RootWindowInsets

public WindowInsets RootWindowInsets { get; }

Property Value

WindowInsets

Rotation

public float Rotation { get; set; }

Property Value

Single

RotationX

public float RotationX { get; set; }

Property Value

Single

RotationY

public float RotationY { get; set; }

Property Value

Single

SaveEnabled

public bool SaveEnabled { get; set; }

Property Value

Boolean

SaveFromParentEnabled

public bool SaveFromParentEnabled { get; set; }

Property Value

Boolean

ScaleX

public float ScaleX { get; set; }

Property Value

Single

ScaleY

public float ScaleY { get; set; }

Property Value

Single

ScreenReaderFocusable

public bool ScreenReaderFocusable { get; set; }

Property Value

Boolean

ScrollBarDefaultDelayBeforeFade

public int ScrollBarDefaultDelayBeforeFade { get; set; }

Property Value

Int32

ScrollBarFadeDuration

public int ScrollBarFadeDuration { get; set; }

Property Value

Int32

ScrollBarSize

public int ScrollBarSize { get; set; }

Property Value

Int32

ScrollBarStyle

public ScrollbarStyles ScrollBarStyle { get; set; }

Property Value

ScrollbarStyles

ScrollCaptureHint

public int ScrollCaptureHint { get; set; }

Property Value

Int32

ScrollIndicators

public ScrollIndicatorPosition ScrollIndicators { get; }

Property Value

ScrollIndicatorPosition

ScrollX

public int ScrollX { get; set; }

Property Value

Int32

ScrollY

public int ScrollY { get; set; }

Property Value

Int32

ScrollbarFadingEnabled

public bool ScrollbarFadingEnabled { get; set; }

Property Value

Boolean

Selected

public bool Selected { get; set; }

Property Value

Boolean

SolidColor

public int SolidColor { get; }

Property Value

Int32

SoundEffectsEnabled

public bool SoundEffectsEnabled { get; set; }

Property Value

Boolean

SourceLayoutResId

public int SourceLayoutResId { get; }

Property Value

Int32

StateDescriptionFormatted

public ICharSequence StateDescriptionFormatted { get; set; }

Property Value

ICharSequence

StateDescription

public string StateDescription { get; set; }

Property Value

String

StateListAnimator

public StateListAnimator StateListAnimator { get; set; }

Property Value

StateListAnimator

SystemGestureExclusionRects

public IList<Rect> SystemGestureExclusionRects { get; set; }

Property Value

IList<Rect>

SystemUiVisibility

public StatusBarVisibility SystemUiVisibility { get; set; }

Property Value

StatusBarVisibility

Tag

public Object Tag { get; set; }

Property Value

Object

TextAlignment

public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

TextDirection

public TextDirection TextDirection { get; set; }

Property Value

TextDirection

TooltipTextFormatted

public ICharSequence TooltipTextFormatted { get; set; }

Property Value

ICharSequence

TooltipText

public string TooltipText { get; set; }

Property Value

String

Top

public int Top { get; set; }

Property Value

Int32

TouchDelegate

public TouchDelegate TouchDelegate { get; set; }

Property Value

TouchDelegate

Touchables

public IList<View> Touchables { get; }

Property Value

IList<View>

TransitionAlpha

public float TransitionAlpha { get; set; }

Property Value

Single

TransitionName

public string TransitionName { get; set; }

Property Value

String

TranslationX

public float TranslationX { get; set; }

Property Value

Single

TranslationY

public float TranslationY { get; set; }

Property Value

Single

TranslationZ

public float TranslationZ { get; set; }

Property Value

Single

UniqueDrawingId

public long UniqueDrawingId { get; }

Property Value

Int64

VerticalFadingEdgeEnabled

public bool VerticalFadingEdgeEnabled { get; set; }

Property Value

Boolean

VerticalFadingEdgeLength

public int VerticalFadingEdgeLength { get; }

Property Value

Int32

VerticalScrollBarEnabled

public bool VerticalScrollBarEnabled { get; set; }

Property Value

Boolean

VerticalScrollbarPosition

public ScrollbarPosition VerticalScrollbarPosition { get; set; }

Property Value

ScrollbarPosition

VerticalScrollbarThumbDrawable

public Drawable VerticalScrollbarThumbDrawable { get; set; }

Property Value

Drawable

VerticalScrollbarTrackDrawable

public Drawable VerticalScrollbarTrackDrawable { get; set; }

Property Value

Drawable

VerticalScrollbarWidth

public int VerticalScrollbarWidth { get; }

Property Value

Int32

ViewTranslationResponse

public ViewTranslationResponse ViewTranslationResponse { get; }

Property Value

ViewTranslationResponse

ViewTreeObserver

public ViewTreeObserver ViewTreeObserver { get; }

Property Value

ViewTreeObserver

Visibility

public ViewStates Visibility { get; set; }

Property Value

ViewStates

WindowId

public WindowId WindowId { get; }

Property Value

WindowId

WindowInsetsController

public IWindowInsetsController WindowInsetsController { get; }

Property Value

IWindowInsetsController

WindowSystemUiVisibility

public SystemUiFlags WindowSystemUiVisibility { get; }

Property Value

SystemUiFlags

WindowToken

public IBinder WindowToken { get; }

Property Value

IBinder

WindowVisibility

public ViewStates WindowVisibility { get; }

Property Value

ViewStates

ApplyWindowInsets

public ApplyWindowInsetsHandler ApplyWindowInsets { get; set; }

Property Value

ApplyWindowInsetsHandler

JniIdentityHashCode

public int JniIdentityHashCode { get; }

Property Value

Int32

PeerReference

public JniObjectReference PeerReference { get; }

Property Value

JniObjectReference

Handle

public IntPtr Handle { get; }

Property Value

IntPtr

Class

public Class Class { get; }

Property Value

Class

Constructors

MapView(Context)

Initializes a new instance of the MapView class.

public MapView(Context context)

Parameters

context Context
Interface to global information about an application environment.

MapView(Context, IAttributeSet)

Initializes a new instance of the MapView class.

public MapView(Context context, IAttributeSet attrs)

Parameters

context Context
Interface to global information about an application environment.

attrs IAttributeSet
A collection of attributes, as found associated with a tag in an XML document.

MapView(Context, IAttributeSet, Int32)

Initializes a new instance of the MapView class.

public MapView(Context context, IAttributeSet attrs, int defStyle)

Parameters

context Context
Interface to global information about an application environment.

attrs IAttributeSet
A collection of attributes, as found associated with a tag in an XML document.

defStyle Int32
The definition style.

Methods

Close()

Closes this instance.

public void Close()

Refresh()

Refreshes current map control.

public void Refresh()

Remarks:

Refreshes all the existing overlays and map tools.

RefreshAsync()

Refreshes current map control.

public Task RefreshAsync()

Returns

Task

Remarks:

Refreshes all the existing overlays and map tools.

Refresh(IEnumerable<Overlay>)

This method will simulate the Refresh interaction. Refreshes a specified overlay collection.

public void Refresh(IEnumerable<Overlay> overlays)

Parameters

overlays IEnumerable<Overlay>
A collection of overlay to be refreshed.

RefreshAsync(IEnumerable<Overlay>)

This method will simulate the Refresh interaction. Refreshes a specified overlay collection.

public Task RefreshAsync(IEnumerable<Overlay> overlays)

Parameters

overlays IEnumerable<Overlay>
A collection of overlay to be refreshed.

Returns

Task

RefreshCore()

Refreshes current map control.

protected void RefreshCore()

Remarks:

Refreshes all the existing overlays and map tools.

RefreshCoreAsync()

Refreshes current map control.

protected Task RefreshCoreAsync()

Returns

Task

Remarks:

Refreshes all the existing overlays and map tools.

CenterAt(PointShape)

Locates the map center to the specified world point.

public void CenterAt(PointShape worldCenter)

Parameters

worldCenter PointShape
A world point to locate the map.

CenterAtAsync(PointShape)

Locates the map center to the specified world point.

public Task CenterAtAsync(PointShape worldCenter)

Parameters

worldCenter PointShape
A world point to locate the map.

Returns

Task

CenterAt(Feature)

Locates the map center to the center of the specified feature.

public void CenterAt(Feature feature)

Parameters

feature Feature
A feature to locates the map center.

CenterAtAsync(Feature)

Locates the map center to the center of the specified feature.

public Task CenterAtAsync(Feature feature)

Parameters

feature Feature
A feature to locates the map center.

Returns

Task

CenterAt(Double, Double)

Locates the map center to the worldX and worldY.

public void CenterAt(double worldX, double worldY)

Parameters

worldX Double
The x of the world point.

worldY Double
The y of the world point.

CenterAtAsync(Double, Double)

Locates the map center to the worldX and worldY.

public Task CenterAtAsync(double worldX, double worldY)

Parameters

worldX Double
The x of the world point.

worldY Double
The y of the world point.

Returns

Task

PanCore(PanDirection, Int32)

This function will pan the currentExtent based on a direction and percentage.

protected void PanCore(PanDirection direction, int percentage)

Parameters

direction PanDirection
This parameter is the direction in which you want to pan.

percentage Int32
This parameter is the percentage by which you want to pan.

Exceptions

InvalidOperationException
This InvalidOperationException exception will be thrown when you get or set the property in another thread instead of the thread that created the WpfMap.

Remarks:

This method will change the current extent by panning according to the direction and percentage specified.

PanAsyncCore(PanDirection, Int32)

This function will pan the currentExtent based on a direction and percentage.

protected Task PanAsyncCore(PanDirection direction, int percentage)

Parameters

direction PanDirection
This parameter is the direction in which you want to pan.

percentage Int32
This parameter is the percentage by which you want to pan.

Returns

Task
None.

Exceptions

InvalidOperationException
This InvalidOperationException exception will be thrown when you get or set the property in another thread instead of the thread that created the WpfMap.

Remarks:

This method will change the current extent by panning according to the direction and percentage specified.

PanCore(Single, Int32)

This protected virtual method is the Core method of Pan API.

protected void PanCore(float degree, int percentage)

Parameters

degree Single
The degree to be paned.

percentage Int32
The percentage to be paned.

PanAsyncCore(Single, Int32)

This protected virtual method is the Core method of Pan API.

protected Task PanAsyncCore(float degree, int percentage)

Parameters

degree Single
The degree to be paned.

percentage Int32
The percentage to be paned.

Returns

Task

PanCore(Double, Double)

This protected virtual method is the Core method of Pan API.

protected void PanCore(double offsetScreenX, double offsetScreenY)

Parameters

offsetScreenX Double
Screen offset X to be paned.

offsetScreenY Double
Screen offset Y to be paned.

PanAsyncCore(Double, Double)

This protected virtual method is the Core method of Pan API.

protected Task PanAsyncCore(double offsetScreenX, double offsetScreenY)

Parameters

offsetScreenX Double
Screen offset X to be paned.

offsetScreenY Double
Screen offset Y to be paned.

Returns

Task

Pan(PanDirection, Int32)

This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.

public void Pan(PanDirection direction, int percentage)

Parameters

direction PanDirection
The direction to be paned.

percentage Int32
The percentage to be paned.

PanAsync(PanDirection, Int32)

This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.

public Task PanAsync(PanDirection direction, int percentage)

Parameters

direction PanDirection
The direction to be paned.

percentage Int32
The percentage to be paned.

Returns

Task

Pan(Single, Int32)

This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.

public void Pan(float degree, int percentage)

Parameters

degree Single
The degree to be paned.

percentage Int32
The percentage to be paned.

PanAsync(Single, Int32)

This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.

public Task PanAsync(float degree, int percentage)

Parameters

degree Single
The degree to be paned.

percentage Int32
The percentage to be paned.

Returns

Task

Pan(Single, Single)

This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.

public void Pan(float offsetScreenX, float offsetScreenY)

Parameters

offsetScreenX Single
Screen offset X to be paned.

offsetScreenY Single
Screen offset Y to be paned.

PanAsync(Single, Single)

This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.

public Task PanAsync(float offsetScreenX, float offsetScreenY)

Parameters

offsetScreenX Single
Screen offset X to be paned.

offsetScreenY Single
Screen offset Y to be paned.

Returns

Task

ZoomIn()

Zooms the map in for one level

public void ZoomIn()

ZoomInAsync()

Zooms the map in for one level

public Task ZoomInAsync()

Returns

Task

ZoomIn(Int32)

This method will simulate the ZoomIn interaction. Zooms the map in by the provided percentage.

public void ZoomIn(int percentage)

Parameters

percentage Int32
A scale to zoom the map in.

ZoomInAsync(Int32)

This method will simulate the ZoomIn interaction. Zooms the map in by the provided percentage.

public Task ZoomInAsync(int percentage)

Parameters

percentage Int32
A scale to zoom the map in.

Returns

Task

ZoomInCore(Int32)

This protected virtual method is the Core method of ZoomIn API.

protected void ZoomInCore(int percentage)

Parameters

percentage Int32
A scale to zoom the map in.

ZoomInAsyncCore(Int32)

This protected virtual method is the Core method of ZoomIn API.

protected Task ZoomInAsyncCore(int percentage)

Parameters

percentage Int32
A scale to zoom the map in.

Returns

Task

ZoomOut()

Zooms the map out for one level.

public void ZoomOut()

ZoomOutAsync()

Zooms the map out for one level.

public Task ZoomOutAsync()

Returns

Task

ZoomOut(Int32)

This method will simulate the ZoomOut interaction. Zooms the map out by the provided percentage.

public void ZoomOut(int percentage)

Parameters

percentage Int32
A scale to zoom the map out.

ZoomOutAsync(Int32)

This method will simulate the ZoomOut interaction. Zooms the map out by the provided percentage.

public Task ZoomOutAsync(int percentage)

Parameters

percentage Int32
A scale to zoom the map out.

Returns

Task

ZoomOutCore(Int32)

This protected virtual method is the Core method of ZoomOut API.

protected void ZoomOutCore(int percentage)

Parameters

percentage Int32
A scale to zoom the map out.

ZoomOutAsyncCore(Int32)

This protected virtual method is the Core method of ZoomOut API.

protected Task ZoomOutAsyncCore(int percentage)

Parameters

percentage Int32
A scale to zoom the map out.

Returns

Task

ZoomInByAnchorPoint(ScreenPointF)

Zooms the map in by the touch position. This method will simulate the ZoomInByAnchorPoint interaction.

public void ZoomInByAnchorPoint(ScreenPointF touchPosition)

Parameters

touchPosition ScreenPointF
A position to zoom in map.

ZoomInByAnchorPointAsync(ScreenPointF)

Zooms the map in by the touch position. This method will simulate the ZoomInByAnchorPoint interaction.

public Task ZoomInByAnchorPointAsync(ScreenPointF touchPosition)

Parameters

touchPosition ScreenPointF
A position to zoom in map.

Returns

Task

ZoomInByAnchorPointCore(ScreenPointF)

This protected virtual method is the Core method of ZoomInByAnchorPoint API.

protected void ZoomInByAnchorPointCore(ScreenPointF touchPosition)

Parameters

touchPosition ScreenPointF
A position to zoom in map.

ZoomInByAnchorPointAsyncCore(ScreenPointF)

This protected virtual method is the Core method of ZoomInByAnchorPoint API.

protected Task ZoomInByAnchorPointAsyncCore(ScreenPointF touchPosition)

Parameters

touchPosition ScreenPointF
A position to zoom in map.

Returns

Task

ZoomTo(BaseShape)

Zooms the map to specified feature.

public void ZoomTo(BaseShape targetShape)

Parameters

targetShape BaseShape
The target shape.

ZoomToAsync(BaseShape)

Zooms the map to specified feature.

public Task ZoomToAsync(BaseShape targetShape)

Parameters

targetShape BaseShape
The target shape.

Returns

Task

ZoomTo(Feature)

This method zooms current map to the specified feature.

public void ZoomTo(Feature feature)

Parameters

feature Feature
A feature to locates the map.

Remarks:

When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.

ZoomToAsync(Feature)

This method zooms current map to the specified feature.

public Task ZoomToAsync(Feature feature)

Parameters

feature Feature
A feature to locates the map.

Returns

Task

Remarks:

When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.

ZoomTo(PointShape, Double)

This method zooms current map to a specified position and scale.

public void ZoomTo(PointShape worldCenter, double scale)

Parameters

worldCenter PointShape
A world center to zoom the map to.

scale Double
A double value indicates the scale to zoom the map to.

Remarks:

When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.

ZoomToAsync(PointShape, Double)

This method zooms current map to a specified position and scale.

public Task ZoomToAsync(PointShape worldCenter, double scale)

Parameters

worldCenter PointShape
A world center to zoom the map to.

scale Double
A double value indicates the scale to zoom the map to.

Returns

Task

Remarks:

When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.

ZoomToCore(RectangleShape)

This protected virtual method is the Core method of ZoomTo API.

protected void ZoomToCore(RectangleShape extent)

Parameters

extent RectangleShape
An extent to locates the map.

ZoomToAsyncCore(RectangleShape)

This protected virtual method is the Core method of ZoomTo API.

protected Task ZoomToAsyncCore(RectangleShape extent)

Parameters

extent RectangleShape
An extent to locates the map.

Returns

Task

ZoomToScale(Double)

Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.

public void ZoomToScale(double targetScale)

Parameters

targetScale Double
A target scale to zoom the map.

ZoomToScaleAsync(Double)

Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.

public Task ZoomToScaleAsync(double targetScale)

Parameters

targetScale Double
A target scale to zoom the map.

Returns

Task

ZoomToScaleCore(Double)

This method zooms current map to a specified scale.

protected void ZoomToScaleCore(double targetScale)

Parameters

targetScale Double
A double value indicates the scale to zoom the map to.

Remarks:

When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.

ZoomToScaleAsyncCore(Double)

This method zooms current map to a specified scale.

protected Task ZoomToScaleAsyncCore(double targetScale)

Parameters

targetScale Double
A double value indicates the scale to zoom the map to.

Returns

Task

Remarks:

When calling this method, it doesn't refresh existing Tiles on the current map. For example, if using a TileOverlay such as LayerOverlay; a layer style is changed, Refresh method is proper to call.

ZoomToPreviousExtent()

Zooms to previous extent.

public void ZoomToPreviousExtent()

ZoomToPreviousExtentAsync()

Zooms to previous extent.

public Task ZoomToPreviousExtentAsync()

Returns

Task

ZoomToNextExtent()

Zooms to next extent.

public void ZoomToNextExtent()

ZoomToNextExtentAsync()

Zooms to next extent.

public Task ZoomToNextExtentAsync()

Returns

Task

GetSnappedZoomLevelIndex(Double)

Gets the snapped zoom level index from the provided scale.

public int GetSnappedZoomLevelIndex(double scale)

Parameters

scale Double
A scale to be snapped.

Returns

Int32
A snapped zoom level index in scale list sychnonized by the SyncZoomLevelScales method.

ToWorldCoordinate(ScreenPointF)

Converts the provided screen points to world points.

public PointShape ToWorldCoordinate(ScreenPointF screenCoordinate)

Parameters

screenCoordinate ScreenPointF
Screen point to be converted.

Returns

PointShape
A world point that is converted from the provided parameters.

ToScreenCoordinate(PointShape)

Converts the provided world points to screen points.

public ScreenPointF ToScreenCoordinate(PointShape worldCoordinate)

Parameters

worldCoordinate PointShape
World coordinate to be converted.

Returns

ScreenPointF
A screen coordinate that is converted.

OnCurrentExtentChanged(CurrentExtentChangedMapViewEventArgs)

Raises the event.

protected void OnCurrentExtentChanged(CurrentExtentChangedMapViewEventArgs e)

Parameters

e CurrentExtentChangedMapViewEventArgs
The instance containing the event data.

OnCurrentExtentChanging(CurrentExtentChangingMapViewEventArgs)

Raises the event.

protected void OnCurrentExtentChanging(CurrentExtentChangingMapViewEventArgs e)

Parameters

e CurrentExtentChangingMapViewEventArgs
The instance containing the event data.

OnCurrentScaleChanging(CurrentScaleChangingMapViewEventArgs)

Raises the event.

protected void OnCurrentScaleChanging(CurrentScaleChangingMapViewEventArgs e)

Parameters

e CurrentScaleChangingMapViewEventArgs
The instance containing the event data.

OnCurrentScaleChanged(CurrentScaleChangedMapViewEventArgs)

Raises the event.

protected void OnCurrentScaleChanged(CurrentScaleChangedMapViewEventArgs e)

Parameters

e CurrentScaleChangedMapViewEventArgs
The instance containing the event data.

OnCollectedMapArguments(CollectedMapArgumentsMapViewEventArgs)

Occurs after collecting the map arguments

protected void OnCollectedMapArguments(CollectedMapArgumentsMapViewEventArgs e)

Parameters

e CollectedMapArgumentsMapViewEventArgs
Event argument for CollectingMapArguments event

Dispose(Boolean)

Releases the resources used by the UIView object.

protected void Dispose(bool disposing)

Parameters

disposing Boolean
If set to , the method is invoked directly and will dispose manage and unmanaged resources; If set to the method is being called by the garbage collector finalizer and should only release unmanaged resources.

Remarks:

This Dispose method releases the resources used by the UIView class.

This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposing is set to and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to .

Calling the Dispose method when you are finished using the UIView ensures that all external resources used by this managed object are released as soon as possible. Once you have invoked the Dispose method, the object is no longer useful and you should no longer make any calls to it.

For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx

OnMapRotationChanging(MapRotationChangingMapViewEventArgs)

protected void OnMapRotationChanging(MapRotationChangingMapViewEventArgs mapRotationChangingEventArgs)

Parameters

mapRotationChangingEventArgs MapRotationChangingMapViewEventArgs

OnMapRotationChanged(MapRotationChangedMapViewEventArgs)

protected void OnMapRotationChanged(MapRotationChangedMapViewEventArgs mapRotationChangedEventArgs)

Parameters

mapRotationChangedEventArgs MapRotationChangedMapViewEventArgs

DispatchDraw(Canvas)

Called by draw to draw the child views.

protected void DispatchDraw(Canvas canvas)

Parameters

canvas Canvas
the canvas on which to draw the view

Remarks:

Called by draw to draw the child views. This may be overridden by derived classes to gain control just before its children are drawn (but after its own view has been drawn).

[Android Documentation]

OnLayout(Boolean, Int32, Int32, Int32, Int32)

protected void OnLayout(bool changed, int l, int t, int r, int b)

Parameters

changed Boolean

l Int32

t Int32

r Int32

b Int32

OnLongPress(TouchMapViewEventArgs)

Called when [long press].

protected void OnLongPress(TouchMapViewEventArgs e)

Parameters

e TouchMapViewEventArgs
Event argument for LongPress event.

OnSingleTap(TouchMapViewEventArgs)

Called when [single tap].

protected void OnSingleTap(TouchMapViewEventArgs e)

Parameters

e TouchMapViewEventArgs
Event argument for SingleTap event.

OnDoubleTap(TouchMapViewEventArgs)

Called when [double tap].

protected void OnDoubleTap(TouchMapViewEventArgs e)

Parameters

e TouchMapViewEventArgs
Event argument for DoubleTap event.

OnTouchMove(TouchMapViewEventArgs)

Called when [touch move].

protected void OnTouchMove(TouchMapViewEventArgs e)

Parameters

e TouchMapViewEventArgs
Event argument for TouchMove event.

OnTouchUp(TouchMapViewEventArgs)

Called when [touch up].

protected void OnTouchUp(TouchMapViewEventArgs e)

Parameters

e TouchMapViewEventArgs
Event argument for TouchUp event.

OnTouchDown(TouchMapViewEventArgs)

Called when [touch down].

protected void OnTouchDown(TouchMapViewEventArgs e)

Parameters

e TouchMapViewEventArgs
Event argument for TouchDown event.

Events

MapRotationChanging

Occurs before map's rotation is changing.

public event EventHandler<MapRotationChangingMapViewEventArgs> MapRotationChanging;

MapRotationChanged

Occurs before map's rotation is changed.

public event EventHandler<MapRotationChangedMapViewEventArgs> MapRotationChanged;

CurrentExtentChanging

Occurs before map's extent is changing.

public event EventHandler<CurrentExtentChangingMapViewEventArgs> CurrentExtentChanging;

CurrentExtentChanged

Occurs after map's extent is changed.

public event EventHandler<CurrentExtentChangedMapViewEventArgs> CurrentExtentChanged;

CurrentScaleChanging

Occurs before map's current scale is changing.

public event EventHandler<CurrentScaleChangingMapViewEventArgs> CurrentScaleChanging;

CurrentScaleChanged

Occurs after map's current scale is changed.

public event EventHandler<CurrentScaleChangedMapViewEventArgs> CurrentScaleChanged;

CollectedMapArguments

Occurs after collected MapArguments.

public event EventHandler<CollectedMapArgumentsMapViewEventArgs> CollectedMapArguments;

LongPress

This event raises when [map long press].

public event EventHandler<TouchMapViewEventArgs> LongPress;

SingleTap

This event raises when [map single tap].

public event EventHandler<TouchMapViewEventArgs> SingleTap;

DoubleTap

This event raises when [map double tap].

public event EventHandler<TouchMapViewEventArgs> DoubleTap;

TouchMove

This event raises when [map touch move].

public event EventHandler<TouchMapViewEventArgs> TouchMove;

TouchUp

This event raises when [map touch up].

public event EventHandler<TouchMapViewEventArgs> TouchUp;

TouchDown

This event raises when [map touch down].

public event EventHandler<TouchMapViewEventArgs> TouchDown;

ChildViewAdded

public event EventHandler<ChildViewAddedEventArgs> ChildViewAdded;

ChildViewRemoved

public event EventHandler<ChildViewRemovedEventArgs> ChildViewRemoved;

AnimationEnd

public event EventHandler<AnimationEndEventArgs> AnimationEnd;

AnimationRepeat

public event EventHandler<AnimationRepeatEventArgs> AnimationRepeat;

AnimationStart

public event EventHandler<AnimationStartEventArgs> AnimationStart;

ViewAttachedToWindow

public event EventHandler<ViewAttachedToWindowEventArgs> ViewAttachedToWindow;

ViewDetachedFromWindow

public event EventHandler<ViewDetachedFromWindowEventArgs> ViewDetachedFromWindow;

LayoutChange

public event EventHandler<LayoutChangeEventArgs> LayoutChange;

UnhandledKeyEvent

public event EventHandler<UnhandledKeyEventEventArgs> UnhandledKeyEvent;

CapturedPointer

public event EventHandler<CapturedPointerEventArgs> CapturedPointer;

Click

public event EventHandler Click;

ContextClick

public event EventHandler<ContextClickEventArgs> ContextClick;

ContextMenuCreated

public event EventHandler<CreateContextMenuEventArgs> ContextMenuCreated;

Drag

public event EventHandler<DragEventArgs> Drag;

GenericMotion

public event EventHandler<GenericMotionEventArgs> GenericMotion;

Hover

public event EventHandler<HoverEventArgs> Hover;

KeyPress

public event EventHandler<KeyEventArgs> KeyPress;

LongClick

public event EventHandler<LongClickEventArgs> LongClick;

ScrollChange

public event EventHandler<ScrollChangeEventArgs> ScrollChange;

SystemUiVisibilityChange

public event EventHandler<SystemUiVisibilityChangeEventArgs> SystemUiVisibilityChange;

Touch

public event EventHandler<TouchEventArgs> Touch;

FocusChange

public event EventHandler<FocusChangeEventArgs> FocusChange;