GLMapVectorPolygon
Objective-C
@interface GLMapVectorPolygon : GLMapVectorObject
Swift
class GLMapVectorPolygon : GLMapVectorObject
GLMapVectorPolygon is a bridge class, to work with GLMap internal representation of polygon and multipolygon.
-
Creates a vector object with a polygon.
Declaration
Objective-C
- (nonnull instancetype)init:(nonnull NSArray<GLMapPointArray *> *)outerRings innerRings:(NSArray<GLMapPointArray *> *_Nullable)innerRings;Swift
init(_ outerRings: [GLMapPointArray], innerRings: [GLMapPointArray]?)Parameters
outerRingsExterior of the polygon.
innerRingsHoles of the polygon.
-
Creates a line object from a polygon (opens the polygon).
Declaration
Objective-C
- (nonnull GLMapVectorLine *)buildOutline;Swift
func buildOutline() -> GLMapVectorLineReturn Value
A new line object.
Install in Dash
GLMapVectorPolygon Class Reference