Instance Method


Displays the specified image on top of the map.


- (void)addAnnotation:(CLLocationCoordinate2D)location withImage:(UIImage *)image centerOffset:(CGPoint)offset;



The location at which to display the image.


The image to display at the specified location. If the value of this parameter is nil, the map adds a red pin at the specified location.


The offset (in points) at which to place the center of the image. Normally, the center point of an annotation image is placed at the specified location on the map. Use this parameter to reposition the image relative to that point. Positive offset values move the annotation image down and to the right, while negative values move it up and to the left.


This method adds an image to the map at the specified geographic location. The image is positioned just above the actual coordinate and centered on the coordinate horizontally.

See Also

Managing Map Annotations

- addAnnotation:withImageNamed:centerOffset:

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

- addAnnotation:withPinColor:

Adds a pin to the map at the specified location.


Constants for map pin colors.

- removeAllAnnotations

Removes all annotations from the map.