AWFMapArrow
Objective-C
@protocol AWFMapArrow
Swift
protocol AWFMapArrow
The AWFMapArrow
protocol defines the required properties and methods for an object that defines a directional arrow element on a map.
-
The starting coordinate for the arrow.
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
Swift
var coordinate: CLLocationCoordinate2D { get }
-
The coordinate bounds containing the arrow.
Declaration
Objective-C
@property (nonatomic, readonly) int *bounds;
Swift
var bounds: UnsafeMutablePointer<Int32>! { get }
-
Initializes and returns a newly allocated arrow object with the specified array of coordinates and point count.
Declaration
Objective-C
+ (instancetype)arrowWithCoordinates:(CLLocationCoordinate2D *)coord count:(NSUInteger)count;
Swift
static func withCoordinates(_ coord: UnsafeMutablePointer<CLLocationCoordinate2D>!, count: UInt) -> Self!
Parameters
coord
The array of coordinates that define the arrow path.
count
The number of points included in the coordinate array.
Return Value
An initialized arrow object.
-
Initializes and returns a newly allocated arrow object with the specified array of map points and point count.
Declaration
Objective-C
+ (instancetype)arrowWithPoints:(MKMapPoint *)points count:(NSUInteger)count;
Swift
static func withPoints(_ points: Any!, count: UInt) -> Self!
Parameters
points
The array of map points that define the arrow path.
count
The number of points included in the point array.
Return Value
An initialized arrow object.