Skip to content

Commit

Permalink
doc: update default carto mapsUrl & fix mvtlayer methods section (#5579)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriSolid authored Mar 12, 2021
1 parent 15b6574 commit c53f30e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions docs/api-reference/carto/carto-bqtiler-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,14 @@ First you need first to generate a tileset of your dataset in your BigQuery acco
import DeckGL from '@deck.gl/react';
import {CartoBQTilerLayer} from '@deck.gl/carto';


function App({viewState}) {
const layer = new CartoBQTilerLayer({
data: 'cartobq.maps.nyc_taxi_points_demo_id',
getLineColor: [255, 255, 255],
getFillColor: [238, 77, 90],
pointRadiusMinPixels: 2,
lineWidthMinPixels: 1
});
data: 'cartobq.maps.nyc_taxi_points_demo_id',
getLineColor: [255, 255, 255],
getFillColor: [238, 77, 90],
pointRadiusMinPixels: 2,
lineWidthMinPixels: 1
});

return <DeckGL viewState={viewState} layers={[layer]} />;
}
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 @@ -61,9 +61,9 @@ This is an object to define the connection to CARTO, including the credentials (

* username (required): unique username in the platform
* apiKey (optional): api key. default to `public_user`
* 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`.
* sqlUrl (optional): SQL API URL Template. Default to `https://{user}.carto.com/api/v2/sql`,
* mapsUrl (optional): MAPS API URL Template. Default to `https://{user}.carto.com/api/v1/map`
* 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`
* sqlUrl (optional): SQL API URL Template. Default to `https://{user}.carto.com/api/v2/sql`
* mapsUrl (optional): MAPS API URL Template. Default to `https://maps-api-v2.{region}.carto.com/user/{user}`

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.

Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/geo-layers/mvt-layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Receives arguments:

## Methods

#### `getRenderedFeatures` (Function)
##### `getRenderedFeatures` (Function)

Get the rendered features in the current viewport.

Expand Down

0 comments on commit c53f30e

Please sign in to comment.