requestData

suspend fun requestData(options: VoxelProvider.RequestDataOptions? = definedExternally): ReadonlyArray<ReadonlyArray<Any>>?(source)

Requests the data for a given tile. The data is a flattened 3D array ordered by X, then Y, then Z. This function should not be called before VoxelProvider.ready returns true.

Return

A promise to an array of typed arrays containing the requested voxel data or undefined if there was a problem loading the data.

See also