---
title: WKInterfaceMap
framework: watchkit
role: symbol
role_heading: Class
path: watchkit/wkinterfacemap
---

# WKInterfaceMap

An interface element that displays a noninteractive map for the location you specify.

## Declaration

```swift
class WKInterfaceMap
```

## Overview

Overview You can configure Maps dynamically from your interface controller. Use the methods of WKInterfaceMap to specify the visible region of the map and to add any annotations or points of interest. Tapping the map launches the Maps app on the user’s Apple Watch and displays the corresponding location. Using a map object, you specify a geographic region to display and you can optionally add annotations to the surface of the map. Maps display annotations as images on top of the map content. You can use custom images or display the built-in pin images. Maps can display no more than five annotations at a time. Don’t subclass or create instances of this class yourself. Instead, define outlets in your interface controller class and connect them to the corresponding objects in your storyboard file. For example, to refer to a map object in your interface, define a property with the following syntax in your interface controller class: During the initialization of your interface controller, WatchKit creates a new instance of this class and assigns it to your outlet. At that point, you can use the object in your outlet to make changes to the onscreen map. The Apple Watch must have an active network connection to download map tiles. Configure the Map in Interface Builder In Xcode, you can configure information about your map from your storyboard file. The map interface object has an Enabled attribute that appears as a checkbox in the Attributes inspector. When you enable the map interface object in this checkbox, tapping the map launches the Maps app and displays the current selected location.

## Topics

### Specifying the Map Region

- [setVisibleMapRect(_:)](watchkit/wkinterfacemap/setvisiblemaprect(_:).md)
- [setRegion(_:)](watchkit/wkinterfacemap/setregion(_:).md)

### Managing Map Annotations

- [addAnnotation(_:with:centerOffset:)](watchkit/wkinterfacemap/addannotation(_:with:centeroffset:).md)
- [addAnnotation(_:withImageNamed:centerOffset:)](watchkit/wkinterfacemap/addannotation(_:withimagenamed:centeroffset:).md)
- [addAnnotation(_:with:)](watchkit/wkinterfacemap/addannotation(_:with:).md)
- [WKInterfaceMapPinColor](watchkit/wkinterfacemappincolor.md)
- [removeAllAnnotations()](watchkit/wkinterfacemap/removeallannotations().md)

### Displaying the User’s Location

- [setShowsUserLocation(_:)](watchkit/wkinterfacemap/setshowsuserlocation(_:).md)
- [setShowsUserHeading(_:)](watchkit/wkinterfacemap/setshowsuserheading(_:).md)
- [setUserTrackingMode(_:animated:)](watchkit/wkinterfacemap/setusertrackingmode(_:animated:).md)
- [WKInterfaceMap.UserTrackingMode](watchkit/wkinterfacemap/usertrackingmode.md)

### Initializing for SwiftUI

- [init()](watchkit/wkinterfacemap/init().md)

## Relationships

### Inherits From

- [WKInterfaceObject](watchkit/wkinterfaceobject.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Controls

- [WKInterfaceLabel](watchkit/wkinterfacelabel.md)
- [WKInterfaceDate](watchkit/wkinterfacedate.md)
- [WKInterfaceTimer](watchkit/wkinterfacetimer.md)
- [WKInterfaceButton](watchkit/wkinterfacebutton.md)
- [WKInterfaceAuthorizationAppleIDButton](watchkit/wkinterfaceauthorizationappleidbutton.md)
- [WKInterfacePaymentButton](watchkit/wkinterfacepaymentbutton.md)
- [WKInterfaceTextField](watchkit/wkinterfacetextfield.md)
- [WKInterfaceSwitch](watchkit/wkinterfaceswitch.md)
- [WKInterfaceSlider](watchkit/wkinterfaceslider.md)
- [WKInterfaceActivityRing](watchkit/wkinterfaceactivityring.md)
