NTRasterTileLayer


@interface NTRasterTileLayer : NTTileLayer

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

  • Constructs a RasterTileLayer object from a data source.

    Declaration

    Objective-C

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

    Parameters

    dataSource

    The data source from which this layer loads data.

  • Returns the tile texture cache capacity.

    Declaration

    Objective-C

    - (unsigned long)getTextureCacheCapacity;

    Return Value

    The tile texture cache capacity in bytes.

  • Sets the tile texture cache capacity. Texture cache is the primary storage for raster data, all tiles contained within the texture cache are stored as uncompressed openGL textures 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. A single opaque 256x256 tile takes up 192KB of memory, a transparent tile of the same size takes 256KB. The number of tiles on the screen depends on the screen size and density, current rotation and tilt angle, tile draw size parameter and whether or not preloading is enabled. 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)setTextureCacheCapacity:(unsigned long)capacityInBytes;

    Parameters

    capacityInBytes

    The new tile bitmap cache capacity in bytes.

  • Returns the current tile filter mode.

    Declaration

    Objective-C

    - (enum NTRasterTileFilterMode)getTileFilterMode;

    Return Value

    The current tile filter mode. The default is bilinear.

  • Sets the current tile filter mode.

    Declaration

    Objective-C

    - (void)setTileFilterMode:(enum NTRasterTileFilterMode)filterMode;

    Parameters

    filterMode

    The new tile filter mode.

  • Returns the current relative tile blending speed.

    Declaration

    Objective-C

    - (float)getTileBlendingSpeed;

    Return Value

    The current relative tile blending speed. Default is 1.0.

  • Sets the relative tile blending speed.

    Declaration

    Objective-C

    - (void)setTileBlendingSpeed:(float)speed;

    Parameters

    speed

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

  • Returns the raster tile event listener.

    Declaration

    Objective-C

    - (NTRasterTileEventListener *)getRasterTileEventListener;

    Return Value

    The raster tile event listener.

  • Sets the raster tile event listener.

    Declaration

    Objective-C

    - (void)setRasterTileEventListener:(NTRasterTileEventListener *)eventListener;

    Parameters

    eventListener

    The raster tile event listener.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;