Created
March 3, 2014 12:11
-
-
Save javisantana/9323745 to your computer and use it in GitHub Desktop.
cartocss for cartodb dark basemap
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
/** 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