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 style editor, a visual editor you can use to create a custom map style. 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 Part 3: Add interactivity. The map below shows the map style you will create in this part of the series.
There are a few resources you will need to follow along with this guide:
After finishing Add points to a web map, part 1: create a dataset, create a new style using the Streets template.
On your Styles page in Mapbox Studio, click the New style button.
The style editor will open automatically. Rename your new style to Chicago Parks using the title field in the upper left side of the screen.
Web maps are comprised of map tiles. To add your data to a web map, Mapbox will cut it up into tiles so the data can display at various zoom levels. The collection of tiles that Mapbox cuts your map into is called a tileset. In Add points to a web map, Part 1: create a dataset, you converted a dataset into a tileset to add it to a new map style.
You will add your tileset as a new layer here:
Since you selected Symbol as the type for this layer, you will be styling a symbol layer. You can style symbol layers with both text and icons.
First, upload your custom icon:
Once the icon has loaded, use it in your chicago-parks layer:
True
.You should now see the marker icon appear on all your points.
Now that you have finished styling your map, you need to publish your style for those changes to be live on the web.
The Share modal contains the resources you need to publish your style in a web app, mobile app, or with another third-party tool.
Click Share in the upper right of the style editor. The Share modal contains a share URL that allows you to share a preview of your style with others. The modal also contains a style URL and your access token, both of which you will need in part three of this tutorial.
Congratulations! You've completed Part 2 of Add points to a web map.
Next, head to Add points to a web map, Part 3: add interactivity to add popups with information about each park to your map using Mapbox GL JS.