Class MapView
Class, that uses the API of the original Xamarin.Forms MapView
Assembly: Mapsui.UI.Maui.dll
Syntax
public class MapView : MapControl, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IPropertyMapperView, IHotReloadableView, IReplaceableView, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, IMapControl, IDisposable, INotifyPropertyChanged, IEnumerable<Pin>, IEnumerable
Constructors
|
Edit this page
View Source
MapView()
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
MyLocationEnabledProperty
Declaration
public static readonly BindableProperty MyLocationEnabledProperty
Field Value
|
Edit this page
View Source
MyLocationFollowProperty
Declaration
public static readonly BindableProperty MyLocationFollowProperty
Field Value
|
Edit this page
View Source
PanLockProperty
Declaration
public static readonly BindableProperty PanLockProperty
Field Value
|
Edit this page
View Source
ReSnapRotationDegreesProperty
Declaration
public static readonly BindableProperty ReSnapRotationDegreesProperty
Field Value
|
Edit this page
View Source
RotationLockProperty
Declaration
public static readonly BindableProperty RotationLockProperty
Field Value
|
Edit this page
View Source
SelectedPinProperty
Declaration
public static readonly BindableProperty SelectedPinProperty
Field Value
|
Edit this page
View Source
UnSnapRotationDegreesProperty
Declaration
public static readonly BindableProperty UnSnapRotationDegreesProperty
Field Value
|
Edit this page
View Source
UniqueCalloutProperty
Declaration
public static readonly BindableProperty UniqueCalloutProperty
Field Value
|
Edit this page
View Source
UseDoubleTapProperty
Declaration
public static readonly BindableProperty UseDoubleTapProperty
Field Value
|
Edit this page
View Source
UseFlingProperty
Declaration
public static readonly BindableProperty UseFlingProperty
Field Value
|
Edit this page
View Source
ZoomLockProperty
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
Drawables
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
MyLocationEnabled
Should my location be visible on map
Declaration
public bool MyLocationEnabled { get; set; }
Property Value
|
Edit this page
View Source
MyLocationFollow
Should center of map follow my location
Declaration
public bool MyLocationFollow { get; set; }
Property Value
|
Edit this page
View Source
MyLocationLayer
Declaration
public MyLocationLayer MyLocationLayer { get; }
Property Value
|
Edit this page
View Source
PanLock
Declaration
public bool PanLock { get; set; }
Property Value
|
Edit this page
View Source
Pins
Declaration
public IList<Pin> Pins { get; }
Property Value
|
Edit this page
View Source
RotationLock
Enable rotation with pinch gesture
Declaration
public bool RotationLock { get; set; }
Property Value
|
Edit this page
View Source
SelectedPin
Declaration
public Pin? SelectedPin { get; set; }
Property Value
|
Edit this page
View Source
UniqueCallout
Single or multiple callouts possible
Declaration
public bool UniqueCallout { get; set; }
Property Value
|
Edit this page
View Source
ZoomLock
Declaration
public bool ZoomLock { get; set; }
Property Value
Methods
|
Edit this page
View Source
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
Overrides
|
Edit this page
View Source
GetCallouts()
Get callouts on map (those that are currently visible).
Declaration
public IReadOnlyList<Callout> GetCallouts()
Returns
|
Edit this page
View Source
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<Pin> GetEnumerator()
Returns
Type |
Description |
IEnumerator<Pin> |
An enumerator that can be used to iterate through the collection.
|
|
Edit this page
View Source
HideCallouts()
Hide all visible callouts
Declaration
public void HideCallouts()
|
Edit this page
View Source
OnPropertyChanged(string)
Declaration
protected override void OnPropertyChanged(string propertyName = "")
Parameters
Type |
Name |
Description |
string |
propertyName |
The name of the property that has changed.
|
Overrides
|
Edit this page
View Source
Reset()
Declaration
Events
|
Edit this page
View Source
MapClicked
Declaration
public event EventHandler<MapClickedEventArgs>? MapClicked
Event Type
|
Edit this page
View Source
MapLongClicked
Occurs when map long clicked
Declaration
public event EventHandler<MapLongClickedEventArgs>? MapLongClicked
Event Type
|
Edit this page
View Source
PinClicked
Occurs when a pin clicked
Declaration
public event EventHandler<PinClickedEventArgs>? PinClicked
Event Type
|
Edit this page
View Source
SelectedPinChanged
Occurs when selected pin changed
Declaration
public event EventHandler<SelectedPinChangedEventArgs>? SelectedPinChanged
Event Type
Implements