GLMapVectorLayer
Objective-C
@interface GLMapVectorLayer : GLMapDrawable
Swift
class GLMapVectorLayer : GLMapDrawable
GLMapVectorLayer
draws a multiple vector objects on map.
-
Initializes empty vector layer that will be displayed with given drawOrder
Declaration
Objective-C
- (instancetype _Nonnull)initWithDrawOrder:(int32_t)drawOrder;
Swift
init(drawOrder: Int32)
Parameters
drawOrder
drawOrder of object
-
Initializes image that will be injected into map tile data (for example you can set vector object that can be displayed under map elements)
Declaration
Objective-C
- (instancetype _Nonnull)init;
Swift
init()
-
Sets vector object to draw
See
Declaration
Objective-C
- (void)setVectorObject:(GLMapVectorObject *_Nonnull)object withStyle:(GLMapVectorCascadeStyle *_Nonnull)style completion:(dispatch_block_t _Nullable)completion;
Swift
func setVectorObject(_ object: GLMapVectorObject, with style: GLMapVectorCascadeStyle) async
Parameters
object
object to draw
style
A style of object
completion
A block called when object ready to draw
-
Sets vector objects to draw
See
Declaration
Objective-C
- (void)setVectorObjects:(GLMapVectorObjectArray *_Nonnull)objects withStyle:(GLMapVectorCascadeStyle *_Nonnull)style completion:(dispatch_block_t _Nullable)completion;
Swift
func setVectorObjects(_ objects: GLMapVectorObjectArray, with style: GLMapVectorCascadeStyle) async
Parameters
objects
objects to draw
style
A style of object
completion
A block called when object ready to draw