Modify ↓
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 )
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
Component: | Core → Core mappaint |
---|---|
Type: | defect → enhancement |
comment:2 Changed 9 years ago by
comment:3 Changed 9 years ago by
Description: | modified (diff) |
---|
comment:4 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Keywords: | mapcss modify tag added |
comment:5 Changed 9 years ago by
Cc: | lists@… added |
---|
comment:6 Changed 6 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
I think this is worksforme as per properties and classes, see full docu at Help/Styles/MapCSSImplementation
Note: See
TracTickets for help on using
tickets.
This has been implemented, those properties are accessible via the
prop()
function …Changing tag of objects directly has unwanted side-effects in an editor ;-)