GLMapLabel


@interface GLMapLabel : GLMapDrawable

GLMapLabeldraws a label on map.

  • Initializes empty label that will be displayed with given drawOrder

    Declaration

    Objective-C

    - (nonnull instancetype)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

    - (nonnull instancetype)init;
  • Sets text to draw

    Declaration

    Objective-C

    - (void)setText:(nonnull NSString *)text
          withStyle:(nonnull GLMapVectorStyle *)style
         completion:(dispatch_block_t _Nullable)completion;

    Parameters

    text

    New text

    style

    A style object used for text

    completion

    A block called when text is replaced.