Opened 14 years ago
Closed 14 years ago
#5938 closed defect (fixed)
MapCSS and overlays
Reported by: | Vidar Gundersen | Owned by: | bastiK |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | mapcss, mappaint | Cc: |
Description
How does MapCSS support overlaying, for example adding a transparent dashed red line on ways tagged with access=no?
This was solved using linemod in MapPaint's XML style sheets:
<rule> <linemod mode="over" /> </rule>
Attachments (0)
Change History (4)
comment:1 by , 14 years ago
follow-up: 3 comment:2 by , 14 years ago
The MapCSS support you've added to JOSM is great. Very much appreciated.
are matching of relations and multiple conditions supported? (it seems not.)
relation[route=foot] {} relation[route=foot] way[highway] {} way[access=no] way[highway] {}
comment:3 by , 14 years ago
Replying to Vidar Gundersen:
are matching of relations
No, not yet. Try this instead:
way[highway][JOSM_search("child route=foot")] {}
and multiple conditions supported? (it seems not.)
like this?
way[access=no][highway] {}
Try
Or this crazy example from Potlatch 2:
PS: I'll add more comprehensive documentation this weekend and the feature will be "officially" announced in a few days. Anyway, I appreciate beta testing. :)