[Mapcss] Filter proposal

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Jul 7 08:43:12 BST 2010


I would like to know what others use for specifying aliases and how they
should be handled. I also have a small suggestion.

Often, I want to specify "aliases" so that landuse=park and
landuse=garden render the same. Right now, I can do that 

1) via tag modification:

way [landuse=garden] { set landuse=park; }
way [landuse=park]   { image-fill: roses.png; }

2) pseudo classes:

way [landuse=garden] { set .park; }
way [landuse=park]   { set .park; }
way .park   { image-fill: roses.png; }

3) regexes:
way [landuse=~"(park)|(garden)"] { image-fill: roses.png; }


4) Not yet possible: osmarender rules allow "k=landuse v=park|garden"
syntax, and I would find this very intuitive:

way [landuse=park|garden]   { image-fill: roses.png; }

It is very similar to the regex syntax but without actually having to
invoke regexes. Would that be a possibility or should I go for the regex
one?

That is all for now :)
Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/mapcss/attachments/20100707/d8e13261/attachment.pgp>


More information about the Mapcss mailing list