# quadbinTilesetSource

You can use **quadbinTableSource** to build layers and widgets using **pre-generated CARTO tilesets** stored in your data warehouse that contain:

* **Quadbin-based data:** a column containing a [Quadbin cell identifier](https://docs.carto.com/data-and-analysis/analytics-toolbox-for-bigquery/key-concepts/spatial-indexes#quadbin)

## Usage

```typescript
import {quadbinTilesetSource} from '@carto/api-client';

const data = quadbinTilesetSource({
  tableName: 'carto-demo-data.demo_tilesets.quadbin_tileset'
});
```

## Options

```typescript
type QuadbinTilesetSourceOptions = {
  tableName: string;
  widgetWorker?: boolean;
};
```

* **tableName**: The fully qualified name (FQN) of the pre-generated tileset you want to retrieve from your data warehouse. For example, for a BigQuery connection, `carto-demo-data.demo_tilesets.quadbin_tileset` would be a valid table name.
* **wwidgetWorker** (optional): A boolean that enables or disables the use of Web Workers to perform [clent-side calculations](https://docs.carto.com/carto-for-developers/carto-widgets-reference/server-side-vs.-client-side#client-side-widget-calculation) for [widgets](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference).

## Response

The response of `quadbinTilesetSource` is a promise that can be resolved and used in [layers](https://github.com/CartoDB/gitbook-documentation/blob/master/carto-for-developers/key-concepts/carto-for-deck.gl) and [widgets](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference).

## Connection compatibility

| Connection Data Warehouse                                                                         | Compatible           |
| ------------------------------------------------------------------------------------------------- | -------------------- |
| [BigQuery](https://docs.carto.com/carto-user-manual/connections/bigquery)                         | :white\_check\_mark: |
| [Snowflake](https://docs.carto.com/carto-user-manual/connections/snowflake)                       | :white\_check\_mark: |
| [Redshift](https://docs.carto.com/carto-user-manual/connections/redshift)                         | :white\_check\_mark: |
| [Databricks](https://docs.carto.com/carto-user-manual/connections/databricks)                     | :white\_check\_mark: |
| [Oracle](https://docs.carto.com/carto-user-manual/connections/oracle)                             | :x:                  |
| [PostgreSQL](https://docs.carto.com/carto-user-manual/connections/postgresql)                     | :white\_check\_mark: |
| [CARTO Data Warehouse](https://docs.carto.com/carto-user-manual/connections/carto-data-warehouse) | :white\_check\_mark: |

## Layer compatibility

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

* [QuadbinTileLayer](https://deck.gl/docs/api-reference/carto/quadbin-tile-layer)

## Widget model compatibility

`quadbinTilesetSource` is compatible with the following widget models:

* [getFormula](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/getformula)
* [getCategories](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/getcategories)
* [getHistogram](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/gethistogram)
* [getRange](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/getrange)
* [getScatter](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/getscatter)
* [getTimeSeries](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/gettimeseries)
* [getTable](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/models/gettable)

{% hint style="warning" %}
Widget models for tilesets are calculated client side. Precision might be lower, especially at low zoom levels (ie: when covering a large surface of the earth). [Learn more about client-side widget calculations](https://docs.carto.com/carto-for-developers/reference/carto-widgets-reference/server-side-vs.-client-side).
{% endhint %}
