Skip to content

Commit c53f30e

Browse files
authored
doc: update default carto mapsUrl & fix mvtlayer methods section (visgl#5579)
1 parent 15b6574 commit c53f30e

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

docs/api-reference/carto/carto-bqtiler-layer.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ First you need first to generate a tileset of your dataset in your BigQuery acco
1010
import DeckGL from '@deck.gl/react';
1111
import {CartoBQTilerLayer} from '@deck.gl/carto';
1212

13-
1413
function App({viewState}) {
1514
const layer = new CartoBQTilerLayer({
16-
data: 'cartobq.maps.nyc_taxi_points_demo_id',
17-
getLineColor: [255, 255, 255],
18-
getFillColor: [238, 77, 90],
19-
pointRadiusMinPixels: 2,
20-
lineWidthMinPixels: 1
21-
});
15+
data: 'cartobq.maps.nyc_taxi_points_demo_id',
16+
getLineColor: [255, 255, 255],
17+
getFillColor: [238, 77, 90],
18+
pointRadiusMinPixels: 2,
19+
lineWidthMinPixels: 1
20+
});
2221

2322
return <DeckGL viewState={viewState} layers={[layer]} />;
2423
}

docs/api-reference/carto/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ This is an object to define the connection to CARTO, including the credentials (
6161

6262
* username (required): unique username in the platform
6363
* apiKey (optional): api key. default to `public_user`
64-
* region (optional): region of the user, possible values are `us` or `eu`. Only need to be specified if you've specifically requested an account in `eu`.
65-
* sqlUrl (optional): SQL API URL Template. Default to `https://{user}.carto.com/api/v2/sql`,
66-
* mapsUrl (optional): MAPS API URL Template. Default to `https://{user}.carto.com/api/v1/map`
64+
* region (optional): region of the user, possible values are `us` or `eu`. Only need to be specified if you've specifically requested an account in `eu`
65+
* sqlUrl (optional): SQL API URL Template. Default to `https://{user}.carto.com/api/v2/sql`
66+
* mapsUrl (optional): MAPS API URL Template. Default to `https://maps-api-v2.{region}.carto.com/user/{user}`
6767

6868
If you're an on-premise user or you're running CARTO from [Google's Market place](https://console.cloud.google.com/marketplace/details/cartodb-public/carto-enterprise-payg), you need to set the URLs to point to your instance.
6969

docs/api-reference/geo-layers/mvt-layer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Receives arguments:
140140

141141
## Methods
142142

143-
#### `getRenderedFeatures` (Function)
143+
##### `getRenderedFeatures` (Function)
144144

145145
Get the rendered features in the current viewport.
146146

0 commit comments

Comments
 (0)