<!--
{
  "availability" : [
    "watchOS: 6.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WatchKit",
  "identifier" : "/documentation/WatchKit/WKInterfaceMap/setUserTrackingMode(_:animated:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WatchKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKInterfaceMap(im)setUserTrackingMode:animated:"
  },
  "title" : "setUserTrackingMode(_:animated:)"
}
-->

# setUserTrackingMode(_:animated:)

Sets the map’s tracking mode.

```
func setUserTrackingMode(_ mode: WKInterfaceMap.UserTrackingMode, animated: Bool)
```

## Parameters

`mode`

The desired tracking mode. For a complete list of valid tracking modes, see [`WKInterfaceMap.UserTrackingMode`](/documentation/WatchKit/WKInterfaceMap/UserTrackingMode).

`animated`

A Boolean value that indicates whether the map animates the change to the tracking mode.

## Discussion

By default, the tracking mode is [`WKInterfaceMap.UserTrackingMode.none`](/documentation/WatchKit/WKInterfaceMap/UserTrackingMode/none).

Setting the tracking mode to [`WKInterfaceMap.UserTrackingMode.follow`](/documentation/WatchKit/WKInterfaceMap/UserTrackingMode/follow) causes the map to center on the user’s location and begin tracking the user. If the map is zoomed out, the map view automatically zooms in on the user’s location, effectively changing the current visible region.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)