Class MapView
Class, that uses the API of the original Xamarin.Forms MapView
Assembly: Mapsui.UI.Forms.dll
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
Initializes a new instance of the MapView class.
Declaration
Fields
|
Edit this page
View Source
Declaration
public static readonly BindableProperty ButtonMarginProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty ButtonSizeProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty ButtonSpacingProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty IsMyLocationButtonVisibleProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty IsNorthingButtonVisibleProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty IsZoomButtonVisibleProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty MyLocationEnabledProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty MyLocationFollowProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty PanLockProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty ReSnapRotationDegreesProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty RotationLockProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty SelectedPinProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty UnSnapRotationDegreesProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty UniqueCalloutProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty UseDoubleTapProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty UseFlingProperty
Field Value
|
Edit this page
View Source
Declaration
public static readonly BindableProperty ZoomLockProperty
Field Value
Properties
|
Edit this page
View Source
Declaration
public Thickness ButtonMargin { get; set; }
Property Value
|
Edit this page
View Source
Size of buttons in x- and y-direction
Declaration
public double ButtonSize { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public double ButtonSpacing { get; set; }
Property Value
|
Edit this page
View Source
List of drawables like polyline and polygon
Declaration
public IList<Drawable> Drawables { get; }
Property Value
|
Edit this page
View Source
Enable My Location button
Declaration
public bool IsMyLocationButtonVisible { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public bool IsNorthingButtonVisible { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public bool IsZoomButtonVisible { get; set; }
Property Value
|
Edit this page
View Source
Should my location be visible on map
Declaration
public bool MyLocationEnabled { get; set; }
Property Value
|
Edit this page
View Source
Should center of map follow my location
Declaration
public bool MyLocationFollow { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public MyLocationLayer MyLocationLayer { get; }
Property Value
|
Edit this page
View Source
Declaration
public bool PanLock { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public IList<Pin> Pins { get; }
Property Value
|
Edit this page
View Source
Enable rotation with pinch gesture
Declaration
public bool RotationLock { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public Pin? SelectedPin { get; set; }
Property Value
|
Edit this page
View Source
Single or multiple callouts possible
Declaration
public bool UniqueCallout { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public bool ZoomLock { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
Overrides
|
Edit this page
View Source
Get callouts on map (those that are currently visible).
Declaration
public IReadOnlyList<Callout> GetCallouts()
Returns
|
Edit this page
View Source
Declaration
public IEnumerator<Pin> GetEnumerator()
Returns
|
Edit this page
View Source
Hide all visible callouts
Declaration
public void HideCallouts()
|
Edit this page
View Source
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
|
Edit this page
View Source
Declaration
Events
|
Edit this page
View Source
Declaration
public event EventHandler<MapClickedEventArgs>? MapClicked
Event Type
|
Edit this page
View Source
Occurs when map long clicked
Declaration
public event EventHandler<MapLongClickedEventArgs>? MapLongClicked
Event Type
|
Edit this page
View Source
Occurs when a pin clicked
Declaration
public event EventHandler<PinClickedEventArgs>? PinClicked
Event Type
|
Edit this page
View Source
Occurs when selected pin changed
Declaration
public event EventHandler<SelectedPinChangedEventArgs>? SelectedPinChanged
Event Type
Implements