Modify

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#10059 closed enhancement (fixed)

MapCSS: Child selector

Reported by: plepe Owned by: team
Priority: normal Milestone: 14.05
Component: Core mappaint Version:
Keywords: mapcss child Cc:

Description (last modified by skyper)

According to the MapCSS specification osmwiki:MapCSS/0.2, the child selector has the form:
relation[type=route] way[highway]

JOSM uses another form:
relation[type=route] > way[highway]

I think the second form is actually superior, as you can add conditions on the link (e.g. role). (Note: According to the MapCSS specification the condition would be on the child selector).

Maybe it would advisable to support the basic MapCSS selectors too? Or work on a new MapCSS 0.3 version instead, which uses JOSM style selectors?

Attachments (0)

Change History (5)

comment:1 by Don-vip, 10 years ago

Component: CoreCore mappaint
Type: defectenhancement

comment:2 by bastiK, 10 years ago

Yes, it would be nice to support this syntax as it is part of the standard and supported by many implementations.

(However I have no plans to work on it myself, at the moment.)

comment:3 by skyper, 10 years ago

Description: modified (diff)
Keywords: mapcss child added

comment:4 by simon04, 10 years ago

Resolution: fixed
Status: newclosed

In 7166/josm:

fix #10059 - MapCSS, child selector: make greater-than-sign optional

The following selectors are equivalent:
relation[type=route] way[highway]
relation[type=route] > way[highway]

comment:5 by Don-vip, 10 years ago

Milestone: 14.05

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.