| | 801 | |
| | 802 | === Classes and Layer together === |
| | 803 | If you want to use layer and classes together, please note that you have to identify the class via is_prop_set. |
| | 804 | |
| | 805 | {{{#!mapcss |
| | 806 | node[railway=signal] { set sgnl; } |
| | 807 | |
| | 808 | /* it doesn't work */ |
| | 809 | node.sgnl::layer_signal_icon { z-index: 1000; ... icon: icon/signal-icon.svg; ... } |
| | 810 | node.sgnl::layer_signal_text { z-index: 1010; ... text: concat("Name of signal: ", tag("ref")); ..... ) |
| | 811 | |
| | 812 | /* use use instead: is_prop_set("...", "default") */ |
| | 813 | node[is_prop_set("sgnl", "default")]::layer_signal_icon { z-index: 1000; ... icon: icon/signal-icon.svg; ... } |
| | 814 | node[is_prop_set("sgnl", "default")]::layer_signal_text { z-index: 1010; ... text: concat("Name of signal: ", tag("ref")); ..... ) |
| | 815 | }}} |