MapView¶
Namespace: ThinkGeo.UI.Maui
public class MapView : Microsoft.Maui.Controls.AbsoluteLayout, System.ComponentModel.INotifyPropertyChanged, Microsoft.Maui.Controls.Internals.IDynamicResourceHandler, Microsoft.Maui.Controls.IElementDefinition, Microsoft.Maui.Controls.Internals.INameScope, Microsoft.Maui.Controls.IElementController, Microsoft.Maui.IVisualTreeElement, Microsoft.Maui.IElement, Microsoft.Maui.Controls.IEffectControlProvider, Microsoft.Maui.IToolTipElement, Microsoft.Maui.IContextFlyoutElement, Microsoft.Maui.Controls.IControlsElement, Microsoft.Maui.Controls.StyleSheets.IStyleSelectable, Microsoft.Maui.Controls.Internals.INavigationProxy, Microsoft.Maui.Controls.IAnimatable, Microsoft.Maui.Controls.IVisualElementController, Microsoft.Maui.Controls.IResourcesProvider, Microsoft.Maui.Controls.IStyleElement, Microsoft.Maui.Controls.IFlowDirectionController, Microsoft.Maui.Controls.IPropertyPropagationController, Microsoft.Maui.Controls.IVisualController, Microsoft.Maui.Controls.IWindowController, Microsoft.Maui.IView, Microsoft.Maui.ITransform, Microsoft.Maui.Controls.IControlsVisualElement, Microsoft.Maui.Controls.StyleSheets.IStylable, Microsoft.Maui.Controls.IViewController, Microsoft.Maui.Controls.Internals.IGestureController, Microsoft.Maui.Controls.IGestureRecognizers, Microsoft.Maui.IPropertyMapperView, Microsoft.Maui.HotReload.IHotReloadableView, Microsoft.Maui.IReplaceableView, Microsoft.Maui.Controls.IControlsView, Microsoft.Maui.ILayout, Microsoft.Maui.IContainer, System.Collections.Generic.IList`1[[Microsoft.Maui.IView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.ICollection`1[[Microsoft.Maui.IView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.Generic.IEnumerable`1[[Microsoft.Maui.IView, Microsoft.Maui, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System.Collections.IEnumerable, Microsoft.Maui.ISafeAreaView, Microsoft.Maui.IPadding, Microsoft.Maui.ICrossPlatformLayout, Microsoft.Maui.Controls.IBindableLayout, Microsoft.Maui.Controls.IPaddingElement, Microsoft.Maui.Controls.IInputTransparentContainerElement, Microsoft.Maui.IAbsoluteLayout, IMapView, System.IDisposable
Inheritance Object → BindableObject → Element → NavigableElement → VisualElement → View → Layout → AbsoluteLayout → MapView
Implements INotifyPropertyChanged, IDynamicResourceHandler, IElementDefinition, INameScope, IElementController, IVisualTreeElement, IElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IControlsElement, IStyleSelectable, INavigationProxy, IAnimatable, IVisualElementController, IResourcesProvider, IStyleElement, IFlowDirectionController, IPropertyPropagationController, IVisualController, IWindowController, IView, ITransform, IControlsVisualElement, IStylable, IViewController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IControlsView, ILayout, IContainer, IList<IView>, ICollection<IView>, IEnumerable<IView>, IEnumerable, ISafeAreaView, IPadding, ICrossPlatformLayout, IBindableLayout, IPaddingElement, IInputTransparentContainerElement, IAbsoluteLayout, IMapView, IDisposable
Fields¶
PointShapeProperty¶
public static BindableProperty PointShapeProperty;
IsRotationEnabledProperty¶
public static BindableProperty IsRotationEnabledProperty;
MapRotationProperty¶
public static BindableProperty MapRotationProperty;
MapScaleProperty¶
public static BindableProperty MapScaleProperty;
Properties¶
DefaultAnimationSettings¶
public AnimationSettings DefaultAnimationSettings { get; set; }
Property Value¶
DefaultOverlaysRenderSequenceType¶
public OverlaysRenderSequenceType DefaultOverlaysRenderSequenceType { get; set; }
Property Value¶
CenterPoint¶
Gets the current scale for the MapControl.
public PointShape CenterPoint { get; set; }
Property Value¶
PointShape
The current scale.
TargetMapScale¶
Gets or sets the target map scale, it's only used when AnimationSettings is MapAnimationType.DrawWithAnimation
public double TargetMapScale { get; set; }
Property Value¶
TargetCenterPoint¶
Gets or sets the target Center Point, it's only used when AnimationSettings is MapAnimationType.DrawWithAnimation
public PointShape TargetCenterPoint { get; set; }
Property Value¶
PointShape
IsRotationEnabled¶
public bool IsRotationEnabled { get; set; }
Property Value¶
MapRotation¶
public double MapRotation { get; set; }
Property Value¶
CurrentExtent¶
Gets or sets the current extent of the MapControl.
public RectangleShape CurrentExtent { get; }
Property Value¶
RectangleShape
Remarks:
The current extent stands for the extent of current position, this is very important metrics to calculate the scale.
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.
MapScale¶
Gets the current scale for the MapControl.
public double MapScale { get; set; }
Property Value¶
The current scale.
MinScale¶
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 MinScale { get; set; }
Property Value¶
MaxScale¶
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 MaxScale { get; set; }
Property Value¶
CanvasWidth¶
The Width of the MapView Canvas, it will always be a square when rotation started
public double CanvasWidth { get; }
Property Value¶
CanvasHeight¶
The height of the MapView Canvas, it will always be a square when rotation started
public double CanvasHeight { get; }
Property Value¶
MapWidth¶
public double MapWidth { get; }
Property Value¶
MapHeight¶
public double MapHeight { get; }
Property Value¶
ScaleFactor¶
public double ScaleFactor { get; set; }
Property Value¶
AdornmentOverlay¶
Gets or sets the adornment overlay in the MapControl.
public AdornmentOverlay AdornmentOverlay { get; set; }
Property Value¶
EditOverlay¶
Gets or sets the edit overlay in the MapControl.
public EditInteractiveOverlay EditOverlay { get; set; }
Property Value¶
EventView¶
Gets or sets the extent overlay in the MapControl.
public EventView EventView { get; set; }
Property Value¶
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.
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¶
MapTools¶
Gets the map tools for the MapControl.
public MapTools MapTools { get; }
Property Value¶
The map tools.
PivotXInScreen¶
public double PivotXInScreen { get; }
Property Value¶
PivotYInScreen¶
public double PivotYInScreen { get; }
Property Value¶
Children¶
public IList<IView> Children { get; }
Property Value¶
Count¶
public int Count { get; }
Property Value¶
IsReadOnly¶
public bool IsReadOnly { get; }
Property Value¶
Item¶
public IView Item { get; set; }
Property Value¶
IView
IsClippedToBounds¶
public bool IsClippedToBounds { get; set; }
Property Value¶
Padding¶
public Thickness Padding { get; set; }
Property Value¶
Thickness
IgnoreSafeArea¶
public bool IgnoreSafeArea { get; set; }
Property Value¶
CascadeInputTransparent¶
public bool CascadeInputTransparent { get; set; }
Property Value¶
GestureRecognizers¶
public IList<IGestureRecognizer> GestureRecognizers { get; }
Property Value¶
HorizontalOptions¶
public LayoutOptions HorizontalOptions { get; set; }
Property Value¶
LayoutOptions
Margin¶
public Thickness Margin { get; set; }
Property Value¶
Thickness
VerticalOptions¶
public LayoutOptions VerticalOptions { get; set; }
Property Value¶
LayoutOptions
Visual¶
public IVisual Visual { get; set; }
Property Value¶
IVisual
FlowDirection¶
public FlowDirection FlowDirection { get; set; }
Property Value¶
FlowDirection
Window¶
public Window Window { get; }
Property Value¶
Window
AnchorX¶
public double AnchorX { get; set; }
Property Value¶
AnchorY¶
public double AnchorY { get; set; }
Property Value¶
BackgroundColor¶
public Color BackgroundColor { get; set; }
Property Value¶
Color
Background¶
public Brush Background { get; set; }
Property Value¶
Brush
Behaviors¶
public IList<Behavior> Behaviors { get; }
Property Value¶
Bounds¶
public Rect Bounds { get; }
Property Value¶
Rect
Height¶
public double Height { get; }
Property Value¶
HeightRequest¶
public double HeightRequest { get; set; }
Property Value¶
InputTransparent¶
public bool InputTransparent { get; set; }
Property Value¶
IsEnabled¶
public bool IsEnabled { get; set; }
Property Value¶
IsFocused¶
public bool IsFocused { get; }
Property Value¶
IsVisible¶
public bool IsVisible { get; set; }
Property Value¶
MinimumHeightRequest¶
public double MinimumHeightRequest { get; set; }
Property Value¶
MinimumWidthRequest¶
public double MinimumWidthRequest { get; set; }
Property Value¶
MaximumHeightRequest¶
public double MaximumHeightRequest { get; set; }
Property Value¶
MaximumWidthRequest¶
public double MaximumWidthRequest { get; set; }
Property Value¶
Opacity¶
public double Opacity { get; set; }
Property Value¶
Rotation¶
public double Rotation { get; set; }
Property Value¶
RotationX¶
public double RotationX { get; set; }
Property Value¶
RotationY¶
public double RotationY { get; set; }
Property Value¶
Scale¶
public double Scale { get; set; }
Property Value¶
ScaleX¶
public double ScaleX { get; set; }
Property Value¶
ScaleY¶
public double ScaleY { get; set; }
Property Value¶
TranslationX¶
public double TranslationX { get; set; }
Property Value¶
TranslationY¶
public double TranslationY { get; set; }
Property Value¶
Triggers¶
public IList<TriggerBase> Triggers { get; }
Property Value¶
Width¶
public double Width { get; }
Property Value¶
WidthRequest¶
public double WidthRequest { get; set; }
Property Value¶
X¶
public double X { get; }
Property Value¶
Y¶
public double Y { get; }
Property Value¶
Clip¶
public Geometry Clip { get; set; }
Property Value¶
Geometry
Batched¶
public bool Batched { get; }
Property Value¶
DisableLayout¶
public bool DisableLayout { get; set; }
Property Value¶
IsInPlatformLayout¶
public bool IsInPlatformLayout { get; set; }
Property Value¶
IsPlatformStateConsistent¶
public bool IsPlatformStateConsistent { get; set; }
Property Value¶
IsPlatformEnabled¶
public bool IsPlatformEnabled { get; set; }
Property Value¶
Resources¶
public ResourceDictionary Resources { get; set; }
Property Value¶
ResourceDictionary
Frame¶
public Rect Frame { get; set; }
Property Value¶
Rect
Handler¶
public IViewHandler Handler { get; set; }
Property Value¶
IViewHandler
Shadow¶
public Shadow Shadow { get; set; }
Property Value¶
Shadow
ZIndex¶
public int ZIndex { get; set; }
Property Value¶
DesiredSize¶
public Size DesiredSize { get; protected set; }
Property Value¶
Size
IsLoaded¶
public bool IsLoaded { get; }
Property Value¶
Navigation¶
public INavigation Navigation { get; internal set; }
Property Value¶
INavigation
Style¶
public Style Style { get; set; }
Property Value¶
Style
StyleClass¶
public IList<string> StyleClass { get; set; }
Property Value¶
class¶
public IList<string> class { get; set; }
Property Value¶
NavigationProxy¶
public NavigationProxy NavigationProxy { get; }
Property Value¶
NavigationProxy
AutomationId¶
public string AutomationId { get; set; }
Property Value¶
ClassId¶
public string ClassId { get; set; }
Property Value¶
Effects¶
public IList<Effect> Effects { get; }
Property Value¶
Id¶
public Guid Id { get; }
Property Value¶
StyleId¶
public string StyleId { get; set; }
Property Value¶
LogicalChildren¶
public ReadOnlyCollection<Element> LogicalChildren { get; }
Property Value¶
RealParent¶
public Element RealParent { get; }
Property Value¶
Element
Parent¶
public Element Parent { get; set; }
Property Value¶
Element
EffectControlProvider¶
public IEffectControlProvider EffectControlProvider { get; set; }
Property Value¶
IEffectControlProvider
Handler¶
public IElementHandler Handler { get; set; }
Property Value¶
IElementHandler
Dispatcher¶
public IDispatcher Dispatcher { get; }
Property Value¶
IDispatcher
BindingContext¶
public object BindingContext { get; set; }
Property Value¶
Constructors¶
MapView()¶
Initializes a new instance of the MapView class.
public MapView()
Methods¶
RefreshAsync(CancellationToken)¶
Refreshes current map control.
public Task RefreshAsync(CancellationToken cancellationToken)
Parameters¶
cancellationToken
CancellationToken
Returns¶
Remarks:
Refreshes all the existing overlays and map tools.
RefreshAsync(IEnumerable<Overlay>, CancellationToken)¶
This method will simulate the Refresh interaction. Refreshes a specified overlay collection.
public Task RefreshAsync(IEnumerable<Overlay> overlays, CancellationToken cancellationToken)
Parameters¶
overlays
IEnumerable<Overlay>
A collection of overlay to be refreshed.
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
RefreshCoreAsync(CancellationToken)¶
Refreshes current map control.
protected Task RefreshCoreAsync(CancellationToken cancellationToken)
Parameters¶
cancellationToken
CancellationToken
Returns¶
Remarks:
Refreshes all the existing overlays and map tools.
CenterAtAsync(PointShape, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
Locates the map center to the specified world point.
public Task CenterAtAsync(PointShape worldCenter, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
worldCenter
PointShape
A world point to locate the map.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
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¶
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¶
PanAsync(PanDirection, Int32, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
This function will pan the currentExtent based on a direction and percentage.
public Task PanAsync(PanDirection direction, int percentage, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
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.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
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.
PanAsync(Single, Int32, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
This protected virtual method is the Core method of Pan API.
public Task PanAsync(float degree, int percentage, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
degree
Single
The degree to be paned.
percentage
Int32
The percentage to be paned.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
PanAsync(Single, Single, CancellationToken)¶
This method will simulate the Pan interaction. Pans the map by the specified direction and percentage.
public Task PanAsync(float offsetScreenX, float offsetScreenY, CancellationToken cancellationToken)
Parameters¶
offsetScreenX
Single
Screen offset X to be paned.
offsetScreenY
Single
Screen offset Y to be paned.
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
ZoomInAsync(CancellationToken)¶
Zooms the map in for one level
public Task ZoomInAsync(CancellationToken cancellationToken)
Parameters¶
cancellationToken
CancellationToken
Returns¶
ZoomOutAsync(CancellationToken)¶
Zooms the map out for one level.
public Task ZoomOutAsync(CancellationToken cancellationToken)
Parameters¶
cancellationToken
CancellationToken
Returns¶
ZoomToAsync(BaseShape, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
Zooms the map to specified feature.
public Task ZoomToAsync(BaseShape targetShape, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
targetShape
BaseShape
The target shape.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
ZoomToAsync(BaseShape, Double, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
Zooms the map to specified feature.
public Task ZoomToAsync(BaseShape targetShape, double rotationAngle, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
targetShape
BaseShape
The target shape.
rotationAngle
Double
A target angle the map will rotate to.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
ZoomToAsyncCore(BaseShape, Double, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
Zooms the map to specified feature.
protected Task ZoomToAsyncCore(BaseShape targetShape, double rotationAngle, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
targetShape
BaseShape
The target shape.
rotationAngle
Double
A target angle the map will rotate to.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
SaveSkBitmapToDiskAsync(SKBitmap, String, SKEncodedImageFormat, Int32)¶
public static void SaveSkBitmapToDiskAsync(SKBitmap bitmap, string filePath, SKEncodedImageFormat format, int quality)
Parameters¶
bitmap
SKBitmap
filePath
String
format
SKEncodedImageFormat
quality
Int32
ZoomToAsync(Feature, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
This method zooms current map to the specified feature.
public Task ZoomToAsync(Feature feature, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
feature
Feature
A feature to locates the map.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
ZoomToExtentAsync(PointShape, Double, Double, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
This method zooms current map to a specified position and scale.
public Task ZoomToExtentAsync(PointShape worldCenter, double mapScale, double rotationAngle, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
worldCenter
PointShape
A world center to zoom the map to.
mapScale
Double
A double value indicates the scale to zoom the map to.
rotationAngle
Double
A target angle the map will rotate to.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
ZoomToAsync(Double, AnimationSettings, OverlaysRenderSequenceType, CancellationToken)¶
Zooms the map to a provided scale. This method will simulate the ZoomToScale interaction.
public Task ZoomToAsync(double targetScale, AnimationSettings animationSettings, OverlaysRenderSequenceType overlaysRenderSequenceType, CancellationToken cancellationToken)
Parameters¶
targetScale
Double
A target scale to zoom the map.
animationSettings
AnimationSettings
The settings for the animation, including animation length, type and easing
overlaysRenderSequenceType
OverlaysRenderSequenceType
Choose whether to render the overlays sequentially or concurrently. Choose Default to use the setting in MapView.DefaultOverlaysRenderSequenceType
cancellationToken
CancellationToken
The token to monitor the cancellation requests.
Returns¶
ZoomToPreviousExtentAsync()¶
Zooms to previous extent.
public Task ZoomToPreviousExtentAsync()
Returns¶
ZoomToNextExtentAsync()¶
Zooms to the next extent.
public Task ZoomToNextExtentAsync()
Returns¶
ToWorldCoordinate(Double, Double)¶
Converts the provided screen points to world points.
public PointShape ToWorldCoordinate(double screenX, double screenY)
Parameters¶
screenX
Double
The X of the Screen point to be converted.
screenY
Double
The Y of the 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.
OnMapRotationChanging(MapRotationChangingMapViewEventArgs)¶
protected void OnMapRotationChanging(MapRotationChangingMapViewEventArgs mapRotationChangingEventArgs)
Parameters¶
mapRotationChangingEventArgs
MapRotationChangingMapViewEventArgs
OnMapRotationChanged(MapRotationChangedMapViewEventArgs)¶
protected void OnMapRotationChanged(MapRotationChangedMapViewEventArgs mapRotationChangedEventArgs)
Parameters¶
mapRotationChangedEventArgs
MapRotationChangedMapViewEventArgs
RenderOverlaysViewToBitmap(IEnumerable<Overlay>, Double, Double, Double, CancellationToken)¶
public static SKBitmap RenderOverlaysViewToBitmap(IEnumerable<Overlay> overlays, double scaleFactor, double overlaysWidth, double overlaysHeight, CancellationToken cancellationToken)
Parameters¶
overlays
IEnumerable<Overlay>
scaleFactor
Double
overlaysWidth
Double
overlaysHeight
Double
cancellationToken
CancellationToken
Returns¶
SKBitmap
Dispose()¶
public void Dispose()
Dispose(Boolean)¶
protected void Dispose(bool disposing)
Parameters¶
disposing
Boolean
OnLongPress(LongPressMapViewEventArgs)¶
Raise [long press] event.
protected void OnLongPress(LongPressMapViewEventArgs e)
Parameters¶
e
LongPressMapViewEventArgs
Event argument for LongPress event.
OnSingleTap(SingleTapMapViewEventArgs)¶
Raise [single tap] event.
protected void OnSingleTap(SingleTapMapViewEventArgs e)
Parameters¶
e
SingleTapMapViewEventArgs
Event argument for SingleTap event.
OnDoubleTap(DoubleTapMapViewEventArgs)¶
Raise [double tap] event.
protected void OnDoubleTap(DoubleTapMapViewEventArgs e)
Parameters¶
e
DoubleTapMapViewEventArgs
Event argument for DoubleTap event.
OnTouchMove(TouchMoveMapViewEventArgs)¶
Raise [touch move] event.
protected void OnTouchMove(TouchMoveMapViewEventArgs e)
Parameters¶
e
TouchMoveMapViewEventArgs
Event argument for TouchMove event.
OnTouchUp(TouchUpMapViewEventArgs)¶
Raise [touch up] event.
protected void OnTouchUp(TouchUpMapViewEventArgs e)
Parameters¶
e
TouchUpMapViewEventArgs
Event argument for TouchUp event.
OnTouchDown(TouchDownMapViewEventArgs)¶
Raise [touch down] event.
protected void OnTouchDown(TouchDownMapViewEventArgs e)
Parameters¶
e
TouchDownMapViewEventArgs
Event argument for TouchDown event.
OnTouchRotate(TouchRotateMapViewEventArgs)¶
Raise [touch rotate] event.
protected void OnTouchRotate(TouchRotateMapViewEventArgs e)
Parameters¶
e
TouchRotateMapViewEventArgs
Event argument for TouchRotate event.
OnPointer1Down(Pointer1DownMapViewEventArgs)¶
Raise [Pointer1 Down] event.
protected void OnPointer1Down(Pointer1DownMapViewEventArgs e)
Parameters¶
e
Pointer1DownMapViewEventArgs
Event argument for Pointer1Down event.
OnPointer1Up(Pointer1UpMapViewEventArgs)¶
Raise [Pointer1 Up] event.
protected void OnPointer1Up(Pointer1UpMapViewEventArgs e)
Parameters¶
e
Pointer1UpMapViewEventArgs
Event argument for Pointer1Up event.
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.
OnCurrentExtentChangedInAnimation(CurrentExtentChangedInAnimationMapViewEventArgs)¶
protected void OnCurrentExtentChangedInAnimation(CurrentExtentChangedInAnimationMapViewEventArgs e)
Parameters¶
e
CurrentExtentChangedInAnimationMapViewEventArgs
OnDrawingMapAfterResizing(EventArgs)¶
protected void OnDrawingMapAfterResizing(EventArgs e)
Parameters¶
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;
OverlayDrawn¶
public event EventHandler<OverlaysDrawnMapViewEventArgs> OverlayDrawn;
LongPress¶
This event raises when [map long press].
public event EventHandler<LongPressMapViewEventArgs> LongPress;
SingleTap¶
This event raises when [map single tap].
public event EventHandler<SingleTapMapViewEventArgs> SingleTap;
DoubleTap¶
This event raises when [map double tap].
public event EventHandler<DoubleTapMapViewEventArgs> DoubleTap;
TouchMove¶
This event raises when [map touch move].
public event EventHandler<TouchMoveMapViewEventArgs> TouchMove;
TouchUp¶
This event raises when [map touch up].
public event EventHandler<TouchUpMapViewEventArgs> TouchUp;
TouchRotate¶
This event raises when [map rotate].
public event EventHandler<TouchRotateMapViewEventArgs> TouchRotate;
Pointer1Down¶
This event raises when [Pointer1 Down].
public event EventHandler<Pointer1DownMapViewEventArgs> Pointer1Down;
Pointer1Up¶
This event raises when [Pointer1 Up].
public event EventHandler<Pointer1UpMapViewEventArgs> Pointer1Up;
TouchDown¶
This event raises when [map touch down].
public event EventHandler<TouchDownMapViewEventArgs> TouchDown;
CurrentExtentChangedInAnimation¶
public event EventHandler<CurrentExtentChangedInAnimationMapViewEventArgs> CurrentExtentChangedInAnimation;
RefreshingAfterResizing¶
public event EventHandler<EventArgs> RefreshingAfterResizing;
ChildrenReordered¶
public event EventHandler ChildrenReordered;
Focused¶
public event EventHandler<FocusEventArgs> Focused;
MeasureInvalidated¶
public event EventHandler MeasureInvalidated;
SizeChanged¶
public event EventHandler SizeChanged;
Unfocused¶
public event EventHandler<FocusEventArgs> Unfocused;
BatchCommitted¶
public event EventHandler<EventArg<VisualElement>> BatchCommitted;
FocusChangeRequested¶
public event EventHandler<FocusRequestArgs> FocusChangeRequested;
Loaded¶
public event EventHandler Loaded;
Unloaded¶
public event EventHandler Unloaded;
ChildAdded¶
public event EventHandler<ElementEventArgs> ChildAdded;
ChildRemoved¶
public event EventHandler<ElementEventArgs> ChildRemoved;
DescendantAdded¶
public event EventHandler<ElementEventArgs> DescendantAdded;
DescendantRemoved¶
public event EventHandler<ElementEventArgs> DescendantRemoved;
ParentChanging¶
public event EventHandler<ParentChangingEventArgs> ParentChanging;
ParentChanged¶
public event EventHandler ParentChanged;
HandlerChanging¶
public event EventHandler<HandlerChangingEventArgs> HandlerChanging;
HandlerChanged¶
public event EventHandler HandlerChanged;
PropertyChanged¶
public event PropertyChangedEventHandler PropertyChanged;
PropertyChanging¶
public event PropertyChangingEventHandler PropertyChanging;
BindingContextChanged¶
public event EventHandler BindingContextChanged;