GPKGPolygonHolePoints
Objective-C
@interface GPKGPolygonHolePoints : NSObject <GPKGShapePoints>
Swift
class GPKGPolygonHolePoints : NSObject, GPKGShapePoints
Polygon hole points shape
-
Parent polygon points
Declaration
Objective-C
@property (nonatomic, strong) GPKGPolygonPoints *parentPolygon;
Swift
var parentPolygon: GPKGPolygonPoints! { get set }
-
Polygon hole points
Declaration
Objective-C
@property (nonatomic, strong) NSMutableArray *points;
Swift
var points: NSMutableArray! { get set }
-
Initialize
Declaration
Objective-C
- (instancetype)initWithPolygonPoints:(GPKGPolygonPoints *)polygonPoints;
Swift
init!(polygonPoints: GPKGPolygonPoints!)
Parameters
polygonPoints
polygon points
Return Value
new polygon hole points
-
Add a hole point
Declaration
Objective-C
- (void)addPoint:(GPKGMapPoint *)point;
Swift
func addPoint(_ point: GPKGMapPoint!)
Parameters
point
point
-
Remove the polygon hole 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 polygon hole points is valid
Declaration
Objective-C
- (BOOL)isValid;
Swift
func isValid() -> Bool
Return Value
true if valid
-
Determine if the polygon hole points has been deleted
Declaration
Objective-C
- (BOOL)isDeleted;
Swift
func isDeleted() -> Bool
Return Value
true if deleted