Display your current position on the map, as well as switch between different types of auto pan modes.
When using a map within a GIS, it may be helpful for a user to know their own location within a map, whether that's to aid the user's navigation or to provide an easy means of identifying/collecting geospatial information at their location.
Select an autopan mode, then use the button to start and stop location display.
- Create a
MapView
. - Set the
LocationDisplay.AutoPanMode
that corresponds with the selected element of the combo box. - Set the
LocationDisplay.IsEnabled
bool from theMapView
to true. - Set the
LocationDisplay.IsEnabled
bool from theMapView
to false when the stop button is pressed.
- LocationDisplay
- LocationDisplay.AutoPanMode
- Map
- MapView
Location permissions are required for this sample.
compass, GPS, location, map, mobile, navigation