Search Results for

    Show / Hide Table of Contents

    Class MapView

    Class, that uses the API of the original Xamarin.Forms MapView

    Inheritance
    object
    BindableObject
    Element
    NavigableElement
    VisualElement
    View
    Layout
    TemplatedView
    ContentView
    MapControl
    MapView
    Implements
    IAnimatable
    ITabStopElement
    IViewController
    IVisualElementController
    IElementController
    IGestureController
    IGestureRecognizers
    ILayout
    ILayoutController
    IMapControl
    IDisposable
    INotifyPropertyChanged
    IEnumerable<Pin>
    IEnumerable
    Inherited Members
    MapControl.UseGPU
    MapControl._initialized
    MapControl.ScreenWidth
    MapControl.ScreenHeight
    MapControl.RenderCache
    MapControl.UseDoubleTap
    MapControl.UseFling
    MapControl.ShiftPessed
    MapControl.TouchStarted
    MapControl.TouchEnded
    MapControl.TouchEntered
    MapControl.TouchExited
    MapControl.TouchMove
    MapControl.TouchAction
    MapControl.Hovered
    MapControl.Fling
    MapControl.SingleTap
    MapControl.LongTap
    MapControl.DoubleTap
    MapControl.Zoomed
    MapControl.OpenBrowser(string)
    MapControl.ClearTouchState()
    MapControl.RunOnUIThread(Action)
    MapControl.Dispose()
    MapControl.StartUpdates(bool)
    MapControl.StopUpdates()
    MapControl.ForceUpdate()
    MapControl.UpdateInterval
    MapControl.Performance
    MapControl.UnSnapRotationDegrees
    MapControl.ReSnapRotationDegrees
    MapControl.PixelDensity
    MapControl.Renderer
    MapControl.Info
    MapControl.PropertyChanged
    MapControl.Unsubscribe()
    MapControl.Refresh(ChangeType)
    MapControl.RefreshGraphics()
    MapControl.CallHomeIfNeeded()
    MapControl.Map
    MapControl.ToPixels(MPoint)
    MapControl.ToDeviceIndependentUnits(MPoint)
    MapControl.RefreshData(ChangeType)
    MapControl.GetMapInfo(MPoint, int)
    MapControl.GetSnapshot(IEnumerable<ILayer>)
    MapControl.ResetWidgetCache()
    ContentView.ContentProperty
    ContentView.OnBindingContextChanged()
    ContentView.Content
    TemplatedView.ControlTemplateProperty
    TemplatedView.LayoutChildren(double, double, double, double)
    TemplatedView.OnApplyTemplate()
    TemplatedView.OnChildRemoved(Element)
    TemplatedView.OnChildRemoved(Element, int)
    TemplatedView.GetTemplateChild(string)
    TemplatedView.ResolveControlTemplate()
    TemplatedView.ControlTemplate
    Layout.IsClippedToBoundsProperty
    Layout.CascadeInputTransparentProperty
    Layout.PaddingProperty
    Layout.ForceLayout()
    Layout.LayoutChildIntoBoundingRegion(VisualElement, Rectangle)
    Layout.LowerChild(View)
    Layout.RaiseChild(View)
    Layout.InvalidateLayout()
    Layout.OnChildMeasureInvalidated(object, EventArgs)
    Layout.OnChildMeasureInvalidated()
    Layout.OnSizeAllocated(double, double)
    Layout.ShouldInvalidateOnChildAdded(View)
    Layout.ShouldInvalidateOnChildRemoved(View)
    Layout.UpdateChildrenLayout()
    Layout.ResolveLayoutChanges()
    Layout.IsClippedToBounds
    Layout.Padding
    Layout.CascadeInputTransparent
    Layout.LayoutChanged
    View.VerticalOptionsProperty
    View.HorizontalOptionsProperty
    View.MarginProperty
    View.GetChildElements(Point)
    View.GestureController
    View.GestureRecognizers
    View.HorizontalOptions
    View.Margin
    View.VerticalOptions
    VisualElement.NavigationProperty
    VisualElement.StyleProperty
    VisualElement.InputTransparentProperty
    VisualElement.IsEnabledProperty
    VisualElement.XProperty
    VisualElement.YProperty
    VisualElement.AnchorXProperty
    VisualElement.AnchorYProperty
    VisualElement.TranslationXProperty
    VisualElement.TranslationYProperty
    VisualElement.WidthProperty
    VisualElement.HeightProperty
    VisualElement.RotationProperty
    VisualElement.RotationXProperty
    VisualElement.RotationYProperty
    VisualElement.ScaleProperty
    VisualElement.ScaleXProperty
    VisualElement.ScaleYProperty
    VisualElement.ClipProperty
    VisualElement.VisualProperty
    VisualElement.IsVisibleProperty
    VisualElement.OpacityProperty
    VisualElement.BackgroundColorProperty
    VisualElement.BackgroundProperty
    VisualElement.BehaviorsProperty
    VisualElement.TriggersProperty
    VisualElement.WidthRequestProperty
    VisualElement.HeightRequestProperty
    VisualElement.MinimumWidthRequestProperty
    VisualElement.MinimumHeightRequestProperty
    VisualElement.IsFocusedProperty
    VisualElement.FlowDirectionProperty
    VisualElement.TabIndexProperty
    VisualElement.IsTabStopProperty
    VisualElement.OnTabIndexPropertyChanged(int, int)
    VisualElement.TabIndexDefaultValueCreator()
    VisualElement.OnTabStopPropertyChanged(bool, bool)
    VisualElement.TabStopDefaultValueCreator()
    VisualElement.BatchBegin()
    VisualElement.BatchCommit()
    VisualElement.Focus()
    VisualElement.Layout(Rectangle)
    VisualElement.Measure(double, double, MeasureFlags)
    VisualElement.Unfocus()
    VisualElement.InvalidateMeasure()
    VisualElement.OnChildAdded(Element)
    VisualElement.OnChildrenReordered()
    VisualElement.OnMeasure(double, double)
    VisualElement.SizeAllocated(double, double)
    VisualElement.ChangeVisualState()
    VisualElement.Visual
    VisualElement.FlowDirection
    VisualElement.AnchorX
    VisualElement.AnchorY
    VisualElement.BackgroundColor
    VisualElement.Background
    VisualElement.Behaviors
    VisualElement.Bounds
    VisualElement.Height
    VisualElement.HeightRequest
    VisualElement.InputTransparent
    VisualElement.IsEnabled
    VisualElement.IsFocused
    VisualElement.IsVisible
    VisualElement.MinimumHeightRequest
    VisualElement.MinimumWidthRequest
    VisualElement.Opacity
    VisualElement.Rotation
    VisualElement.RotationX
    VisualElement.RotationY
    VisualElement.Scale
    VisualElement.ScaleX
    VisualElement.ScaleY
    VisualElement.TabIndex
    VisualElement.IsTabStop
    VisualElement.TranslationX
    VisualElement.TranslationY
    VisualElement.Triggers
    VisualElement.Width
    VisualElement.WidthRequest
    VisualElement.X
    VisualElement.Y
    VisualElement.Clip
    VisualElement.Resources
    VisualElement.ChildrenReordered
    VisualElement.Focused
    VisualElement.MeasureInvalidated
    VisualElement.SizeChanged
    VisualElement.Unfocused
    NavigableElement.OnParentSet()
    NavigableElement.Navigation
    NavigableElement.Style
    NavigableElement.StyleClass
    NavigableElement.class
    Element.MenuProperty
    Element.AutomationIdProperty
    Element.ClassIdProperty
    Element.GetMenu(BindableObject)
    Element.SetMenu(BindableObject, Menu)
    Element.FindByName(string)
    Element.RemoveDynamicResource(BindableProperty)
    Element.SetDynamicResource(BindableProperty, string)
    Element.AutomationId
    Element.ClassId
    Element.Effects
    Element.Id
    Element.StyleId
    Element.Parent
    Element.ChildAdded
    Element.ChildRemoved
    Element.DescendantAdded
    Element.DescendantRemoved
    BindableObject.BindingContextProperty
    BindableObject.ClearValue(BindableProperty)
    BindableObject.ClearValue(BindablePropertyKey)
    BindableObject.GetValue(BindableProperty)
    BindableObject.IsSet(BindableProperty)
    BindableObject.RemoveBinding(BindableProperty)
    BindableObject.SetBinding(BindableProperty, BindingBase)
    BindableObject.ApplyBindings()
    BindableObject.OnPropertyChanging(string)
    BindableObject.UnapplyBindings()
    BindableObject.SetValue(BindableProperty, object)
    BindableObject.SetValue(BindablePropertyKey, object)
    BindableObject.CoerceValue(BindableProperty)
    BindableObject.CoerceValue(BindablePropertyKey)
    BindableObject.Dispatcher
    BindableObject.BindingContext
    BindableObject.PropertyChanging
    BindableObject.BindingContextChanged
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.UI.Forms
    Assembly: Mapsui.UI.Forms.dll
    Syntax
    public class MapView : MapControl, IAnimatable, ITabStopElement, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, ILayout, ILayoutController, IMapControl, IDisposable, INotifyPropertyChanged, IEnumerable<Pin>, IEnumerable

    Constructors

    | Edit this page View Source

    MapView()

    Initializes a new instance of the MapView class.

    Declaration
    public MapView()

    Fields

    | Edit this page View Source

    ButtonMarginProperty

    Declaration
    public static readonly BindableProperty ButtonMarginProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    ButtonSizeProperty

    Declaration
    public static readonly BindableProperty ButtonSizeProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    ButtonSpacingProperty

    Declaration
    public static readonly BindableProperty ButtonSpacingProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    IsMyLocationButtonVisibleProperty

    Declaration
    public static readonly BindableProperty IsMyLocationButtonVisibleProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    IsNorthingButtonVisibleProperty

    Declaration
    public static readonly BindableProperty IsNorthingButtonVisibleProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    IsZoomButtonVisibleProperty

    Declaration
    public static readonly BindableProperty IsZoomButtonVisibleProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    MyLocationEnabledProperty

    Declaration
    public static readonly BindableProperty MyLocationEnabledProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    MyLocationFollowProperty

    Declaration
    public static readonly BindableProperty MyLocationFollowProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    PanLockProperty

    Declaration
    public static readonly BindableProperty PanLockProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    ReSnapRotationDegreesProperty

    Declaration
    public static readonly BindableProperty ReSnapRotationDegreesProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    RotationLockProperty

    Declaration
    public static readonly BindableProperty RotationLockProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    SelectedPinProperty

    Declaration
    public static readonly BindableProperty SelectedPinProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    UnSnapRotationDegreesProperty

    Declaration
    public static readonly BindableProperty UnSnapRotationDegreesProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    UniqueCalloutProperty

    Declaration
    public static readonly BindableProperty UniqueCalloutProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    UseDoubleTapProperty

    Declaration
    public static readonly BindableProperty UseDoubleTapProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    UseFlingProperty

    Declaration
    public static readonly BindableProperty UseFlingProperty
    Field Value
    Type Description
    BindableProperty
    | Edit this page View Source

    ZoomLockProperty

    Declaration
    public static readonly BindableProperty ZoomLockProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    | Edit this page View Source

    ButtonMargin

    Margin for buttons

    Declaration
    public Thickness ButtonMargin { get; set; }
    Property Value
    Type Description
    Thickness
    | Edit this page View Source

    ButtonSize

    Size of buttons in x- and y-direction

    Declaration
    public double ButtonSize { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    ButtonSpacing

    Spacing between buttons

    Declaration
    public double ButtonSpacing { get; set; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Drawables

    List of drawables like polyline and polygon

    Declaration
    public IList<Drawable> Drawables { get; }
    Property Value
    Type Description
    IList<Drawable>
    | Edit this page View Source

    IsMyLocationButtonVisible

    Enable My Location button

    Declaration
    public bool IsMyLocationButtonVisible { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsNorthingButtonVisible

    Enable Northing button

    Declaration
    public bool IsNorthingButtonVisible { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    IsZoomButtonVisible

    Enable zoom buttons

    Declaration
    public bool IsZoomButtonVisible { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MyLocationEnabled

    Should my location be visible on map

    Declaration
    public bool MyLocationEnabled { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    Needs a BeginInvokeOnMainThread to change MyLocationLayer.Enabled

    | Edit this page View Source

    MyLocationFollow

    Should center of map follow my location

    Declaration
    public bool MyLocationFollow { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    MyLocationLayer

    MyLocation layer

    Declaration
    public MyLocationLayer MyLocationLayer { get; }
    Property Value
    Type Description
    MyLocationLayer
    | Edit this page View Source

    PanLock

    Enable paning

    Declaration
    public bool PanLock { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Pins

    Pins on map

    Declaration
    public IList<Pin> Pins { get; }
    Property Value
    Type Description
    IList<Pin>
    | Edit this page View Source

    RotationLock

    Enable rotation with pinch gesture

    Declaration
    public bool RotationLock { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    SelectedPin

    Selected pin

    Declaration
    public Pin? SelectedPin { get; set; }
    Property Value
    Type Description
    Pin
    | Edit this page View Source

    UniqueCallout

    Single or multiple callouts possible

    Declaration
    public bool UniqueCallout { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ZoomLock

    Enable zooming

    Declaration
    public bool ZoomLock { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Dispose(bool)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    MapControl.Dispose(bool)
    | Edit this page View Source

    GetCallouts()

    Get callouts on map (those that are currently visible).

    Declaration
    public IReadOnlyList<Callout> GetCallouts()
    Returns
    Type Description
    IReadOnlyList<Callout>
    | Edit this page View Source

    GetEnumerator()

    Declaration
    public IEnumerator<Pin> GetEnumerator()
    Returns
    Type Description
    IEnumerator<Pin>
    | Edit this page View Source

    HideCallouts()

    Hide all visible callouts

    Declaration
    public void HideCallouts()
    | Edit this page View Source

    OnPropertyChanged(string)

    Method that is called when a bound property is changed.

    Declaration
    protected override void OnPropertyChanged(string propertyName = "")
    Parameters
    Type Name Description
    string propertyName

    The name of the bound property that changed.

    Overrides
    MapControl.OnPropertyChanged(string)
    Remarks

    To be added.

    | Edit this page View Source

    Reset()

    Declaration
    public void Reset()

    Events

    | Edit this page View Source

    MapClicked

    Occurs when map clicked

    Declaration
    public event EventHandler<MapClickedEventArgs>? MapClicked
    Event Type
    Type Description
    EventHandler<MapClickedEventArgs>
    | Edit this page View Source

    MapLongClicked

    Occurs when map long clicked

    Declaration
    public event EventHandler<MapLongClickedEventArgs>? MapLongClicked
    Event Type
    Type Description
    EventHandler<MapLongClickedEventArgs>
    | Edit this page View Source

    PinClicked

    Occurs when a pin clicked

    Declaration
    public event EventHandler<PinClickedEventArgs>? PinClicked
    Event Type
    Type Description
    EventHandler<PinClickedEventArgs>
    | Edit this page View Source

    SelectedPinChanged

    Occurs when selected pin changed

    Declaration
    public event EventHandler<SelectedPinChangedEventArgs>? SelectedPinChanged
    Event Type
    Type Description
    EventHandler<SelectedPinChangedEventArgs>

    Implements

    IAnimatable
    ITabStopElement
    IViewController
    IVisualElementController
    IElementController
    IGestureController
    IGestureRecognizers
    ILayout
    ILayoutController
    IMapControl
    IDisposable
    INotifyPropertyChanged
    IEnumerable<T>
    IEnumerable
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX