Skip to content

Instantly share code, notes, and snippets.

@almccon
Last active August 29, 2015 14:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almccon/7e42180f6477dfd30a6b to your computer and use it in GitHub Desktop.
Save almccon/7e42180f6477dfd30a6b to your computer and use it in GitHub Desktop.
Maptimeify a polygon in CartoCSS
<html>
<body>
<img src="/almccon/raw/7e42180f6477dfd30a6b/screenshot.png">
</body>
</html>
[osm_id = 260351411] // Stamen
{
::red {
line-width:2;
line-color: red;
line-offset: -8;
}
::orange {
line-width:2;
line-color: orange;
line-offset: -6;
}
::yellow {
line-width:2;
line-color: yellow;
line-offset: -4;
}
::green {
line-width:2;
line-color: green;
line-offset: -2;
}
::blue {
line-width:2;
line-color: blue;
}
::purple {
line-width:2;
line-color: purple;
line-offset: 2;
}
::halo {
line-width:4;
line-color: white;
line-offset: 5;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment