Interface IMultilevelTiledRasterDataRetriever


public interface IMultilevelTiledRasterDataRetriever
The interface to implement to retrieve the raster tile for a given tile coordinate.
  • Method Details

    • retrieveTileData

      void retrieveTileData(@NotNull MultilevelTileCoordinate tileCoordinate, @NotNull CancellationToken cancellationToken, @NotNull IMultilevelTiledRasterDataRetrieverCallback callback)
      Retrieves the raster tile data for a give tile coordinate.

      Call one of the methods on the callback.

      When the data is retrieved successfully you can call either onDataAvailable or onImageAvailable depending on whether you provide the 'raw' tile data or decoded already as an image.

      When there is no tile data available for a tile coordinate call the method onDataNotAvailable.

      When an error occurred while retrieving the raster tile data call the method onError.

      When the request has been canceled call the method onCanceled. Note that while handling the tile data retrieval you need to check within your implementation whether the cancellation token has changed its value to true using the method isCanceled.

      When none of the callback methods is called the data cannot be visualized.

      This function must be thread-safe.

      Parameters:
      tileCoordinate - the tile coordinate.
      cancellationToken - a cancellation token.
      callback - the callback on which to invoke methods depending on success, unavailable data, or errors.
      See Also: