WKInterfaceMap.AddAnnotation Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddAnnotation(CLLocationCoordinate2D, WKInterfaceMapPinColor) |
Places a pin whose tip is at the specified |
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
- location
- CLLocationCoordinate2D
- 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
- location
- CLLocationCoordinate2D
- offset
- CGPoint
- Attributes