Repository navigation
Mapbox studio
Mapbox Studio is a good place to start making beautiful cartographic visualisations! You can start using Mapbox Studio for free. However, as soon as you you intend to host a lot of your data on their servers or to use their service for commercial goals, Mapbox has a fee structure.
🔗 An alternative to Mapbox Studio is Maputnik.
Let's start with Mapbox Studio. Just for 10 minutes.
Now you have yourself a Mapbox Access Token.
🔗 Need help? https://www.mapbox.com/help/studio-manual/
We will start with uploading our own data.
Tilesets and add the gemeenten2017.geojson and aardbevingen.geojson data from the workshop materials. You will have to go through the steps twice.
Mapbox Studio will now create your vector tile set from the GeoJSON. This can take a few minutes. It will show a pop-up when it is done.

gemeenten set.
You will see a overview of the dataset we just created:

The details show the attributes available in your tileset.

Datasets and tilesets are two different types of files that you can create when uploading data to your Mapbox account. Datasets provide access to feature geometries (points, lines, and polygons) and properties (attributes), both of which can be edited in the Mapbox Studio dataset editor or through the Mapbox Datasets API. Tilesets are lightweight collections of vector data that are optimized for rendering and are not editable but can be styled in the Mapbox Studio style editor.
Let's style our data.
Styles and create a new style. Start with a blank one or a already existing one.
Mapbox Studio provides you with a few ready to go styles to get you started. The data behind this is Open Street Map data.
I choose an empty style:

Note, the geometries of the municipalites are polygons, the earthquakes are points. Give them some color too.

You can add some OSM layers, labels. Just explore the posibilities of Mapbox Studio.
A Tileset is the same as Vector Tile source. Here we created a Vector Tile set with just 1 data layer. Later we will use Vector Tile Sets which contain multiple layers, like roads, landuse, water. These Data Layers in the Vector Tiles contain geometries and attributes.
A Style Layer is a layer that is visualized on your map. We can style data layers multiple times. So one Data Layer can create multiple Style Layers. Like road_fill, road
When you finish your style we can move on to the next step, to actually publish your map!
Styles tab and then click on the Menu of the style you want to publish.
Share, develop & use .

Here are all the options to publish and develop your map further.
The section Share gives you a url with a full working map. All hosted by Mapbox.
My map url:
https://api.mapbox.com/styles/v1/nieneb/cjg3h8yp80oi82rldxukpu0oi.html?fresh=true&title=true&access_token=<AccesToken>#7.5/52.885332/6.282427/2
At the section Develop with this style there are lines of code which we will be using in the next step; Mapbox-GL.js library.
So leave this page open for reference in the next steps.

➡️ Let's go to step 2 MapboxGL.js!
Workshop developed by: Niene Boeijen - Webmapper
Beginners
Advanced
In case you need it:
- Troubleshooting WebGL support?
- CORS headers
- running things locally
- Making a Web page