Skip to content

Instantly share code, notes, and snippets.

@turban
Created October 26, 2012 10:50
Show Gist options
  • Save turban/3958158 to your computer and use it in GitHub Desktop.
Save turban/3958158 to your computer and use it in GitHub Desktop.
@line: #226688;
@shade0: #FFFFFF;
@shade1: #FFFFE5;
@shade2: #FFF7BC;
@shade3: #FEE391;
@shade4: #FEC44F;
@shade5: #FE9929;
@shade6: #EC7014;
@shade7: #CC4C02;
@shade8: #993404;
@shade9: #662506;
Map {
background-color: #b8dee6;
}
/* Coastlines */
#nz-area-units::land-glow-inner[zoom>=0] {
line-color: @line;
line-opacity: 0.8;
line-join: round;
[zoom=0] { line-width:0.8; }
[zoom=1] { line-width:1.2; }
[zoom=2] { line-width:1.5; }
[zoom>2] { line-width:2; }
}
#nz-area-units::land-glow-outer[zoom>1] {
line-color: @line;
line-width: 3;
line-opacity: 0.1;
line-join:round;
}
#nz-area-units {
line-color: @shade0;
line-width: 0;
polygon-fill: @shade0;
polygon-opacity:1;
[popdens > 0][popdens < 1] { polygon-fill: @shade1; }
[popdens >= 1][popdens < 5] { polygon-fill: @shade2; }
[popdens >= 5][popdens < 10] { polygon-fill: @shade3; }
[popdens >= 10][popdens < 50] { polygon-fill: @shade4; }
[popdens >= 50][popdens < 100] { polygon-fill: @shade5; }
[popdens >= 100][popdens < 250] { polygon-fill: @shade6; }
[popdens >= 250][popdens < 500] { polygon-fill: @shade7; }
[popdens >= 500][popdens < 1000] { polygon-fill: @shade8; }
[popdens > 1000] { polygon-fill: @shade9; }
[zoom > 10] { line-width: 1; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment