GLMapVectorStyle
@interface GLMapVectorStyle : NSObject
GLMapVectorStyle
is used to define appearance of text inside GLMapMarkerLayer
or GLMapView
.
Style is used to render a map, which is stored inside DefaultStyle.bundle/Style.mapcss file. Detailed MapCSS specification is located at: http://www.mapcss.org
-
Unavailable
Please use
[GLMapVectorStyle createStyle:]
and[GLMapVectorStyle createStyle:error:]
Plain -init is disabled
Declaration
Objective-C
- (instancetype _Nonnull)init;
-
Creates style object.
GLMapVectorStyle *style = [GLMapVectorStyle createStyle(@"{font-size:12;}"];
Declaration
Objective-C
+ (nullable instancetype)createStyle:(NSString *_Nonnull)style;
Parameters
style
NSString with style rule in MapCSS format
Return Value
New
GLMapVectorStyle
object -
Creates style object.
Declaration
Objective-C
+ (nullable instancetype)createStyle:(NSString *_Nonnull)style error:(NSError *_Nullable *_Nullable)error;
Parameters
style
NSString with style rule in MapCSS format
error
Error is filled if object cannot be created
Return Value
New
GLMapVectorStyle
object