GLMapMarkerStyleCollection
@interface GLMapMarkerStyleCollection : NSObject
GLMapMarkerStyleCollection class holds collection of styles, used to draw marker layer.
-
Declaration
Objective-C
- (instancetype _Nonnull)init;Return Value
Returns new instance of
GLMapMarkerStyleCollection -
Adds block used to fill data for markers.
GLMapMarkerDataFillBlockis called for each marker, is should set marker information intoGLMapMarkerDatavariable usingGLMapMarkerSetStyle,GLMapMarkerSetTextfunctions.Declaration
Objective-C
- (void)setMarkerDataFillBlock:(GLMapMarkerDataFillBlock _Nullable)block;Parameters
blockA marker data fill block
-
Sets block used to get location for markers.
Declaration
Objective-C
- (void)setMarkerLocationBlock:(GLMapMarkerLocationBlock _Nullable)block;Parameters
blockA marker location block
-
GLMapMarkerUnionBlockcalled when marker layer needs style for union ofcountmarkers. It should return numberDeclaration
Objective-C
- (void)setMarkerUnionFillBlock:(GLMapMarkerUnionFillBlock _Nullable)block;Parameters
blockA cluster data fill block
-
Adds new style to collection that have only one image
Declaration
Objective-C
- (uint32_t)addStyleWithImage:(UIImage *_Nonnull)image;Parameters
imageImage that will have default offset (center of image) @retun index in collection for this style
-
Adds new style to collection that have several images
Declaration
Objective-C
- (uint32_t)addStyleWithImages:(NSArray<UIImage *> *_Nonnull)images;Parameters
imagesarray of images that will have default offset (center of image) @retun index in collection for this style
-
Adds new style to collection that have images with offsets
Declaration
Objective-C
- (uint32_t)addStyleWithImages:(NSArray<UIImage *> *_Nonnull)images andOffsets:(NSArray<NSValue *> *_Nullable)offsets;Parameters
imagesarray of images
offsetsoffsets of images @retun index in collection for this style
-
Set name for style that can be used from mapcss
Declaration
Objective-C
- (void)setStyleName:(NSString *_Nonnull)name forStyleIndex:(uint32_t)styleIndex;Parameters
styleIndexindex of style
namename to set
Install in Dash
GLMapMarkerStyleCollection Class Reference