# OSM MK level 2 - ground level above Base/SRTM
aeroway=runway [0x27 resolution 20]
#boundary=administrative [0x1c resolution 18]
#boundary=national [0x1e resolution 17]
#boundary=political [0x1c resolution 17]

# Contours take their name from the elevation setting.
#contour=elevation & contour_ext=elevation_minor
#        [0x20 resolution 22]
#contour=elevation & contour_ext=elevation_medium
#        { name '${ele|conv:m=>ft}'; }
#        [0x21 resolution 19]
#contour=elevation & contour_ext=elevation_major
#        { name '${ele|conv:m=>ft}'; }
#        [0x21 resolution 19]

# Draw roundabouts with below styles, not 0x0c as we are not routing in this layer
# tunnel!=yes & junction=roundabout & highway=trunk [0x0c road_class=3 road_speed=5 resolution 16]
# tunnel!=yes & junction=roundabout & highway=primary [0x0c road_class=3 road_speed=4 resolution 19]
# tunnel!=yes & junction=roundabout & highway=secondary [0x0c road_class=2 road_speed=3 resolution 20]
# tunnel!=yes & junction=roundabout & highway=tertiary [0x0c road_class=1 road_speed=3 resolution 20]
# tunnel!=yes & junction=roundabout & highway=unclassified [0x0c road_class=1 road_speed=2 resolution 21]
# tunnel!=yes & junction=roundabout [0x0c road_class=0 road_speed=1 resolution 21]

# Set highway names to include the reference if there is one
highway=* {name '${name} (${ref})' | '${ref}' | '${name}' }
#
tunnel!=yes & highway=motorway  [0x01 road_class=4 road_speed=7 resolution 12]
tunnel!=yes & highway=motorway_link  [0x0b road_class=4 road_speed=3 resolution 16]
tunnel!=yes & highway=trunk  [0x02 road_class=3 road_speed=5 resolution 14]
tunnel!=yes & highway=trunk_link [0x09 road_class=3 road_speed=3 resolution 16]
tunnel!=yes & highway=primary [0x03 road_class=3 road_speed=4 resolution 16]
tunnel!=yes & highway=primary_link [0x08 road_class=3 road_speed=3 resolution 18]
tunnel!=yes & highway=secondary [0x04 road_class=2 road_speed=3 resolution 17]
tunnel!=yes & highway=tertiary [0x05 road_class=1 road_speed=3 resolution 18]
tunnel!=yes & highway=minor [0x06 road_class=1 road_speed=2 resolution 20]
tunnel!=yes & highway=residential [0x06 road_class=0 road_speed=2 resolution 20] 
tunnel!=yes & highway=living_street [0x06 road_class=0 road_speed=2 resolution 20]
tunnel!=yes & highway=service [0x07 road_class=0 road_speed=1 resolution 22]

# these should not be tunnels, or will not be drawn as tunnels anyway
highway=path {add access = no; add bicycle = yes; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 20]
highway=steps {add access = no; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]
highway=track [0x0a road_class=0 road_speed=1 resolution 21]
highway=unclassified [0x06 road_class=1 road_speed=2 resolution 20]
highway=unsurfaced [0x0a road_class=0 road_speed=1 resolution 21]
highway=pedestrian & area!=yes {add access = no; add foot = yes} [0x06 road_class=0 road_speed=0 resolution 22]
highway=bridleway {add access = no; add bicycle = yes; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]
highway=byway [0x16 road_class=0 road_speed=0 resolution 23]
highway=cycleway {add access = no; add bicycle = yes; add foot = yes} [0x16 road_class=0 road_speed=1 resolution 23]
highway=footway {add access = no; add foot = yes} [0x16 road_class=0 road_speed=0 resolution 23]

# Mop up any unrecognised highway types
highway=* & area!=yes & tunnel!=yes [0x07]

#natural=coastline [0x15 resolution 12]
#power=line [0x29 resolution 20]

tunnel!=yes & railway=rail [0x3a resolution 17]
railway=light_rail [0x3a resolution 19]
railway=subway [0x3a resolution 19]
railway=tram [0x3a resolution 19]
railway=disused [0x3b resolution 20]

# these at at L0
#route=ferry [0x1a road_class=0 road_speed=0 resolution 18]

#waterway=canal [0x1f resolution 21]
#waterway=drain [0x1f resolution 22]
#waterway=river [0x1f resolution 18]
#waterway=stream [0x18 resolution 22]

aerialway=chair_lift [0x38 resolution 20]
aerialway=drag_lift [0x39 resolution 21]
