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:].

    Declaration

    Objective-C

    - (instancetype _Nonnull)init;
  • Creates cascade style object.

    GLMapVectorCascadeStyle *style = [GLMapVectorCascadeStyle createStyle(@"area{fill-color:#10106050;}"];

    Declaration

    Objective-C

    + (instancetype _Nullable)createStyle:(NSString *_Nonnull)style;

    Parameters

    style

    NSString with style rules in MapCSS format

    Return Value

    New GLMapVectorCascadeStyle object

  • Creates cascade style object.

    Declaration

    Objective-C

    + (instancetype _Nullable)createStyle:(NSString *_Nonnull)style
                                    error:(NSError *_Nullable *_Nullable)error;

    Parameters

    style

    NSString with style rules in MapCSS format

    error

    Error is filled if object cannot be created

    Return Value

    New GLMapVectorCascadeStyle object