addAnnotation(_:with:)
Adds a pin to the map at the specified location.
Declaration
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.
Discussion
The pin is positioned so that the base of the pin sits on top of the specified coordinate.