Skip to content

Instantly share code, notes, and snippets.

@vlandham
Created October 19, 2013 04:00
Show Gist options
  • Save vlandham/7051507 to your computer and use it in GitHub Desktop.
Save vlandham/7051507 to your computer and use it in GitHub Desktop.
Map {
background-color: #C6DEEE;
}
@road_size: 1;
#countries {
::outline {
// line-color: #85c5d3;
// line-width: 2;
// line-join: round;
}
//polygon-fill: #fff;
}
#ne10mland {
line-color:#594;
line-width:0.5;
polygon-opacity:1;
polygon-fill:#ae8;
}
#roads {
line-color: #777;
line-opacity:0.6;
[dir_type = 'other'] {line-width:@road_size;}
//[dir_type = 'other'] {line-opacity:0.4;}
[dir_type = 'front'] {line-width:@road_size;}
[dir_type = 'back'] {line-width:@road_size;}
}
// for the back number vis
/*
#roads {
line-opacity: 0;
[dir_type = 'other'] {line-width:0;}
[dir_type = 'front'] {line-width:0;}
[dir_type = 'back'] {line-width:@road_size;}
line-color: #4b5948;
[str_num > 1] {line-opacity: 0.1;}
[str_num > 10] {line-opacity: 0.2;}
[str_num > 20] {line-opacity: 0.3;}
[str_num > 30] {line-opacity: 0.4;}
[str_num > 40] {line-opacity: 0.5;}
[str_num > 50] {line-opacity: 0.6;}
[str_num > 70] {line-opacity: 0.7;}
[str_num > 90] {line-opacity: 0.8;}
[str_num > 110] {line-opacity: 0.9;}
[str_num > 130] {line-opacity: 1.0;}
}
#roads::other {
line-opacity: 0;
[dir_type = 'other'] {line-width:0;}
[dir_type = 'front'] {line-width:0;}
//[dir_type = 'back'] {line-width:2;}
[dir_type = 'back'] {
[str_num = 0] {
line-width:@road_size;
line-opacity: 0.6;
line-color: #E47445;
}
}
}
*/
// for the front number vis
/*
#roads {
line-opacity: 0;
[dir_type = 'other'] {line-width:0;}
[dir_type = 'front'] {line-width:@road_size;}
[dir_type = 'back'] {line-width:0;}
line-color: #4b5948;
[str_num > 50] {line-opacity: 0.1;}
[str_num > 70] {line-opacity: 0.2;}
[str_num > 90] {line-opacity: 0.3;}
[str_num > 110] {line-opacity: 0.4;}
[str_num > 130] {line-opacity: 0.5;}
[str_num > 150] {line-opacity: 0.6;}
[str_num > 170] {line-opacity: 0.7;}
[str_num > 190] {line-opacity: 0.8;}
[str_num > 210] {line-opacity: 0.9;}
[str_num > 230] {line-opacity: 1.0;}
}
#roads::other {
line-opacity: 0;
[dir_type = 'other'] {line-width:0;}
[dir_type = 'front'] {line-width:0;}
//[dir_type = 'back'] {line-width:2;}
[dir_type = 'front'] {
[str_num = 0] {
line-width:@road_size;
line-opacity: 0.6;
line-color: #E47445;
}
}
}
*/
// nsew colors
/*
#roads {
[direction = 'N'] {line-color: #E47445;}
[direction = 'NE'] {line-color: #E07596;}
[direction = 'E'] {line-color: #D369DC;}
[direction = 'SE'] {line-color: #9A9BD7;}
[direction = 'S'] {line-color: #66BDC3;}
[direction = 'SW'] {line-color: #6EBF7C;}
[direction = 'W'] {line-color: #78CB40;}
[direction = 'NW'] {line-color: #C6AD44;}
}
*/
#waterareas {
line-color:#4B5948;
line-width:0;
polygon-fill:#C6DEEE;
}
#processedp {
line-color:#4B5948;
line-width:0.5;
polygon-opacity:1;
//polygon-fill:#ae8;
polygon-fill:white;
//polygon-fill:#C0EEA8;
}
#neighborhoods {
line-color:black;
line-width:4;
polygon-opacity:0;
polygon-fill:#ae8;
}
#parks {
line-color:#78CB40;
line-width:0.5;
polygon-opacity:1;
polygon-fill:#78CB40;
}
#bus {
line-width:@road_size;
line-color:#168;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment