GPKGShapePoints

Objective-C

@protocol GPKGShapePoints <NSObject>

Swift

protocol GPKGShapePoints : NSObjectProtocol

Shape points protocol, defining the interface for shapes comprised of points

  • Get the points

    Declaration

    Objective-C

    - (NSArray *)points;

    Swift

    func points() -> [Any]!

    Return Value

    points

  • Delete the point from the shape and map view

    Declaration

    Objective-C

    - (void)deletePoint:(GPKGMapPoint *)point fromMapView:(MKMapView *)mapView;

    Swift

    func delete(_ point: GPKGMapPoint!, from mapView: MKMapView!)

    Parameters

    point

    point

    mapView

    map view

  • Add a new point to the shape

    Declaration

    Objective-C

    - (void)addNewPoint:(GPKGMapPoint *)point;

    Swift

    func addNewPoint(_ point: GPKGMapPoint!)

    Parameters

    point

    point

  • Updates hidden state of all objects

    Declaration

    Objective-C

    - (void)hidden:(BOOL)hidden fromMapView:(MKMapView *)mapView;

    Swift

    func hidden(_ hidden: Bool, from mapView: MKMapView!)

    Parameters

    hidden

    hidden flag

    mapView

    map view

  • Updates hidden state of the shape representing points

    Declaration

    Objective-C

    - (void)hiddenPoints:(BOOL)hidden;

    Swift

    func hiddenPoints(_ hidden: Bool)

    Parameters

    hidden

    hidden flag