← Advanced GIS

In-class Exercises

Part 1: Simple CartoCSS

  1. Download today's data.
  2. Open the CartoCSS documentation.
  3. Upload the earthquakes data to CARTO.
  4. Make a map with the earthquakes data and style the points with no aggregation.
  5. 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 (mag) is over 5.5.

Part 4: CartoCSS Variables

  1. Use a variable for one of your properties.