NTCartoCSSStyleSet


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

CartoCSS style definition for vector tiles. Style sets contain optional asset package, fonts and other resources can be loaded from the asset package.

  • 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 from CartoCSS string.

    Declaration

    Objective-C

    - (id)initWithCartoCSS:(NSString *)cartoCSS;

    Parameters

    cartoCSS

    The CartoCSS string defining point styling.

  • Constructs a style from CartoCSS string and asset data.

    Declaration

    Objective-C

    - (id)initWithCartoCSS:(NSString *)cartoCSS
              assetPackage:(NTAssetPackage *)assetPackage;

    Parameters

    cartoCSS

    The CartoCSS string defining point styling.

    assetPackage

    The optional asset package for the style. Can be null if CartoCSS does not use any local assets.

  • Returns the CartoCSS string used for the style.

    Declaration

    Objective-C

    - (NSString *)getCartoCSS;

    Return Value

    The CartoCSS string used for the style.

  • Returns the style asset package.

    Declaration

    Objective-C

    - (NTAssetPackage *)getAssetPackage;

    Return Value

    The style asset package.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;