← Methods 3

In-class Exercises

Part 1: changing properties with CartoCSS

  1. Upload the earthquakes data from today's data to Carto.
  2. Open the CartoCSS documentation.
  3. Make a map with the earthquakes data and style the points with no aggregation.
  4. Using CartoCSS:
    1. Make the markers 5 pixels wide.
    2. Give the markers an outline 2 pixels wide.
    3. Give the fill and stroke of the markers different colors.

Part 2: CartoCSS Zoom Conditions

  1. Make your markers 5 pixels wide below zoom level 8.
  2. Make your markers 10 pixels wide between zoom level 8 and 12.
  3. Make your markers 15 pixels wide above zoom level 12.

Part 3: CartoCSS Attribute Conditions

  1. Make your markers a different color when the magnitude is over 7.