GLMapImageGroupDataSource

@protocol GLMapImageGroupDataSource

GLMapImageGroupDataSource is a callback that provide infromation images.

Warning

Do not edit image group while it is updated
  • Called at start of updating image group.

    Declaration

    Objective-C

    - (void)startUpdate;
  • Called at end of uparing image group

    Declaration

    Objective-C

    - (void)endUpdate;
  • Returns number of unique images

    Declaration

    Objective-C

    - (NSInteger)getVariantsCount;
  • Returns image.

    Declaration

    Objective-C

    - (UIImage *_Nonnull)getVariant:(NSInteger)index
                             offset:(CGPoint *_Nonnull)offset;

    Parameters

    index

    index of image in range [0..getVariantsCount)

    offset

    offset of image in points

  • Returns number of images to draw

    Declaration

    Objective-C

    - (NSInteger)getImagesCount;
  • Fills infromation for image

    Declaration

    Objective-C

    - (void)getImageInfo:(NSInteger)index
                vairiant:(uint32_t *_Nonnull)variant
                position:(GLMapPoint *_Nonnull)position;

    Parameters

    index

    index of image in range [0..getImagesCount)

    variant

    index of image to draw in range [0..getVarriantsCount)

    position

    position where to draw image