Opened 9 years ago

Closed 6 years ago

#10060 closed enhancement (worksforme)

MapCSS: set tag=value

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.

Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by Don-vip

Component: CoreCore mappaint
Type: defectenhancement

comment:2 Changed 9 years ago by simon04

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 Changed 9 years ago by simon04

Description: modified (diff)

comment:4 Changed 9 years ago by skyper

Description: modified (diff)
Keywords: mapcss modify tag added

comment:5 Changed 9 years ago by Aun Johnsen <lists@…>

Cc: lists@… added

comment:6 Changed 6 years ago by Klumbumbus

Resolution: worksforme
Status: newclosed

I think this is worksforme as per properties and classes, see full docu at Help/Styles/MapCSSImplementation

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.