Skip to content

Commit

Permalink
Update CARTO docs (visgl#5883)
Browse files Browse the repository at this point in the history
  • Loading branch information
borja-munoz authored Jun 16, 2021
1 parent 38149ae commit 732a1c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/carto/carto-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Required. Data type. Possible values are:

Required when apiVersion is `API_VERSIONS.V3`.

Name of the connection registered in the [CARTO workspace].
Name of the connection registered in the CARTO workspace.

##### `uniqueIdProperty` (String)

Expand Down
6 changes: 3 additions & 3 deletions docs/api-reference/carto/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ import { H3HexagonLayer } from '@deck.gl/geo-layers/';

const data = await getData({
type: MAP_TYPES.QUERY,
source: `SELECT bqcarto.h3.ST_ASH3(geom, 2) as h3, count(*) as count
FROM cartobq.testtables.points_10k
source: `SELECT bqcarto.h3.ST_ASH3(internal_point_geom, 4) as h3, count(*) as count
FROM bigquery-public-data.geo_us_census_places.us_national_places
GROUP BY h3`,
connection: 'connection_name',
format: 'json'
Expand All @@ -147,7 +147,7 @@ new H3HexagonLayer({
data,
filled: true,
getHexagon: d => d.h3,
getFillColor: d => [255, (1 - d.count / 500) * 255, 0],
getFillColor: d => [0, (1 - d.count / 10) * 255, 0],
getLineColor: [0, 0, 0, 200],
});
```
Expand Down

0 comments on commit 732a1c0

Please sign in to comment.