Last active
December 15, 2015 05:29
-
-
Save lisawilliams/5209571 to your computer and use it in GitHub Desktop.
Carto markup for TileMill map of kids in Early Intervention programs in Rhode Island. See map here: http://dataforradicals.com/tilemill-and-mapbox-are-pretty-fun/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Map { | |
background-color: #b8dee6; | |
} | |
#countries { | |
::outline { | |
line-color: #1889a2 ; | |
line-width: 2; | |
line-join: round; | |
} | |
polygon-fill: #fff; | |
} | |
// I had to get a states 'shapefile' to upload as a layer to make this part work. | |
// I used this one, which was pretty crude. You can probably find a better shapefile of US states. | |
// http://www.arcgis.com/home/item.html?id=f7f805eb65eb4ab787a0a3e1116ca7e5 | |
#states | |
::outline { | |
line-color: #1889a2; | |
line-width: .5; | |
line-join: round; | |
} | |
// One of the layers I uploaded was a spreadsheet of cities in RI along with the number of | |
// kids involved in early childhood "Early Intervention" programs. | |
// The column containing the # of kids was titled "KIDS_EI". | |
#kidsinearlyintervent { | |
// With Carto I was able to change the size of the marker based on how many kids in a city were enrolled in EI. | |
// More information on that here: http://mapbox.com/tilemill/docs/crashcourse/styling/ | |
[KIDS_EI >= 200] { marker-width:25; } | |
[KIDS_EI <= 150] { marker-width:20; } | |
[KIDS_EI <= 100] { marker-width: 15; } | |
[KIDS_EI <= 50] { marker-width: 10; } | |
[KIDS_EI <= 25] { marker-width: 5;} | |
marker-fill: #1889a2; | |
marker-line-color:#813; | |
marker-allow-overlap:true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment