AWFPolyline
Objective-C
@protocol AWFPolyline <AWFDataRepresentable>
Swift
protocol AWFPolyline : AWFDataRepresentable
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
object
.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)polylineWithGeographicObject: (nonnull AWFGeographicObject *)object;
Swift
static func withGeographicObject(_ object: AWFGeographicObject) -> Self
Parameters
object
The
AWFGeographicObject
instance to create a polyline from.Return Value
An initialized polyline object.
-
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 a new polyline instance initialized with the
geoPolygon
andobject
.Declaration
Objective-C
+ (nonnull instancetype)polylineWithGeoPolygon:(id)geoPolygon object:(id)object;
Swift
static func withGeoPolygon(_ geoPolygon: Any!, object: Any!) -> Self
Parameters
geoPolygon
The
AWFGeoPolygon
instance to create a polyline fromobject
The model object to associate with the polygon
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.