You can use the Mapbox Studio dataset editor to import, create, and edit point, line, and polygon features and their properties. A collection of these features in Mapbox is called a dataset. Datasets can either be downloaded as GeoJSON or exported to tilesets for use in Mapbox styles (see the Introduction section for more information).
Mapbox Studio topics covered in this section:
Add data to style
A dataset is an editable collection of GeoJSON features. Datasets are distinct from tilesets in that datasets can be edited on a feature-by-feature basis, but cannot be used directly in Mapbox Studio style.
Any dataset you create can be exported to a tileset, which can be then added as a layer in the Mapbox Studio style editor.
Once you've created a dataset, you can export it to a tileset for use in a Mapbox map (see Style editor for more information), download it as a GeoJSON FeatureCollection, or use it with the Datasets API. Datasets can also be edited after export. To learn how to download and export datasets, see below.
Your Datasets page in Mapbox Studio provides a list of your existing datasets as well as a link to create a new dataset.
Use the Search bar to filter or reorder your list of datasets. You can search for datasets by name or dataset ID and sort by name or date modified.
To create a new dataset, click the New dataset button at the top of the page. You can either start with a blank dataset or upload data as a starting point for your dataset. Data must be in one of the accepted data formats. Once your dataset is created, it opens in the dataset editor for editing.
Multiple files can be uploaded to the same dataset without limit — they need to be loaded 5 MB at a time in the Mapbox Studio dataset editor. The size of a dataset is unlimited, but the Mapbox Studio dataset editor can only display datasets of 20 MB or smaller. Datasets that exceed 20 MB can still be downloaded from Mapbox Studio and accessed through the Mapbox Datasets API.
Once a dataset is created, it will appear in the list on your Datasets page. There are several actions you can take with each dataset.
Open the dataset information page for this data to see more details.
Once exported, the tilesets can be added as a new custom layer to a Mapbox map in the Mapbox Studio style editor. You can also add a tileset directly to a web map by using Mapbox GL JS like in this example.
Once created, you can download your data as a GeoJSON file to use with Mapbox GL JS or other web mapping applications.
Tileset deletion cannot be undone. Any tilesets that were derived from this dataset will stay intact, but you will no longer be able to update the data associated with those tilesets in the dataset editor.
Each dataset has a unique ID. Use this ID when interacting with your dataset using the Mapbox Datasets API.
In addition to managing datasets, Mapbox Studio provides an in-browser editor for creating and modifying dataset features.
Change dataset name
Export to tileset
To add your data to a style in the Mapbox Studio style editor, you need to export your dataset to a tileset.
Save. After you have finished editing your dataset, click Save to review the changes you have made.
Export. Click Export to export your dataset to a vector tileset. A vector tileset is a collection of data broken up into a uniform grid of square tiles at up to 22 preset zoom levels. Your tilesets are stored on the Tilesets page in your Mapbox account, and tilesets created through dataset export have a reference back to the original dataset. See the Uploads section for more information on using tilesets.
If you need to make further changes to your data, you can change a dataset after you have exported to a tileset and re-export to have those changes reflected in the tileset. If you update a connected tileset, any styles that reference that tileset will also be updated automatically.
Features are individual points, lines, or polygons in your dataset. In the dataset editor you can add, change, and delete features in your dataset.
Add new features: You can add new features to an existing dataset by either importing them from a data file or drawing them directly in the editor. Adding new features to a dataset does not overwrite existing features. If you import a data file that contains a feature that already exists in the dataset, this will duplicate the feature.
- Import. You can import data into your dataset from a GeoJSON or CSV file. If using a CSV, make sure that the data is already geocoded and represents point features.
- Draw tools. Use the draw tools to draw features directly on the map. You can change the geometry, placement, and properties of existing features with the dataset editor's draw tools:
- Draw a point
- Draw a line
- Draw a polygon
- Search places. You can search places in the toolbar. When you search for a country, region, postcode, place, locality, neighborhood, or address you will have the option to Save to dataset. This option is not available when searching POIs.
Edit feature properties: You can add, edit, and delete feature properties using tools in the panel on the left side of the dataset editor. You can also view feature properties in GeoJSON form by clicking the GeoJSON tab.
You can interact directly with the features in your dataset on the map to draw, change or delete features.
- Geometry. Change the geometry by clicking on the feature, then clicking and dragging the points.
- Placement. Hover over the feature until you see , then click and drag to move the feature.
- Properties. To change the properties of a feature, click on the feature and edit properties in the panel on the left side of the editor.
You can delete a feature by selecting the feature and clicking . You can select and delete multiple features at once using Shift + click + drag.
The toolbar in the upper right will help you navigate the dataset editor.
The Search places search bar allows you to search for locations on the map. You can find this button on the top right. Type in what you're looking for and select the result and search will take you to the exact location. This search is powered by the Mapbox Geocoding API.
You can use Search dataset to search your dataset by a property value. The search will return all features that contain that property value. Click on the thumbnail to jump to the feature on the map.
Use the Background button to switch between background styles. These include the default dataset editor style, Mapbox Satellite, Mapbox Satellite Streets, and an empty canvas.
In addition to the pre-loaded background layers, you can display a custom raster tilesets (such as your own custom satellite imagery, for example) between the basemap and your data as a reference for drawing new GeoJSON features. Click Reference tileset and select the tileset you would like to add. Note that this must be a raster tileset uploaded to your account. You can remove the raster tileset by clicking Deselect or by clicking on the active tileset.
View your history by clicking the History button. The dataset keeps a history of all changes you made since the beginning of your current session. You can revert your changes in the current session, but your history will reset once you exit the dataset editor.
The Help button includes the option to see a guided walkthrough of the dataset editor. As you scroll through this panel, you will see a list of keyboard shortcuts. At the top of the help panel, there are links to Mapbox Help and our contact page.
For each dataset, there is a dataset information page where you can review the tilesets that are connected to that dataset and do the same tasks that you can in the menu on the Datasets page.
The center of the dataset information page contains a list of all connected tilesets, which can be added to your styles as new custom layers.
The same items that exist in the menu for each dataset on the Datasets page are listed on the right side of the dataset information page. See the menu section for more details.
In the lower right side of the dataset information page, there are several characteristics that are listed for each dataset.
- Size. Size of the dataset.
- Feature count. The number of features included in the dataset.
- Bounds. The coordinate bounds the dataset resides within, which are both listed and displayed on a satellite map.
Click Edit to open the dataset editor and make changes to the dataset.