NTTileDataSource


@interface NTTileDataSource : NSObject {
  void *swigCPtr;
  BOOL swigCMemOwn;
}

Abstract base class for tile data sources. It provides default implementation for listener registration and other common tile data source methods.

  • Returns the minimum zoom level supported by this data source.

    Declaration

    Objective-C

    - (int)getMinZoom;

    Return Value

    The minimum zoom level supported (inclusive).

  • Returns the minimum zoom level supported by this data source.

    Declaration

    Objective-C

    - (int)getMinZoomSwigExplicitNTTileDataSource;

    Return Value

    The minimum zoom level supported (inclusive).

  • Returns the maximum zoom level supported by this data source.

    Declaration

    Objective-C

    - (int)getMaxZoom;

    Return Value

    The maximum zoom level supported (exclusive).

  • Returns the maximum zoom level supported by this data source.

    Declaration

    Objective-C

    - (int)getMaxZoomSwigExplicitNTTileDataSource;

    Return Value

    The maximum zoom level supported (exclusive).

  • Returns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.

    Declaration

    Objective-C

    - (NTMapBounds *)getDataExtent;

    Return Value

    The extent of the data source.

  • Returns the extent of the tiles in this data source. The bounds are in coordinate system of the projection of the data source.

    Declaration

    Objective-C

    - (NTMapBounds *)getDataExtentSwigExplicitNTTileDataSource;

    Return Value

    The extent of the data source.

  • Returns the projection of this tile source.

    Declaration

    Objective-C

    - (NTProjection *)getProjection;

    Return Value

    The projection of this tile source.

  • Loads the specified tile. Note: the tile coordinate system used here is vertically flipped relative to layer tile coordinate system.

    Declaration

    Objective-C

    - (NTTileData *)loadTile:(NTMapTile *)tile;

    Parameters

    tile

    The tile to load.

    Return Value

    The tile data. If the tile is not available, null may be returned.

  • Notifies listeners that the tiles have changed. Action taken depends on the implementation of the listeners, but generally all cached tiles will be reloaded. If the removeTiles flag is set all caches will be cleared prior to reloading, if it’s not set then the reloaded tiles will replace the old tiles in caches as they finish loading.

    Declaration

    Objective-C

    - (void)notifyTilesChanged:(BOOL)removeTiles;

    Parameters

    removeTiles

    The remove tiles flag.

  • Notifies listeners that the tiles have changed. Action taken depends on the implementation of the listeners, but generally all cached tiles will be reloaded. If the removeTiles flag is set all caches will be cleared prior to reloading, if it’s not set then the reloaded tiles will replace the old tiles in caches as they finish loading.

    Declaration

    Objective-C

    - (void)notifyTilesChangedSwigExplicitNTTileDataSource:(BOOL)removeTiles;

    Parameters

    removeTiles

    The remove tiles flag.

  • Constructs an abstract TileDataSource object. Note: EPSG3857 projection is used. minZoom is defined to be 0, maxZoom is defined to be 24.

    Declaration

    Objective-C

    - (id)init;
  • Constructs an abstract TileDataSource object. Note: EPSG3857 projection is used.

    Declaration

    Objective-C

    - (id)initWithMinZoom:(int)minZoom maxZoom:(int)maxZoom;

    Parameters

    minZoom

    The minimum zoom level supported by this data source.

    maxZoom

    The maximum zoom level supported by this data source.

  • Undocumented

    Declaration

    Objective-C

    -(void)dealloc;