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:
Add data to style
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.
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.
Click the New tileset button to create a new tileset. You can either Upload a file or Create from dataset.
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.
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.
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 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.
Choose whether a tileset should be private or public. If a tileset is public, the tileset ID can be used by any Mapbox user with their access tokens. But, only the owner of a tileset can make changes or delete a tileset, even if it's public. If a tileset is private, the tileset ID can only be used with an access token from the owner's account. By default, new tilesets created in Mapbox Studio are private.
You can permanently delete a tileset from your account at any time. Deleted tilesets may not be recovered.
From this menu, you can also copy the tileset ID to be used with Mapbox SDKs and APIs.
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, make the tileset private, 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.