Apply style to relation

I want to display all members of a given type of route relation with a custom style, in addition with the line style that corresponds to each member of the relation, which can be tracks or different kinds of roads. I've added the following line to the relations style file: type=route & route=my_type {add my_tag=yes} and the following line to the lines style file: my_tag=yes [0x10603 resolution 12 continue] (I also tried my_tag=yes & highway=* [0x10603 resolution 12 continue]) If I manually add my_tag=yes to a way it is displayed as I want (see attached screenshot), so I assume TYP and lines files are OK. What's the problem with the relations file?

On Thu, Nov 04, 2010 at 07:10:47PM +0100, Carlos Dávila wrote:
I've added the following line to the relations style file: type=route & route=my_type {add my_tag=yes}
That would add my_tag to the relation, not to the relation members. You need the apply action, as in resources/styles/default/relations or (a simpler example) resources/styles/routes/{relations,lines}. Marko

El 04/11/10 21:08, Marko Mäkelä escribió:
On Thu, Nov 04, 2010 at 07:10:47PM +0100, Carlos Dávila wrote:
I've added the following line to the relations style file: type=route& route=my_type {add my_tag=yes}
That would add my_tag to the relation, not to the relation members. You need the apply action, as in resources/styles/default/relations or (a simpler example) resources/styles/routes/{relations,lines}. I would swear I had also tried with apply but didn't work. Anyway now it works, thanks Marko.
participants (2)
-
Carlos Dávila
-
Marko Mäkelä