﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2281	inheritance and colors	Landwirt	Landwirt	"I use a custom style to draw areas like landuse=* and natural=* with a border of 1px. To not add line attribues to every rule I added rules like this to the stylesheet:

{{{
<rule>
    <condition k=""landuse"" />
    <line width=""1"" />
</rule>
}}}

This works insofar as the landuse areas have a thin border then - or so it seems. The border is only visible when selecting the area. There is also a visible effect when the area is part of a multipolygon - when zooming in and out the border color changes randomly.[[BR]]
So to set a proper color for the border you have to add a line attribute again to every rule making the above approach rather useless.

Enhancement request(s):[[BR]]
- add a color attribute[[BR]]
- add a default color to every rule via the new attribute or by using line and area attributes with colour properties[[BR]]
- additional: use ""color"" instead of ""colour""

Examples:
{{{
<rule>
   <condition k=""landuse"" v=""farm""/>
   <color value=""farm#C1A764""/>
</rule>
<rule>
   <condition k=""landuse"" v=""farm""/>
   <color value=""farm#C1A764""/>
   <line width=""1"" colour=""scrub#007000""/>
</rule>

<rule>
   <condition k=""amenity"" v=""school""/>
   <color value=""building#cb9999""/>
   <area colour=""amenity_light#f7efb7""/>
</rule>
<rule>
   <condition k=""amenity"" v=""school""/>
   <line colour=""building#cb9999""/>
   <area colour=""amenity_light#f7efb7""/>
</rule>
}}}"	defect	closed	minor		Internal mappaint style	latest	fixed	inheritance color painting java clipping	
