Modify

Opened 13 years ago

Closed 13 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 stoecker, 13 years ago

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

comment:2 by Don-vip, 13 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.

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

comment:3 by bastiK, 13 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 bastiK, 13 years ago

Resolution: wontfix
Status: newclosed

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.