---
title: tracksUserLocation
framework: mapkitjs
role: symbol
role_heading: Instance Property
path: mapkitjs/map/tracksuserlocation
---

# tracksUserLocation

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

## Declaration

```data
get tracksUserLocation(): boolean;
set tracksUserLocation(value: boolean);
```

## Discussion

Discussion Set this property to true to center the map 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 the center automatically disables tracksUserLocation.

## See Also

### Displaying the user’s location

- [showsUserLocation](mapkitjs/map/showsuserlocation.md)
- [userLocationAnnotation](mapkitjs/map/userlocationannotation.md)
