This series of tutorials teaches you how to add markers representing point data to a web map using the Mapbox Studio dataset editor, the Mapbox Studio style editor, and Mapbox GL JS:
This part of the tutorial series focuses on using the Mapbox Studio dataset editor, an in-browser editor for creating and modifying dataset features, to prepare your point data. In this tutorial, you will learn how to:
The final product for this tutorial series is an interactive web map with markers and popups, as shown in the map below.
There are a few resources you will need to follow along with this guide:
You can store an editable version of your data in your Mapbox account by uploading it to Mapbox Studio as a dataset. Having an editable version of your data means that you can add, remove, and edit features (points, lines, and polygons) and properties for each feature.
If you don't need to edit or draw data from scratch, you can upload data to Mapbox as a tileset instead of a dataset. For more information on the difference between tilesets and datasets, see our Upload new data getting started guide.
Once your file has completed uploading, click Start editing. The dataset editor automatically opens, and the data is displayed on a light base map to help visualize the features.
You can edit both dataset features and properties in the dataset editor:
title
and description
properties for each point with a unique text string. You can edit properties, add new properties, or delete properties in the dataset editor. Make sure any content that you want to display in popups in your final product is included as a property while you are working in the dataset editor.You can use the draw tools in the Mapbox Studio dataset editor to add a new point to your dataset. You can also change the geometry, placement, and properties of existing features with the dataset editor’s draw tools. Read more about draw tools in the Mapbox Studio manual.
Garfield Park Chicago
.title
and give it the value Garfield Park
. Click Confirm.description
and give it the value Home of the Garfield Park Conservatory.
. Click Confirm.Next, you will save and export your dataset as a tileset so that you can add it to a Mapbox style.
chicago-parks
and click Export.Web maps are comprised of map tiles. A collection of tiles is called a tileset. Mapbox cuts up data into tiles that are then added to a web map and displayed at various zoom levels. To make Mapbox maps more performant, a dataset's features are simplified when it is converted into a tileset.
Congratulations! You've completed Part 1 of Add points to a web map.
Next, start part 2 of this tutorial series to learn how to add your tileset to a map style in the Mapbox Studio style editor.