meta { title: "Direction for traffic signs"; /* title shown in the menu */ icon: "presets/vehicle/restriction/give_way.svg"; /* small icon shown in the menu next to the title */ version: "0.1.7"; description: "very simple preset to show the “direction” tag of a highway=stop,give_way,traffic_signals"; author: "Michael Maier (species@osm)"; /* link: "http://..."; URL to the web page of the style */ link: "https://github.com/species/josm-preset-traffic_sign_direction"; min-josm-version: 8000; /* the minimum JOSM version where this style works */ } /* zoomlevels: icons 21+ great below 20 smaller icons ways: -19 narrow 20+ dick texts 16-20 short , 20- normal */ node|z17-[highway=~/^(give_way|stop)/]:connection::warning { symbol-shape: hexagon; symbol-fill-color:red; symbol-size:42; symbol-stroke-width:4; symbol-stroke-color:white; z-index:-1; } area > node[highway=~/^(give_way|stop)/]:connection::warning { symbol-shape: none; } node|z17-[!direction][highway=~/^(give_way|stop)/]!:connection::randg, area > node|z17-[!direction][highway=~/^(give_way|stop)/]::randg { symbol-shape: square; symbol-fill-color:orange; symbol-size:24; z-index:-1; } way[oneway?][!cycleway] > node[!direction][highway=~/^(give_way|stop|traffic_signals)/]::randg, way[oneway?][cycleway=no] > node[!direction][highway=~/^(give_way|stop|traffic_signals)/]::randg { symbol-shape: none; } node|z17-[direction][highway=~/^(give_way|stop|traffic_signals)/]::randg, node|z17-[traffic_signals:direction][highway=~/^(give_way|stop|traffic_signals)/]::randg { text:eval("↓↑"); font-size:20; text-halo-color:black; text-halo-radius:1px; } node|z17-[direction=backward][highway=~/^(give_way|stop|traffic_signals)/]::randg, node|z17-[traffic_signals:direction=backward][highway=~/^(give_way|stop|traffic_signals)/]::randg { text:eval("↓"); } node|z17-[direction=forward][highway=~/^(give_way|stop|traffic_signals)/]::randg, node|z17-[traffic_signals:direction=forward][highway=~/^(give_way|stop|traffic_signals)/]::randg { text:eval("↑"); } node|z17-[highway=~/^(give_way|stop|traffic_signals)/]!:connection < way[highway][oneway!~/yes|-1/] { repeat-image: "https://github.com/species/josm-preset-wheelchair/raw/master/incline_up_steps.png"; repeat-image-spacing: 90; repeat-image-width: 24; }