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

# setShowsUserLocation(_:)

Sets whether the map shows the user’s current location.

```
func setShowsUserLocation(_ showsUserLocation: Bool)
```

## Parameters

`showsUserLocation`

A Boolean value that indicates whether the map shows the user’s current location.

## Discussion

Setting this property to <doc://com.apple.documentation/documentation/Swift/true> displays the users current location on the map. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

This property doesn’t indicate whether the user’s position is visible on the map. Setting this property to <doc://com.apple.documentation/documentation/Swift/true> causes the map view to use the Core Location framework to track the user’s current location and display the location when it’s visible on screen. To keep the map centered on the user’s location, pass [`WKInterfaceMap.UserTrackingMode.follow`](/documentation/WatchKit/WKInterfaceMap/UserTrackingMode/follow) to the [`setUserTrackingMode(_:animated:)`](/documentation/WatchKit/WKInterfaceMap/setUserTrackingMode(_:animated:)) method.

---

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)