

For information about the Position struct, see Map Position and Distance.įor information about the ItemsSource, ItemTemplate, and ItemTemplateSelector properties, see Display a pin collection. When the event is fired, the Position property is set to the map location that was tapped. The MapClickedEventArgs object that accompanies the event has a single property named Position, of type Position. The Map class also defines a MapClicked event that's fired when the map is tapped. These properties, with the exception of the MapElements, Pins, and VisibleRegion properties, are backed by BindableProperty objects, which mean they can be targets of data bindings. VisibleRegion, of type MapSpan, returns the currently displayed region of the map.TrafficEnabled, of type bool, indicates whether traffic data is overlaid on the map.Pins, of type IList, represents the list of pins on the map.MoveToLastRegionOnLayoutChange, of type bool, controls whether the displayed map region will move from its current region to its previously set region when a layout change occurs.MapType, of type MapType, indicates the display style of the map.MapElements, of type IList, represents the list of elements on the map, such as polygons and polylines.

HasZoomEnabled, of type bool, determines whether the map is allowed to zoom.HasScrollEnabled, of type bool, determines whether the map is allowed to scroll.ItemTemplateSelector, of type DataTemplateSelector, which specifies the DataTemplateSelector that will be used to choose a DataTemplate for an item at runtime.ItemTemplate, of type DataTemplate, which specifies the DataTemplate to apply to each item in the collection of displayed items.ItemsSource, of type IEnumerable, which specifies the collection of IEnumerable items to be displayed.IsShowingUser, of type bool, indicates whether the map is showing the user's current location.The Map class defines the following properties that control map appearance and behavior: It uses the native map control for each platform, providing a fast and familiar maps experience for users: The Map control is a cross-platform view for displaying and annotating maps.
