Creating and visualizing a tileset
Import sample data (optional)
In order to be able to reproduce the following guide, you can optionally import into your Databricks a sample table containing core demographic and environmental data, and POI aggregations by category unified in common geographic H3 support resolution 8.
To do so, please run the following Python script:
Creating a tileset
As a CARTO Analytics Toolbox module, the Tiler’s capabilities are available as procedures that can be executed directly from your Databricks Notebooks.
To check that your Databricks account has access to the Tiler, try running this query:
If you run into any errors when running the query above, contact with our support.
Once you are all set to get access to the Tiler, creating a tileset is as easy as opening your Databricks Notebooks and running a code. In this case, we are going to create a tileset from a table that contains core demographic and environmental data, and POI aggregations by category unified in common geographic H3 support resolution 8:
Visualizing a tileset
From the CARTO Workspace
The CARTO Workspace offers access to the Data Explorer, where you will be able to preview your tilesets, and Builder, CARTO’s state-of-the-art map making tool, where you will be able to style them, include them in your visualizations and share them.
Previewing tilesets from the Data Explorer
The Data Explorer offers a preview of your tilesets and displays their associated details and metadata, such as their size, number of records and statistics regarding the tile sizes per zoom level. Please refer to this page for more information regarding the Data Explorer.
Creating maps with tilesets using Builder
You can include tilesets as layers in your maps created with Builder. To do so, you have two options:
- use the Create map option from the tileset preview page in the Data Explorer (see previous screenshot). This action will create a new map with your tileset as a its only layer.
- adding a layer to an existing map.
For the latter option, you simply need to follow these simple steps:
- Click on the Add source from button in Builder, that can be found at the bottom left of the screen.
- Choose the Databricks connection from where your tileset is accessible.
- Browse your projects and datasets until you find your tileset in the data explorer tree.
- Select your tileset. Your tileset will then be added as a layer.
- Style your tileset like any other layer in Builder. For more details on how to style your layers, please visit this page.