GLMapImageGroup


@interface GLMapImageGroup : GLMapDrawObject

GLMapImageGroup is a bridge class, to work with GLMap internal representation of image group. Image groups used to display small set of images for the large number of locations. E.g. 1000 locations on map, but only with 10 different images.

  • Plain -init is disabled

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;
  • Initializes instance of GLMapImageGroup Not if GLMapImageGroup added to many mapViews miltiple updates can happened at one time ([GLMapImageGroupDataSource startUpdate] and [GLMapImageGroupDataSource endUpdate] will be ballanced)

    Declaration

    Objective-C

    - (instancetype _Nonnull)initWithCallback:
                                 (id<GLMapImageGroupDataSource> _Nonnull)callback
                                 andDrawOrder:(int)drawOrder;
  • A boolean variable that indicates whether this image is displayed or not.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) _Bool hidden;
  • Starts updating of image group

    Declaration

    Objective-C

    - (void)setNeedsUpdate:(BOOL)updateVariants;

    Parameters

    updateVariants

    if YES image variants will be updated otherwise only images and there positions will be updated