GPKGMapShape
Objective-C
@interface GPKGMapShape : NSObject
Swift
class GPKGMapShape : NSObject
Map shape object
-
Geometry type
Declaration
Objective-C
@property (nonatomic) enum SFGeometryType geometryType;Swift
var geometryType: SFGeometryType { get set } -
Shape type
Declaration
Objective-C
@property (nonatomic) enum GPKGMapShapeType shapeType;Swift
var shapeType: GPKGMapShapeType { get set } -
Shape object
Declaration
Objective-C
@property (nonatomic, strong) NSObject *shape;Swift
var shape: NSObject! { get set } -
Initialize
Declaration
Objective-C
- (instancetype)initWithGeometryType:(enum SFGeometryType)geometryType andShapeType:(enum GPKGMapShapeType)shapeType andShape:(NSObject *)shape;Swift
init!(geometryType: SFGeometryType, andShapeType shapeType: GPKGMapShapeType, andShape shape: NSObject!)Parameters
geometryTypegeometry type
shapeTypeshape type
shapeshape object
Return Value
new map shape
-
Remove the shape from the map view
Declaration
Objective-C
- (void)removeFromMapView:(MKMapView *)mapView;Swift
func remove(from mapView: MKMapView!)Parameters
mapViewmap view
-
Set the shape hidden state
Declaration
Objective-C
- (void)hidden:(BOOL)hidden fromMapView:(MKMapView *)mapView;Swift
func hidden(_ hidden: Bool, from mapView: MKMapView!)Parameters
hiddentrue to make hidden, false to make visible
mapViewmap view
-
Update the shape on the map view
Declaration
Objective-C
- (void)updateWithMapView:(MKMapView *)mapView;Swift
func update(with mapView: MKMapView!)Parameters
mapViewmap view
-
Determine if the map shape is valid
Declaration
Objective-C
- (BOOL)isValid;Swift
func isValid() -> BoolReturn Value
true if a valid shape
-
Get a bounding box that includes the entire shape
Declaration
Objective-C
- (GPKGBoundingBox *)boundingBox;Swift
func boundingBox() -> GPKGBoundingBox!Return Value
bounding box
-
Expanding the provided bounding box to include the entire shape
Declaration
Objective-C
- (void)expandBoundingBox:(GPKGBoundingBox *)boundingBox;Swift
func expandBoundingBox(_ boundingBox: GPKGBoundingBox!)Parameters
boundingBoxbounding box
View on GitHub
GPKGMapShape Class Reference