Adds a pin to the map at the specified location.
SDK
- watchOS 2.0+
Framework
- Watch
Kit
Declaration
func addAnnotation(_ location: CLLocation Coordinate2D, with pinColor: WKInterface Map Pin Color)
Parameters
location
The location at which to display the pin.
pinColor
The color of the pin. For a list of possible values, see
WKInterface
.Map Pin Color
Discussion
The pin is positioned so that the base of the pin sits on top of the specified coordinate.