NTMBVectorTileDecoder


@interface NTMBVectorTileDecoder : NTVectorTileDecoder

Decoder for vector tiles in MapBox format.

  • Constructs a decoder for MapBox vector tiles based on specified compiled style set.

    Warning

    Throws NSException If the decoder could not be created or there are issues with the style set.

    Declaration

    Objective-C

    - (id)initWithCompiledStyleSet:(NTCompiledStyleSet *)compiledStyleSet;

    Parameters

    compiledStyleSet

    The compiled style set for the tiles.

  • Constructs a decoder for MapBox vector tiles based on specified CartoCSS style set.

    Warning

    Throws NSException If the decoder could not be created or there are issues with the style set.

    Declaration

    Objective-C

    - (id)initWithCartoCSSStyleSet:(NTCartoCSSStyleSet *)cartoCSSStyleSet;

    Parameters

    cartoCSSStyleSet

    The CartoCSS style set for the tiles.

  • Returns the current compiled style set used by the decoder. If decoder uses non-compiled style set, null is returned.

    Declaration

    Objective-C

    - (NTCompiledStyleSet *)getCompiledStyleSet;

    Return Value

    The current style set.

  • Sets the current compiled style set used by the decoder.

    Warning

    Throws NSException If the decoder could not be updated or there are issues with the style set.

    Declaration

    Objective-C

    - (void)setCompiledStyleSet:(NTCompiledStyleSet *)styleSet;

    Parameters

    styleSet

    The new style set to use.

  • Returns the current CartoCSS style set used by the decoder. If decoder uses non-CartoCSS style set, null is returned.

    Declaration

    Objective-C

    - (NTCartoCSSStyleSet *)getCartoCSSStyleSet;

    Return Value

    The current style set.

  • Sets the current CartoCSS style set used by the decoder.

    Warning

    Throws NSException If the decoder could not be updated or there are issues with the style set.

    Declaration

    Objective-C

    - (void)setCartoCSSStyleSet:(NTCartoCSSStyleSet *)styleSet;

    Parameters

    styleSet

    The new style set to use.

  • Returns the list of all available style parameters.

    Declaration

    Objective-C

    - (NTStringVector *)getStyleParameters;

    Return Value

    The list of all available style parameters.

  • Returns the value of the specified style parameter. The style parameter must be declared in the current style.

    Warning

    Throws NSException If the style parameter does not exist.

    Declaration

    Objective-C

    - (NSString *)getStyleParameter:(NSString *)param;

    Parameters

    param

    The parameter to return.

    Return Value

    The value of the parameter. If parameter does not exists, empty string is returned.

  • Sets the value of the specified parameter. The style parameter must be declared in the current style.

    Declaration

    Objective-C

    - (BOOL)setStyleParameter:(NSString *)param value:(NSString *)value;

    Parameters

    param

    The parameter to set.

    value

    The value for the parameter.

    Return Value

    True if the parameter was set. False if the style parameter does not exist or could not be set.

  • Undocumented

    Declaration

    Objective-C

    - (void)addFallbackFont:(NTBinaryData *)fontData;
  • Undocumented

    Declaration

    Objective-C

    - (int)getMinZoom;
  • Undocumented

    Declaration

    Objective-C

    - (int)getMaxZoom;
  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;