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
indexindex of image in range [0..getVariantsCount)
offsetoffset 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
indexindex of image in range [0..getImagesCount)
variantindex of image to draw in range [0..getVarriantsCount)
positionposition where to draw image
Install in Dash
GLMapImageGroupDataSource Protocol Reference