Visualization with deck.gl
Last updated
Was this helpful?
Last updated
Was this helpful?
As explained in the Architecture section, CARTO uses deck.gl as the client-side visualization library. Therefore, using deck.gl will be a requirement if your application needs to visualize geospatial data coming from your connections in CARTO.
At a high level, these are the building blocks you will use when building visualizations with CARTO + deck.gl
The CARTO module (@deck.gl/carto): This is a submodule created and maintained by CARTO that allows you to easily use data from your CARTO-connected data warehouses in deck.gl. Learn more about the CARTO module.
Core deck.gl functionalities: Layers built using @deck.gl/carto are integrated into a regular deck.gl canvas and inherit properties from other base layers. If you're not familiar with deck.gl we recommend you to check the official deck.gl documentation.
Other deck.gl functionalities: deck.gl is an amazing framework with endless possibilities such as transitions, extensions and integrations that allow you to build incredible full-blown interactive applications such as our examples, this story map or this application.
Inside the CARTO module (@deck.gl/carto) you will find the following components:
Tile Layers to build your visualization, using tiles to automatically solve performance and scalability for different types of data, such as:
Vector data
H3 data
Quadbin data
Raster data
Style helpers: Built-in methods to quickly build data-driven visualizations, using a set of curated high-contrast color palettes known as CARTO colors.
Basemaps: CARTO provides a set of free basemaps using OpenStreetMap data, but you can also use Google Maps, Amazon Location or other custom basemaps. Learn more about adding basemaps.
Fetch map: A method to quickly re-use layers from your Builder maps in your deck.gl application.
You can find the reference for the CARTO module (@deck.gl/carto) in the deck.gl documentation.
To get started, we recommend checking the CARTO + deck.gl examples and the official CARTO `+ deck.gl reference.
To stay up-to-date with the latest releases of deck.gl and the CARTO module you should check:
The official what's new page for major deck.gl releases
Our community in Slack is a great place to ask questions, share your work with other CARTO users, and get help from CARTO experts. Join here