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

# addAnnotation(_:with:)

Adds a pin to the map at the specified location.

```
func addAnnotation(_ location: CLLocationCoordinate2D, with pinColor: WKInterfaceMapPinColor)
```

## Parameters

`location`

The location at which to display the pin.

`pinColor`

The color of the pin. For a list of possible values, see [`WKInterfaceMapPinColor`](/documentation/WatchKit/WKInterfaceMapPinColor).

## Discussion

The pin is positioned so that the base of the pin sits on top of the specified coordinate.

---

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)