Instance Method

addAnnotation:withPinColor:

Adds a pin to the map at the specified location.

Declaration

- (void)addAnnotation:(CLLocationCoordinate2D)location withPinColor:(WKInterfaceMapPinColor)pinColor;

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.

See Also

Managing Map Annotations

- addAnnotation:withImage:centerOffset:

Displays the specified image on top of the map.

- addAnnotation:withImageNamed:centerOffset:

Displays an image from the WatchKit app’s bundle on top of the map.

WKInterfaceMapPinColor

Constants for map pin colors.

- removeAllAnnotations

Removes all annotations from the map.