What we’ll cover:
Uploading custom data to Mapbox Studio will convert the data file into vector tiles. Vector tiles can be used in any Mapbox Studio style and filtered or styled as is into your map. There are multiple ways to upload files to your Mapbox account:
You can upload the following data types to your Mapbox account:
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. When uploading through Mapbox Studio Classic source mode, you can manually determine maximum and minimum zoom levels for the tileset; for all other upload methods, maximum and minimum zoom levels are determined based on the data.
In Mapbox Studio style editor, click New layer on the top left.
Next, click Select a tileset and you will see an Upload data button and a list of the vector and raster tile tilesets in your Mapbox account. Click Upload data and navigate to your tileset on your local machine.
From here, you can continue by setting data filters and adding style rules to the layer.
On your Tilesets page, click New tileset at the top and navigate to your tileset on your local machine.
Once you Select a tileset and press the Upload button, the process will begin and an uploads pane will appear in the lower left corner of the page. This pane shows the status of your upload, you will see your map ID, with a blue dot as the file is Processing.
Once the file has successfully uploaded, the circle will turn green with the message Succeeded. Click the map ID to view the details of your tileset on a new page.
From this page, you can add the tileset to any style.
For more information about uploading data to your Mapbox account, see the Uploads page.
For this exercise, we’re going to download the following data from the data.seattle.gov and then upload it to your account. Download the data here:
Follow these next steps to follow along:
Seattle_Traffic_Cameras.csv
file to the page.You can manage your data in a number of ways: