MapView
ShowsUserLocationneedsNSLocationWhenInUseUsageDescriptionin the app plist.
Properties
ClusterMarker
Builds a custom view for a cluster from its pin count, or null for the native counted marker.
Only used while
ClustersPinsis on.
ClustersPins
Whether nearby pins collapse into a single counted marker that splits apart on zoom.
Type: bool
Kind
The base imagery the map draws.
Type: MapKind
Overlays
The shapes drawn on the map beneath its pins.
Type: BindableList<MapOverlay>
PinCommand
Command invoked with the tapped pin.
Type: ICommand?
Pins
The markers dropped on the map.
Type: BindableList<MapPin>
PitchEnabled
Whether the user can tilt the map into a 3D pitch.
Type: bool
Region
The visible extent, updated as the user pans and zooms.
RotateEnabled
Whether the user can rotate the map.
Type: bool
ScrollEnabled
Whether the user can pan the map.
Type: bool
ShowsCompass
Whether the compass appears when the map is rotated.
Type: bool
ShowsScale
Whether a distance scale appears while zooming.
Type: bool
ShowsTraffic
Whether live traffic is drawn.
Type: bool
ShowsUserLocation
Whether the blue dot marking the user's location is shown.
Type: bool
ZoomEnabled
Whether the user can zoom the map.
Type: bool
Methods
MeasureOverride
Content measurement. Panels recurse; controls delegate to the native SizeThatFits.
| Parameter | Summary |
|---|---|
Size availableSize | The size available for the view's content. |
Returns
Size: The desired content size.
SetRegion
Moves the map to a region.