Part 1: Simple CartoCSS
- Download today's data.
- Open the CartoCSS documentation.
- Upload the earthquakes data to CARTO.
- Make a map with the earthquakes data and style the points with no aggregation.
- Using CartoCSS:
- Make the markers 5 pixels wide.
- Give the markers an outline 2 pixels wide.
- Give the fill and stroke of the markers different colors.
Part 2: CartoCSS Zoom Conditions
- Make your markers 5 pixels wide below zoom level 8.
- Make your markers 10 pixels wide between zoom level 8 and 12.
- Make your markers 15 pixels wide above zoom level 12.
Part 3: CartoCSS Attribute Conditions
- Make your markers a different color when the magnitude (
mag
) is over 5.5.
Part 4: CartoCSS Variables
- Use a variable for one of your properties.