Tilesets

Tilesets are the primary data format for Mapbox maps. Whether you start with your own custom data or you create a dataset first, converting your data into a tileset will allow you to add it to a Mapbox map and style it using the Mapbox Studio style editor.

Mapbox Studio topics covered in this section:

with the dataset editor

Upload

with the dataset editor

Dataset

by exporting your dataset

Tileset

on the styles page

Template style

in the style editor

Custom style

containing your tileset in the style editor

Add data to style

in the style editor

Style data

in the style editor

Publish

What is a tileset?

A tileset is a collection of raster or vector data broken up into a uniform grid of square tiles at up to 22 preset zoom levels. Tilesets are used in Mapbox libraries and SDKs as a core piece of making maps visible on mobile or in the browser; they are also the main mechanism we use for determining map views.

Tilesets are highly cacheable and load quickly. Mapbox relies heavily on both raster and vector tilesets to keep our maps fast and efficient.

Manage tilesets

The Tilesets page is where you can add and manage your uploaded tilesets.

The Tilesets page shows you a list of all your uploaded tilesets, plus the five Mapbox-provided tilesets: Mapbox Streets, Mapbox Satellite, Mapbox Terrain, Terrain (RGB-encoded dem), and Mapbox Traffic.

Unlike the tilesets you upload, the Mapbox Streets and Mapbox Terrain tilesets have layers that group certain features together. Any tilesets you upload will appear below the tilesets Mapbox provides.

New tileset

Click the New tileset button to create a new tileset. You can either Upload a file or Create from dataset.

Note

When a vector data file is uploaded to Mapbox, it is converted to vector tile format. When a raster data file (like an image) is uploaded to Mapbox, it becomes a set of tiled PNGs.

Upload a file

When uploading a file, the uploads pane will appear in the lower right corner of the page. This pane shows the tileset ID and status of your upload — the circle will be blue while the file is processing and green once the file has been uploaded.

For more information about uploading data to your Mapbox account, see the Uploads page.

Create from dataset

Click the Create from dataset tab to create a tileset from a dataset. A modal will appear with a list of all datasets associated with your account. Choose a dataset from the list and click Export dataset. You will have the choice to either Export to a new tileset or, if that dataset is already connected to a tileset, the option to Update a connected tileset.

Tileset menu

For each tileset, you can either click on the name of the tileset to go to its information page or click the button for more options:

Replace

Replace the current data in your tileset with new data. The tileset ID will stay the same and the new data will be reflected in all styles that reference this tileset.

Delete

You can permanently delete a tileset from your account at any time. Deleted tilesets may not be recovered.

Tileset ID

From this menu, you can also copy the tileset ID to be used with Mapbox SDKs and APIs.

Tileset information page

Each tileset has an information page that provides additional information about the tileset. For vector tilesets, you'll see a list of source layers within the tileset. Your custom tilesets will only have one layer; Mapbox Streets and Mapbox Terrain include multiple layers. Each layer in the listing has information on geometry type, zoom levels of the data, and data attributes and value types.

From this page you can also replace the data in the tileset and delete the tileset.

The right sidebar of the page includes additional information about the tileset, including:

  • The tileset ID of the tileset.
  • The format of the tileset.
  • The type of the tileset (raster or vector).
  • The size of the tileset.
  • The zoom extent of the tileset, or which zoom levels have been rendered — vector tilesets can be styled up to zoom level 22, but data will be simplified to the highest rendered zoom level.
Next page:
Datasets
Learn how to create and manage datasets in Mapbox Studio.
Was this page helpful?