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) -> SelfParameters
objectThe
AWFGeographicObjectinstance 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!) -> SelfParameters
geoPolygonThe
AWFGeoPolygoninstance to create a polyline from.Return Value
An initialized polyline object.
-
Creates and returns a new polyline instance initialized with the
geoPolygonandobject.Declaration
Objective-C
+ (nonnull instancetype)polylineWithGeoPolygon:(id)geoPolygon object:(id)object;Swift
static func withGeoPolygon(_ geoPolygon: Any!, object: Any!) -> SelfParameters
geoPolygonThe
AWFGeoPolygoninstance to create a polyline fromobjectThe 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() -> SelfReturn Value
An initialized empty polyline object.
View on GitHub
AWFPolyline Protocol Reference