AWFPolyline
@protocol AWFPolyline <NSObject>
The AWFPolyline
protocol defines the required properties and methods for polyline overlay objects for a specific mapping SDK.
-
Creates and returns a new polyline instance initialized with the
geoPolygon
.This method must be implemented by a base class for each map strategy in order to create the proper polyline overlay instance required by the strategy’s map view.
Declaration
Objective-C
+ (nonnull instancetype)polylineWithGeoPolygon:(id)geoPolygon;
Swift
static func withGeoPolygon(_ geoPolygon: Any!) -> Self!
Parameters
geoPolygon
The
AWFGeoPolygon
instance to create a polyline from.Return Value
An initialized polyline object.
-
Creates and returns an empty polyline instance. This instance will not create a polyline overlay instance required for the map.
Declaration
Objective-C
+ (nonnull instancetype)polyline;
Swift
static func polyline() -> Self!
Return Value
An initialized empty polyline object.