Instance Property

tracksUserLocation

A Boolean value that determines whether to center the map on the user's location.

Declaration

attribute Boolean tracksUserLocation;

Discussion

Set this property to true to keep the map centered on the user location annotation.Enabling this property automatically enables showsUserLocation.

Set this property to false to stop centering the map on the current location.

A programmatic or user-initiated change to the map's region that moves the user location annotation off center automatically disables tracksUserLocation.

See Also

Displaying the User's Location

showsUserLocation

A Boolean value that determines whether to show the user's location on the map.

userLocationAnnotation

An annotation that indicates the user's location on the map.