WKInterfaceMap.AddAnnotation Method

Definition

Overloads

AddAnnotation(CLLocationCoordinate2D, WKInterfaceMapPinColor)

Places a pin whose tip is at the specified location.

AddAnnotation(CLLocationCoordinate2D, String, CGPoint)
AddAnnotation(CLLocationCoordinate2D, UIImage, CGPoint)

AddAnnotation(CLLocationCoordinate2D, WKInterfaceMapPinColor)

Places a pin whose tip is at the specified location.

[Foundation.Export("addAnnotation:withPinColor:")]
public virtual void AddAnnotation (CoreLocation.CLLocationCoordinate2D location, WatchKit.WKInterfaceMapPinColor pinColor);
abstract member AddAnnotation : CoreLocation.CLLocationCoordinate2D * WatchKit.WKInterfaceMapPinColor -> unit
override this.AddAnnotation : CoreLocation.CLLocationCoordinate2D * WatchKit.WKInterfaceMapPinColor -> unit

Parameters

location
CLLocationCoordinate2D

The location at which to add the annotation.

pinColor
WKInterfaceMapPinColor

The color of the pin for the annotation.

Attributes

Applies to

AddAnnotation(CLLocationCoordinate2D, String, CGPoint)

[Foundation.Export("addAnnotation:withImageNamed:centerOffset:")]
public virtual void AddAnnotation (CoreLocation.CLLocationCoordinate2D location, string name, CoreGraphics.CGPoint offset);
abstract member AddAnnotation : CoreLocation.CLLocationCoordinate2D * string * CoreGraphics.CGPoint -> unit
override this.AddAnnotation : CoreLocation.CLLocationCoordinate2D * string * CoreGraphics.CGPoint -> unit

Parameters

name
String

To be added.

This parameter can be null.

offset
CGPoint
Attributes

Applies to

AddAnnotation(CLLocationCoordinate2D, UIImage, CGPoint)

[Foundation.Export("addAnnotation:withImage:centerOffset:")]
public virtual void AddAnnotation (CoreLocation.CLLocationCoordinate2D location, UIKit.UIImage image, CoreGraphics.CGPoint offset);
abstract member AddAnnotation : CoreLocation.CLLocationCoordinate2D * UIKit.UIImage * CoreGraphics.CGPoint -> unit
override this.AddAnnotation : CoreLocation.CLLocationCoordinate2D * UIKit.UIImage * CoreGraphics.CGPoint -> unit

Parameters

image
UIImage

To be added.

This parameter can be null.

offset
CGPoint
Attributes

Applies to