← 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 a Mapbox layer

  1. Mapbox Basic doesn't contain contour lines. Let's fix this.
  2. Add a new layer by clicking + Add Layer in the top left.
  3. Under Unused sources find and expand Mapbox Terrain V2.
  4. Select contour, change its type from Fill to Line and style it.
  5. You may need to zoom in (at least zoom level 9) in a not-too-flat area to see the contour lines.

Part 4: 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 layer to your style. Instead of using an available layer, click New tileset and upload nybb.zip.
  4. Once the upload is complete, select it and style the layer.