---
title: "addAnnotation(_:with:)"
framework: watchkit
role: symbol
role_heading: Instance Method
path: "watchkit/wkinterfacemap/addannotation(_:with:)"
---

# addAnnotation(_:with:)

Adds a pin to the map at the specified location.

## Declaration

```swift
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 doc://com.apple.watchkit/documentation/WatchKit/WKInterfaceMapPinColor.

## Discussion

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

## See Also

### Managing Map Annotations

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