---
title: tracksUserLocation
framework: mapkitjs
role: symbol
role_heading: Interface Property
path: mapkitjs/mapconstructoroptions/tracksuserlocation
---

# tracksUserLocation

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

## Declaration

```data
tracksUserLocation?: boolean;
```

## Discussion

Discussion The default value is false.

## See Also

### Enabling user location

- [showsUserLocation](mapkitjs/mapconstructoroptions/showsuserlocation.md)
- [showsUserLocationControl](mapkitjs/mapconstructoroptions/showsuserlocationcontrol.md)
