GLMapVectorLayer


@interface GLMapVectorLayer : GLMapDrawable

GLMapVectorLayerdraws 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;

    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;
  • Sets vector object to draw

    Declaration

    Objective-C

    - (void)setVectorObject:(GLMapVectorObject *_Nonnull)object
                  withStyle:(GLMapVectorCascadeStyle *_Nonnull)style
                 completion:(dispatch_block_t _Nullable)completion;

    Parameters

    object

    object to draw

    style

    A style of object

    completion

    A block called when object ready to draw

  • Sets vector objects to draw

    Declaration

    Objective-C

    - (void)setVectorObjects:(GLMapVectorObjectArray *_Nonnull)objects
                   withStyle:(GLMapVectorCascadeStyle *_Nonnull)style
                  completion:(dispatch_block_t _Nullable)completion;

    Parameters

    objects

    objects to draw

    style

    A style of object

    completion

    A block called when object ready to draw