[Mapcss] questions

Paul Hartmann phaaurlt at googlemail.com
Sun May 13 12:08:08 BST 2012


2012/5/13 Vladimir Elistratov <vvoovv.projects at gmail.com>:
>> [tunnel?][!bridge?]
>>
>> What is the meaning of the question mark "?" here?
>
>> I believe JOSM uses [tunnel?] to mean "tunnel is tagged as yes or true"
>> (as opposed to [tunnel] which means "tunnel is tagged").
>
> Then the meaning of [!bridge?] should be "bridge is NOT tagged as yes or
> true". Right?

Correct, you can read it as !(bidge?).

> What is the status of that syntax with the question mark? Is it already
> accepted for the specification?

I think in Potlatch 2, [tunnel=yes] also looks for =true and =1. I'd
say this is the more "standard" way to handle the yes/true problem.

The question mark syntax originates from JOSM search query format,
that's why it is also support it in JOSM styles.

Paul



More information about the Mapcss mailing list