For the complete documentation index, see llms.txt. This page is also available as Markdown.

rasterSource

You can use rasterSource to build layers and widgets using tables stored in your data warehouse that contain:

Usage

import {rasterSource} from '@carto/api-client';

const data = rasterSource({
  tableName: 'carto-demo-data.demo_rasters.raster_table'
});

Options

type RasterSourceOptions = {
  tableName: string;
  widgetWorker?: boolean;
};
  • tableName: The fully qualified name (FQN) of the pre-generated raster table you want to retrieve from your data warehouse. For example, for a BigQuery connection, carto-demo-data.demo_rasters.raster_table would be a valid table name.

  • widgetWorker (optional): A boolean that enables or disables the use of Web Workers to perform clent-side calculations for widgets.

Response

The response of rasterSource is a promise that can be resolved and used in layers and widgets.

Connection compatibility

Connection Data Warehouse
Compatible

Layer compatibility

rasterSource is compatible with the following layers from the @deck.gl/carto module:

Widget model compatibility

rasterSource is compatible with the following widget models:

Last updated

Was this helpful?