Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
features
areas
building : building
playa : natural = mud
national park : protection_title = "National Park"
national preserve : protection_title = "National Preserve"
national monument : protection_title = "National Monument"
military : landuse = military
wilderness : protection_title = "Wilderness Area"
lake : natural = water
lines
highway motorway : highway=motorway OR highway=motorway_link
highway trunk : highway=trunk OR highway=primary OR highway=trunk_link OR highway=primary_link
highway secondary : highway=secondary
highway tertiary : highway=tertiary
canal : waterway = canal
railroad : railway
properties
map-background-color : #FFFFFF
rules
target : lake
define
fill-color: #4286F4
line-style: none
draw : fill
target : railroad
define
line-style : dash
line-color : white
line-width : 0.75
border-width : 0.75
border-color: gray
border-style: solid
draw : line
target : building
define
line-style: none
fill-color : black
draw : fill
target : national monument
define
// line-style: none
line-width : 1
line-color: green
fill-color : white
fill-opacity : 0.2
fill-hatch : nwse
fill-hatch-color : green
fill-hatch-opacity : 0.2
draw : line
target : national preserve
define
line-width : 1
line-color : green
fill-color : green
fill-opacity : 0.2
draw : fill
target : national park
define
line-width : 1
fill-color : green
fill-opacity : 0.2
line-width: 1
draw : fill
draw : text
target : playa
define
line-style : dash
line-color : tan
line-width : 1
fill-color : blue
fill-opacity : 1.0
fill-hatch : horizontal
fill-hatch-color : tan
fill-hatch-opacity : 0.0
draw : fill
target : wilderness
define
line-style : none
fill-color : green
fill-opacity : 0.2
draw : fill
target : military
define
line-style : none
fill-color : red
fill-hatch : swne
fill-hatch-color : white
fill-hatch-opacity : 0
draw : fill
target : canal
define
line-width: 3
line-color: #4286f4
for : tunnel=yes
define
// border-style : dot
// border-width : 15%
line-style : dot
draw : line
// highways and roads(mostly from Z13)
target : highway*
define
font-size : 15:7;18:10
font-weight : bold
define
line-join : round
line-start-cap : round
line-end-cap : round
border-style : solid
for : tunnel=yes
define
border-style : dot
if : *motorway*
if : *link
define
line-width : 7:1;12:3;13:4;16:5;18:6
else
define
line-width : 7:1;9:2;12:3;13:7;16:10;18:12
define
min-zoom : 12
line-color : #749BAD
// z13 20 -> 100
border-color : #849BBD black 100%
border-width : 15%
for : bridge=yes
define
border-width : 35%
draw : line
define
min-zoom : 7
max-zoom : 12
border-style : none
draw : line
elseif : *trunk*
define
min-zoom : 12
line-color : #EDC694
line-width : 1.5
// z13 20 -> 100
border-color : #96D296 black 100%
border-width : 15%
for : bridge=yes
define
border-width : 35%
draw : line
define
min-zoom : 7
max-zoom : 12
border-style : none
draw : line
elseif : *secondary
define
min-zoom : 12
line-color : #FDD6A4
line-width : 11:1;13:2;15:10;18:12
// #CAA36F -> black
border-color : black
// z13 5 -> 15
border-width : 15%
for : bridge=yes
define
border-width : 35%
draw : line
define
min-zoom : 8.5
max-zoom : 12
border-style : none
draw : line
elseif : *tertiary
define
min-zoom : 9
line-color : #FEFEB2
line-width : 11:1;13:2;15:10;18:12
// z13 20 -> 100
border-color : #FEFEB2 black 100%
border-width : 15%
for : bridge=yes
define
border-width : 35%
draw : line
else
stop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.