Modify

Opened 10 years ago

Closed 7 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 by Don-vip, 10 years ago

Component: CoreCore mappaint
Type: defectenhancement

comment:2 by simon04, 10 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, 10 years ago

Description: modified (diff)

comment:4 by skyper, 10 years ago

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

comment:5 by Aun Johnsen <lists@…>, 10 years ago

Cc: lists@… added

comment:6 by Klumbumbus, 7 years ago

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
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.