Opened 12 years ago

Closed 12 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:


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 Changed 12 years ago by stoecker

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

comment:2 Changed 12 years ago by Don-vip

I have created a stylesheet for power lines colouring, based on its voltage value, so I have many conditions like that:


<condition k="voltage" v="63000"/>
<linemod mode="over" width="3" realwidth="3" colour="voltage-63#CE2C91"/>


For underground cables, I'd like to render them as dashed lines, so I was thinking to this:


<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"/>


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.

Last edited 12 years ago by Don-vip (previous) (diff)

comment:3 Changed 12 years ago by bastiK

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 Changed 12 years ago by bastiK

Resolution: wontfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.