NTCartoVectorTileDecoder


@interface NTCartoVectorTileDecoder : NTVectorTileDecoder

Decoder for Carto vector tiles in MapBox format.

  • Constructs a decoder for Carto 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)initWithLayerIds:(NTStringVector *)layerIds
            layerStyleSets:(NTStringCartoCSSStyleSetMap *)layerStyleSets;

    Parameters

    layerIds

    The list of layer ids.

    layerStyleSets

    The CartoCSS style sets for the layers.

  • Returns the list of layer ids used when decoding a tile.

    Declaration

    Objective-C

    - (NTStringVector *)getLayerIds;

    Return Value

    The list of layer ids used.

  • Returns the visibility of the specified layer.

    Declaration

    Objective-C

    - (BOOL)isLayerVisible:(NSString *)layerId;

    Parameters

    layerId

    The layer name to use.

    Return Value

    True if the layer is visible, false otherwise.

  • Sets the visibility of the specified layer.

    Declaration

    Objective-C

    - (void)setLayerVisible:(NSString *)layerId visible:(BOOL)visible;

    Parameters

    layerId

    The layer name to use.

    visible

    True if the layer should be visible, false if hidden.

  • Returns the CartoCSS style set used by the decoder for the specified layer.

    Warning

    Throws NSException If the layer id is not valid.

    Declaration

    Objective-C

    - (NTCartoCSSStyleSet *)getLayerStyleSet:(NSString *)layerId;

    Parameters

    layerId

    The layer name to use.

    Return Value

    The given layer CartoCSS style.

  • Sets the CartoCSS style set used by the decoder for the specified layer.

    Warning

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

    Warning

    Throws NSException If the layer id is not valid.

    Declaration

    Objective-C

    - (void)setLayerStyleSet:(NSString *)layerId
                    styleSet:(NTCartoCSSStyleSet *)styleSet;

    Parameters

    layerId

    The layer name to use.

    styleSet

    The new style set to use.

  • 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;