getTileData method

Uint8List? getTileData(
  1. {required TileKey tileKey}
)

Returns the tile data for the specified tile key.

Parameters:

  • tileKey — The tile key.

Return Value: the raw untouched/unclipped data straight out of the tile cache for the specified tile key.

Implementation

Uint8List? getTileData({required TileKey tileKey}) {
  final byteArrayHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_TileCache_getTileData(
        _handle, tileKey._handle, errorHandler);
  });
  return _ByteArray._fromHandle(byteArrayHandle)?.toDartList();
}