NTVectorTileLayer


@interface NTVectorTileLayer : NTTileLayer

A tile layer where each tile is a bitmap. Should be used together with corresponding data source.

  • Constructs a VectorTileLayer object from a data source and tile decoder.

    Declaration

    Objective-C

    - (id)initWithDataSource:(NTTileDataSource *)dataSource
                     decoder:(NTVectorTileDecoder *)decoder;

    Parameters

    dataSource

    The data source from which this layer loads data.

    decoder

    The tile decoder that decoder loaded tiles and applies styles.

  • Returns the tile decoder assigned to this layer.

    Declaration

    Objective-C

    - (NTVectorTileDecoder *)getTileDecoder;

    Return Value

    The tile decoder assigned to this layer.

  • Returns the tile cache capacity.

    Declaration

    Objective-C

    - (unsigned long)getTileCacheCapacity;

    Return Value

    The tile cache capacity in bytes.

  • Sets the vector tile cache capacity. Tile cache is the primary storage for vector data, all tiles contained within the cache are stored as uncompressed vertex buffers and can immediately be drawn to the screen. Setting the cache size too small may cause artifacts, such as disappearing tiles. The more tiles are visible on the screen, the larger this cache should be. The default is 10MB, which should be enough for most use cases with preloading enabled. If preloading is disabled, the cache size should be reduced by the user to conserve memory.

    Declaration

    Objective-C

    - (void)setTileCacheCapacity:(unsigned long)capacityInBytes;

    Parameters

    capacityInBytes

    The new tile bitmap cache capacity in bytes.

  • Returns the current display order of the labels.

    Declaration

    Objective-C

    - (enum NTVectorTileRenderOrder)getLabelRenderOrder;

    Return Value

    The display order of the labels. Default is VECTOR_TILE_RENDER_ORDER_LAYER.

  • Sets the current display order of the labels.

    Declaration

    Objective-C

    - (void)setLabelRenderOrder:(enum NTVectorTileRenderOrder)renderOrder;

    Parameters

    renderOrder

    The new display order of the labels.

  • Returns the current display order of the buildings.

    Declaration

    Objective-C

    - (enum NTVectorTileRenderOrder)getBuildingRenderOrder;

    Return Value

    The display order of the buildigns. Default is VECTOR_TILE_RENDER_ORDER_LAYER.

  • Sets the current display order of the buildings.

    Declaration

    Objective-C

    - (void)setBuildingRenderOrder:(enum NTVectorTileRenderOrder)renderOrder;

    Parameters

    renderOrder

    The new display order of the labels.

  • Returns the click radius of vector tile features. Units are screen density independent pixels (DP or DIP).

    Declaration

    Objective-C

    - (float)getClickRadius;

    Return Value

    The click radius of vector tile features.

  • Sets the click radius of vector tile features. The click radius is applied as an extra buffer to the vector tile features to make clicking on small features less sensitive. Units are screen density independent pixels (DP or DIP).

    Declaration

    Objective-C

    - (void)setClickRadius:(float)radius;

    Parameters

    radius

    The new click radius of vector tile features. The default value is 4.

  • Returns the current relative layer blending speed.

    Declaration

    Objective-C

    - (float)getLayerBlendingSpeed;

    Return Value

    The current relative layer blending speed. Default is 1.0.

  • Sets the relative layer blending speed.

    Declaration

    Objective-C

    - (void)setLayerBlendingSpeed:(float)speed;

    Parameters

    speed

    The new relative speed value. Default is 1.0. Use zero or negative values to disable blending.

  • Returns the current relative label blending speed.

    Declaration

    Objective-C

    - (float)getLabelBlendingSpeed;

    Return Value

    The current relative label blending speed. Default is 1.0.

  • Sets the relative label blending speed.

    Declaration

    Objective-C

    - (void)setLabelBlendingSpeed:(float)speed;

    Parameters

    speed

    The new relative speed value. Default is 1.0. Use zero or negative values to disable blending.

  • Returns the vector tile event listener.

    Declaration

    Objective-C

    - (NTVectorTileEventListener *)getVectorTileEventListener;

    Return Value

    The vector tile event listener.

  • Sets the vector tile event listener.

    Declaration

    Objective-C

    - (void)setVectorTileEventListener:(NTVectorTileEventListener *)eventListener;

    Parameters

    eventListener

    The vector tile event listener.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;