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 vector object with 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 polygon
innerRings
holes of polygon
-
Create outline of polygon
Declaration
Objective-C
- (nonnull GLMapVectorLine *)buildOutline;
Swift
func buildOutline() -> GLMapVectorLine
Return Value
outline of polygon