CARTO Basemap

The CARTO Basemap is the default Basemap and it is included in all CARTO accounts. It uses the Open Source project Maplibre GL JSarrow-up-right and CARTO base maps API.

At the Basemaps sectionarrow-up-right of CARTO for deck.gl you can find further information about how to use it. CARTO also provides a set of Basemaps Stylesarrow-up-right to easily adapt to multiple visualization contexts (dark, light, and voyager).

A code example is available herearrow-up-right.

Further style customization

If the Basemaps Styles provided by CARTO are not enough and you need to go further to customize those styles you can do the following:

  1. Modify the styles to match your requirements.

  2. Put it in a public url.

  3. Pass to deck.gl the mapSyle you want to use:

 const deckgl = new deck.DeckGL({
  ...
  map: maplibregl,
  mapStyle: '<your styles json url>',
 });

If you need a UI to modify the styles, take a look at Maptunikarrow-up-right (A free and open visual editor tool for editing Basemaps styles).

Last updated

Was this helpful?