NTCartoVectorTileLayer


@interface NTCartoVectorTileLayer : NTVectorTileLayer

Specialized vector tile layer that can use built-in vector tile styles.

  • Constructs a CartoVectorTileLayer object from a specificed base map style.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTTileDataSource *)dataSource
                       style:(enum NTCartoBaseMapStyle)style;

    Parameters

    dataSource

    The data source from which this layer loads data.

    style

    The style to use for the layer.

  • Constructs a CartoVectorTileLayer object from a source name and a style asset package. Style asset package defines visual style of the map and must be compatible with the source.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTTileDataSource *)dataSource
           styleAssetPackage:(NTAssetPackage *)styleAssetPackage;

    Parameters

    dataSource

    The data source from which this layer loads data.

    styleAssetPackage

    The style asset package (usually a zipped file or an asset)

  • Constructs a CartoVectorTileLayer object from a source name and a style asset package. Style asset package defines visual style of the map and must be compatible with the source.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTTileDataSource *)dataSource
           styleAssetPackage:(NTAssetPackage *)styleAssetPackage
                   styleName:(NSString *)styleName;

    Parameters

    dataSource

    The data source from which this layer loads data.

    styleAssetPackage

    The style asset package (usually a zipped file or an asset)

    styleName

    The style to use from the asset package.

  • Returns the current language used for the layer.

    Declaration

    Objective-C

    - (NSString *)getLanguage;

    Return Value

    The current language. If the returned string is empty, then ‘local’ languages are used.

  • Sets the current map language.

    Declaration

    Objective-C

    - (void)setLanguage:(NSString *)lang;

    Parameters

    lang

    The new language to use. The default is local language (empty string).

  • Returns the current fallback language used for the layer. Fallback language is used when a primary language name is not available.

    Declaration

    Objective-C

    - (NSString *)getFallbackLanguage;

    Return Value

    The current fallback language. If the returned string is empty, then ‘local’ languages are used.

  • Sets the current fallback map language. Fallback language is used when a primary language name is not available.

    Declaration

    Objective-C

    - (void)setFallbackLanguage:(NSString *)lang;

    Parameters

    lang

    The new fallback language to use. The default is local language (empty string).

  • Returns the current render mode for Point-Of-Interest icons.

    Declaration

    Objective-C

    - (enum NTCartoBaseMapPOIRenderMode)getPOIRenderMode;

    Return Value

    The current render mode for for Point-Of-Interest icons.

  • Sets the current render mode for Point-Of-Interest icons.

    Declaration

    Objective-C

    - (void)setPOIRenderMode:(enum NTCartoBaseMapPOIRenderMode)renderMode;

    Parameters

    renderMode

    The new render mode for Point-Of-Interest icons.

  • Returns the current render mode for buildings.

    Declaration

    Objective-C

    - (enum NTCartoBaseMapBuildingRenderMode)getBuildingRenderMode;

    Return Value

    The current render mode for buildings.

  • Sets the current render mode for buildings.

    Declaration

    Objective-C

    - (void)setBuildingRenderMode:(enum NTCartoBaseMapBuildingRenderMode)renderMode;

    Parameters

    renderMode

    The new render mode for buildings.

  • Creates a new tile decoder from the specified base map style.

    Declaration

    Objective-C

    + (NTVectorTileDecoder *)createTileDecoderFromStyle:
        (enum NTCartoBaseMapStyle)style;

    Parameters

    style

    The style to use for the decoder.

    Return Value

    The new vector tile decoder configured for the style.

  • Creates a new tile decoder from the specified asset package.

    Declaration

    Objective-C

    + (NTVectorTileDecoder *)createTileDecoderFromAssetPackage:
        (NTAssetPackage *)styleAssetPackage;

    Parameters

    styleAssetPackage

    The style asset package (usually a zipped file or an asset)

    Return Value

    The new vector tile decoder configured for the style.

  • Creates a new tile decoder from the specified asset package.

    Declaration

    Objective-C

    + (NTVectorTileDecoder *)createTileDecoder:(NTAssetPackage *)styleAssetPackage
                                     styleName:(NSString *)styleName;

    Parameters

    styleAssetPackage

    The style asset package (usually a zipped file or an asset)

    styleName

    The name of the style to use.

    Return Value

    The new vector tile decoder configured for the style.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;