Opened 12 years ago

Last modified 9 years ago

#10060 closed enhancement

MapCSS: set tag=value — at Version 4

Reported by: plepe Owned by: team
Priority: normal Milestone:
Component: Core mappaint Version:
Keywords: mapcss modify tag Cc: lists@…

Description (last modified by skyper)

According to the MapCSS specification ​osmwiki:MapCSS/0.2, it should be possible to modify tags (temporarily for the rendering process).

{ set tag=value; }   /* set a tag */
{ set tag; }         /* set a tag to 'yes' */
{ set tag=eval(tag('name')); }   /* set tag to the result of the eval() expression */

It would be great, if JOSM would support this.

Change History (4)

comment:1 by Don-vip, 12 years ago

Component: CoreCore mappaint
Type: defectenhancement

comment:2 by simon04, 12 years ago

This has been implemented, those properties are accessible via the prop() function …

Changing tag of objects directly has unwanted side-effects in an editor ;-)

comment:3 by simon04, 12 years ago

Description: modified (diff)

comment:4 by skyper, 12 years ago

Description: modified (diff)
Keywords: mapcss modify tag added
Note: See TracTickets for help on using tickets.