Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(carto): Fix error in rasterSource naming #9356

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading