Changes between Version 248 and Version 249 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2023-02-12T12:16:09+01:00 (3 years ago)
Author:
mikeho
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v248 v249  
    799799}}}
    800800You can also negate classes. E.g. `way!.path` for all ways, which are not part of the class ''.path''.
     801
     802=== Classes and Layer together ===
     803If you want to use layer and classes together, please note that you have to identify the class via is_prop_set.
     804
     805{{{#!mapcss
     806node[railway=signal] { set sgnl; }
     807
     808/* it doesn't work */
     809node.sgnl::layer_signal_icon  { z-index: 1000; ... icon: icon/signal-icon.svg; ... }
     810node.sgnl::layer_signal_text  { z-index: 1010; ... text: concat("Name of signal: ", tag("ref")); ..... )
     811
     812/* use use instead: is_prop_set("...", "default") */
     813node[is_prop_set("sgnl", "default")]::layer_signal_icon  { z-index: 1000; ... icon: icon/signal-icon.svg; ... }
     814node[is_prop_set("sgnl", "default")]::layer_signal_text  { z-index: 1010; ... text: concat("Name of signal: ", tag("ref")); ..... )
     815}}}
    801816
    802817=== @supports Conditional Processing  ===