GPKGPolylinePoints
Objective-C
@interface GPKGPolylinePoints : NSObject <GPKGShapePoints>
Swift
class GPKGPolylinePoints : NSObject, GPKGShapePoints
Polyline points shape
-
Backing polyline
Declaration
Objective-C
@property (nonatomic, strong) GPKGPolyline *polyline;
Swift
var polyline: GPKGPolyline! { get set }
-
Polyline points
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray *points;
Swift
var points: NSMutableArray! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)init;
Swift
init!()
Return Value
new polyline points
-
Add a point
Declaration
Objective-C
- (void)addPoint:(GPKGMapPoint *)point;
Swift
func addPoint(_ point: GPKGMapPoint!)
Parameters
point
point
-
Update the polyline points with the map view
Declaration
Objective-C
- (void)updateWithMapView:(MKMapView *)mapView;
Swift
func update(with mapView: MKMapView!)
Parameters
mapView
map view
-
Remove the polyline points from the map view
Declaration
Objective-C
- (void)removeFromMapView:(MKMapView *)mapView;
Swift
func remove(from mapView: MKMapView!)
Parameters
mapView
map view
-
Determine if the polyline points is valid
Declaration
Objective-C
- (BOOL)isValid;
Swift
func isValid() -> Bool
Return Value
true if valid
-
Determine if the polyline points has been deleted
Declaration
Objective-C
- (BOOL)isDeleted;
Swift
func isDeleted() -> Bool
Return Value
true if deleted