GLMapImageGroup
Objective-C
@interface GLMapImageGroup : GLMapDrawObject
Swift
class GLMapImageGroup : GLMapDrawObject
GLMapImageGroup
is a bridge class, to work with GLMap internal representation of an image group.
Image groups are used to display a small set of images for a large number of locations, e.g., 1000 locations on a map, but only with 10 different images.
-
Unavailable
GLMapImageGroup should be created with -
[GLMapImageGroup initWithCallback: andDrawOrder:]
Default -init is disabled..
Declaration
Objective-C
- (instancetype _Nonnull)init;
-
Initializes an instance of
GLMapImageGroup
. Note that ifGLMapImageGroup
is added to multiple mapViews, multiple updates can happen simultaneously ([GLMapImageGroupDataSource startUpdate]
and[GLMapImageGroupDataSource endUpdate]
will be balanced).Declaration
Objective-C
- (instancetype _Nonnull)initWithCallback: (id<GLMapImageGroupDataSource> _Nonnull)callback andDrawOrder:(int)drawOrder;
Swift
init(callback: any GLMapImageGroupDataSource, andDrawOrder drawOrder: Int32)
Parameters
callback
The callback providing image information.
drawOrder
The draw order of the object.
-
Starts updating the image group.
Declaration
Objective-C
- (void)setNeedsUpdate:(BOOL)updateVariants;
Swift
func setNeedsUpdate(_ updateVariants: Bool)
Parameters
updateVariants
If YES, image variants will be updated, otherwise only images and their positions will be updated.