NTCompiledStyleSet


@interface NTCompiledStyleSet : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Compiled style set definition for vector tiles. Compiled style sets should contains either Mapnik XML stylesheets with all required assets or CartoCSS JSON-based project files.

  • Checks if this object is equal to the specified object.

    Declaration

    Objective-C

    - (BOOL)isEqual:(id)object;

    Parameters

    object

    The reference object.

    Return Value

    True when objects are equal, false otherwise.

  • Returns the hash value of this object.

    Declaration

    Objective-C

    - (NSUInteger)hash;

    Return Value

    The hash value of this object.

  • Constructs a style set from the given asset package. If the asset package contains multiple styles (XML or JSON files), the first one (based on lexicographical order) from the root folder is chosen as the current style.

    Declaration

    Objective-C

    - (id)initWithAssetPackage:(NTAssetPackage *)assetPackage;

    Parameters

    assetPackage

    The asset package containing compiled style set data and style definition.

  • Constructs a style from the given asset package and explicit style name.

    Declaration

    Objective-C

    - (id)initWithAssetPackage:(NTAssetPackage *)assetPackage
                     styleName:(NSString *)styleName;

    Parameters

    assetPackage

    The asset package containing compiled style set data and style definition.

    styleName

    The name of the style to use.

  • Returns the current style name.

    Declaration

    Objective-C

    - (NSString *)getStyleName;

    Return Value

    The current style name.

  • Returns the asset name defining the current style name.

    Declaration

    Objective-C

    - (NSString *)getStyleAssetName;

    Return Value

    The asset name defining the current style name.

  • Returns the style asset package.

    Declaration

    Objective-C

    - (NTAssetPackage *)getAssetPackage;

    Return Value

    The style asset package.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;