From fa2f37dae60330512a653eb2f1255cbcd2cbfad7 Mon Sep 17 00:00:00 2001 From: Florian Kargl Date: Fri, 6 Aug 2021 00:39:16 +0200 Subject: [PATCH] Add style for area:highway --- resources/styles/standard/elemstyles.mapcss | 222 ++++++++++++++++++++ 1 file changed, 222 insertions(+) diff --git a/resources/styles/standard/elemstyles.mapcss b/resources/styles/standard/elemstyles.mapcss index e579729c706..9c7bedbcbc3 100644 --- a/resources/styles/standard/elemstyles.mapcss +++ b/resources/styles/standard/elemstyles.mapcss @@ -71,6 +71,12 @@ setting::note_annotation { default: false; } +setting::area_highway_opacity { + type: double; + label: tr("area:highway opacity"); + default: 0.1; +} + /*********************/ /* turn restrictions */ /*********************/ @@ -530,6 +536,222 @@ node[barrier=hampshire_gate][!is_prop_set(icon-image)] { set icon_z17; } +/****************/ +/* area:highway tags */ +/****************/ + +area["area:highway"=motorway]:closed { + fill-color: motorway#809bc0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=motorway_link]:closed { + fill-color: motorway#809bc0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=trunk]:closed { + fill-color: trunk#7fc97f; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=trunk_link]:closed { + fill-color: trunk#7fc97f; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=primary]:closed { + fill-color: primary#fb805f; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=primary_link]:closed { + fill-color: primary#fb805f; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=secondary]:closed { + fill-color: secondary#fdbf6f; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=secondary_link]:closed { + fill-color: secondary#fdbf6f; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=tertiary]:closed { + fill-color: tertiary#f7f496; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=tertiary_link]:closed { + fill-color: tertiary#f7f496; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=unclassified]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=residential]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=road]:closed { + fill-color: highway_road#770000; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=living_street]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; + dashes-background-color: livingdashed#00ff00; +} +area["area:highway"=pedestrian]:closed { + fill-color: foot#00ff00; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=raceway]:closed { + fill-color: raceway#ff80ff; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=service]:closed { + fill-color: service#809bc0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=cycleway]:closed { + fill-color: bicycle#b100ff; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=footway]:closed { + fill-color: foot#00ff00; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=track]:closed { + fill-color: highway_track#6e541c; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=bridleway]:closed { + fill-color: horse#a18559; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=path]:closed { + fill-color: foot#00ff00; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=construction]:closed { + fill-color: construction#ffff00; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=steps]:closed { + fill-color: foot#00ff00; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=bus_guideway]:closed { + fill-color: rail#404040; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=escape]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=traffic_island]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=platform]:closed { + fill-color: highway_platform#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=bus_stop]:closed { + fill-color: bus#89cbeb; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=busway]:closed { + fill-color: bus#89cbeb; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=shoulder]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=emergency_bay]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=passing_place]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=turning_circle]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} +area["area:highway"=turning_loop]:closed { + fill-color: street#c0c0c0; + fill-opacity: setting("area_highway_opacity"); + width: 1; + dashes: 9,3; +} + /****************/ /* highway tags */ /****************/