Skip to content

Commit

Permalink
docs(carto): Fix error in rasterSource naming (#9356)
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy authored Jan 17, 2025
1 parent 198af4e commit 5643bb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/api-reference/carto/data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,10 @@ type QuadbinTilesetSourceOptions = {
};
```

#### rasterTilesetSource
#### rasterSource

```ts
type RasterTilesetSourceOptions = {
type RasterSourceOptions = {
tableName: string;
};
```
Expand Down
8 changes: 4 additions & 4 deletions docs/api-reference/carto/raster-tile-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

`RasterTileLayer` is a layer for visualizing tiled raster data.

## Usage
## Usage

```tsx
import DeckGL from '@deck.gl/react';
import {RasterTileLayer, rasterTilesetSource} from '@deck.gl/carto';
import {RasterTileLayer, rasterSource} from '@deck.gl/carto';

function App({viewState}) {
const data = rasterTilesetSource({
const data = rasterSource({
accessToken: 'XXX',
connectionName: 'carto_dw',
tableName: 'cartobq.public_account.temperature_raster'
Expand Down Expand Up @@ -68,7 +68,7 @@ Inherits all properties from [`ColumnLayer`](../layers/column-layer.md) and [`Ti

Required. A valid `TilejsonResult` object.

Use the [rasterTilesetSource](./data-sources.md#rastertilesetsource-experimental) to fetch this from the CARTO API.
Use the [rasterSource](./data-sources.md#rastersource) to fetch this from the CARTO API.

## Source

Expand Down

0 comments on commit 5643bb5

Please sign in to comment.