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
outerRings
Exterior of the polygon.
innerRings
Holes of the polygon.
-
Creates a line object from a polygon (opens the polygon).
Declaration
Objective-C
- (nonnull GLMapVectorLine *)buildOutline;
Swift
func buildOutline() -> GLMapVectorLine
Return Value
A new line object.