← Methods 3

In-class Exercises

Part 1: Mapbox

  1. Log in to your Mapbox account and go to Studio.
  2. Create a new style based on Basic.
  3. Change the color of some polygons and lines.
  4. Change the font of some labels.
  5. Make buildings more transparent when zoomed out and less transparent when zoomed in.
  6. Experiment!

Part 2: Add a Mapbox style to Carto

  1. Publish your style from the previous part.
  2. Find the Carto URL as detailed in the slides, and copy it.
  3. Open a Carto map.
  4. Click on the basemap to change it, select Mapbox for the source, and enter the URL from Mapbox.

Part 3: Add your own layer

  1. Mapbox Basic also doesn't contain the borough boundaries. Let's add those now.
  2. Download today's data and unzip it. The zip file nybb.zip contains the borough boundaries shapefile.
  3. Add a new tileset in your Mapbox account and upload nybb.zip.
  4. Back in your style, add a new layer and select the borough boundaries tileset.
  5. Style the borough boundaries.