Skip to content

Instantly share code, notes, and snippets.

@vlandham
Created April 5, 2012 17:22
Show Gist options
  • Save vlandham/2312647 to your computer and use it in GitHub Desktop.
Save vlandham/2312647 to your computer and use it in GitHub Desktop.
Street Map Styling for TileMill
//short version
@minor_color: #1d1d1d;
@major_color: #000;
#roads {
line-join: round;
line-cap: round;
line-width:0.5;
line-color:@minor_color;
}
#roads [type='rail'] {
line-opacity:0.0;
line-width:0.0;
}
// ...
#roads::prim[type='primary'] {
line-color:@major_color;
line-width:1;
}
#roads::moto[type='motorway'] {
line-color:@major_color;
line-width:1.5;
}
Map {
background-color: #f6f2ec;
}
@minor_color: #1d1d1d;
@major_color: #000;
#roads {
line-join: round;
line-cap: round;
line-width:0.5;
line-color:@minor_color;
}
#roads [type='rail'] {
line-opacity:0.0;
line-width:0.0;
}
#roads [type='footway'] {
line-opacity:0.0;
line-width:0;
}
#roads [type='cycleway'] {
line-opacity:0.0;
line-width:0;
}
#roads::sec[type='secondary'] {
line-color:@major_color;
line-width:0.6
}
#roads::prim[type='primary'] {
line-color:@major_color;
line-width:1;
}
#roads::trunk[type='trunk'] {
line-color:@major_color;
line-width:1.5;
}
#roads::moto[type='motorway'] {
line-color:@major_color;
line-width:1.5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment