Class BaseTileLoaderAbstract Internal

Base class for tile loaders that provides state handling, request abortion and a load promise.

Hierarchy

  • BaseTileLoader

Implements

Constructors

Properties

dataSource: DataSource

The [[DataSource]] the tile belongs to.

error?: Error

Error object if loading or decoding failed.

m_priority: number = 0
state: TileLoaderState = TileLoaderState.Initialized

Current state of TileLoader.

tileKey: TileKey

The quadtree address of a [[Tile]].

Accessors

Methods

  • Called on tile load.

    Parameters

    • abortSignal: AbortSignal

      Signal emitted to abort loading.

    • onDone: ((doneState) => void)

      Callback that must be called once the loading is done.

    • onError: ((error) => void)

      Callback that must be called on loading error.

        • (error): void
        • Parameters

          • error: Error

          Returns void

    Returns void

Generated using TypeDoc