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

Attachment: pgpcDp8Jjoacv.pgp
Description: PGP signature

_______________________________________________
Mapcss mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/mapcss

Reply via email to