GLMapVectorCascadeStyle
@interface GLMapVectorCascadeStyle : NSObject
GLMapVectorCascadeStyle
is used to define appearance of GLMapVectorObject
. One style could be used with many GLMapVectorObjects
.
Style is used to render a map, which is stored inside DefaultStyle.bundle/Style.mapcss. Detailed MapCSS specification is located at: http://www.mapcss.org
MapCSS examples:
Any point with tag natural=peak, should be displayed on zoom level 11+ with trangle icon tinted with brown color.
node|z11-[natural=peak] {
icon-image:"triangle.svgpb";
icon-tint:brown;
}
Any point with tag natural=peak, should display it’s localized name on zoom level 13+.
node|z13-[natural=peak] {
text: eval( locTag('name') );
text-color:brown;
font-size:12;
}
-
Unavailable
Please use
[GLMapVectorCascadeStyle createStyle:]
or[GLMapVectorCascadeStyle createStyle:error:]
Unavailable. Please use
[GLMapVectorCascadeStyle createStyle:]
or[GLMapVectorCascadeStyle createStyle:error:]
.Declaration
Objective-C
- (instancetype _Nonnull)init;
-
Helper to parse style wihtout
GLMapVectorCascadeStyle *style = [GLMapVectorCascadeStyle createStyle(@"area{fill-color:#10106050;}"];
Declaration
Objective-C
+ (instancetype _Nullable)createStyle:(nonnull NSString *)style;
Parameters
style
NSString with style rules in MapCSS format
Return Value
New
GLMapVectorCascadeStyle
object