[josm-dev] MapCSS selector operators
Paul Hartmann
phaaurlt at googlemail.com
Mon Jul 25 19:41:23 BST 2011
On 07/25/2011 06:31 PM, Malcolm Herring wrote:
> Operators such as != =~ cause parsing errors if they are used following
> an eval() expression. Only = is accepted. Is this a bug or a feature?
I'd call it a missing feature. There is no != or =~ operator for eval
expressions [1]. You can work around the first limitation like this:
way[eval(not(has_tag_key(layer) && (tag(layer)=3)))]
(This is a complicated way of writing way[layer!=3])
Please report on trac. I will care for mapcss code, when enough issues
have piled up...
Paul
[1]
<http://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Evalexpressions>
More information about the josm-dev
mailing list