Changes between Version 144 and Version 145 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2017-12-04T23:12:47+01:00 (11 days ago)
Author:
Klumbumbus
Comment:

add alternative code style, see confusion in #15439 and #15635

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v144 v145  
    409409}}}
    410410
    411 Since r6554, it is possible to prefix the "value" (i.e., expression after the operator) with a `*` in order to "de-reference" it (i.e., obtain consider it as another key and obtain its value). Thus, `[key1 = *key2]` compares the value of `key1` with the value of `key2`, and `[key =~ */pattern/]` considers the value of the key `pattern` as a regular expression and matches it against the value of `key`.
     411Since r6554, it is possible to prefix the "value" (i.e., expression after the operator) with a `*` in order to "de-reference" it (i.e., obtain consider it as another key and obtain its value). Thus, `[key1 = *key2]` or `[key1=*key2]` compares the value of `key1` with the value of `key2`, and `[key =~ */pattern/]` considers the value of the key `pattern` as a regular expression and matches it against the value of `key`.
    412412
    413413In addition, you can test whether a tag is present or not: