Opened 15 years ago
Closed 14 years ago
#6483 closed enhancement (wontfix)
Enhancement: support priority for linemod
| Reported by: | Don-vip | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Internal mappaint style | Version: | |
| Keywords: | Cc: |
Description
In stylesheets, it would be great to add "priority" as a known keywork for linemod, and implement the same behaviour as other tags (line, area, icon).
Attachments (0)
Change History (4)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
I have created a stylesheet for power lines colouring, based on its voltage value, so I have many conditions like that:
<rule>
<condition k="voltage" v="63000"/>
<linemod mode="over" width="3" realwidth="3" colour="voltage-63#CE2C91"/>
</rule>
For underground cables, I'd like to render them as dashed lines, so I was thinking to this:
<rule>
<condition k="power" v="cable"/>
<condition k="voltage" v="63000"/>
<linemod mode="over" width="3" realwidth="3" colour="voltage-63#CE2C91" dashed="true" priority="10000"/>
</rule>
Indeed, it does not work today, so I had to create a rule for each item I want to be coloured (line, minor_line, station, sub_station, cable and so on). Priority would allow to define a default rule, and a special one for cables.
comment:3 by , 14 years ago
You can achieve this in mapcss, by putting all voltage "linemods" on the voltage layer. Something like that:
way[voltage=63000]::voltage_layer {
width: +3;
color: #ce2c91;
z-index: 10;
}
way[power=cable][voltage=63000]::voltage_layer {
dashes: 4,6;
}
comment:4 by , 14 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |



Linemods are applied all together. What should priority do here?