Skip to content

Instantly share code, notes, and snippets.

@javisantana
Created March 3, 2014 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javisantana/9323745 to your computer and use it in GitHub Desktop.
Save javisantana/9323745 to your computer and use it in GitHub Desktop.
cartocss for cartodb dark basemap
/** simple visualization */
#ne_10m_roads::roads{
[zoom >= 6]{
[type = 'Major Highway']{
line-width: .8;
line-color: #E1E1E1;
}
}
[zoom >= 7]{
[type = 'Major Highway']{
line-width: 1.2;
line-color: #E1E1E1;
}
[type = 'Secondary Highway']{
line-width: 0.6;
line-color: #E1E1E1;
}
}
[zoom >= 8]{
[type = 'Major Highway']{
::glow{
line-width: 3.6;
line-color: #D7D7D7;
}
::line{
line-width: 1.8;
line-color: #fff;
}
}
[type = 'Secondary Highway']{
::glow{
line-width: 2.8;
line-color: #D7D7D7;
}
::line{
line-width: 1.4;
line-color: #fff;
}
}
}
[zoom >= 10]{
[type = 'Major Highway']{
::glow{
line-width: 4;
line-color: #D7D7D7;
}
::line{
line-width: 2.4;
line-color: #fff;
}
}
[type = 'Secondary Highway']{
::glow{
line-width: 3.4;
line-color: #D7D7D7;
}
::line{
line-width: 1.8;
line-color: #fff;
}
}
}
}
#ne_10m_roads::ferry{
[zoom >= 7]{
[type = 'Ferry Route']{
line-width: 1;
line-color: #ABABAB;
line-dasharray: 5,5;
line-opacity: 0.4;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment