[josm-dev] MapPaint Styles - combining line style and modifier

Sebastian Klein bastikln at googlemail.com
Mon Jul 19 11:47:30 BST 2010


Thanks for the example, should multi-condition rules have the same semantics?

(E.g.
<rule>
 <condition k="highway" v="motorway"/>
 <condition k="highway" v="motorway"/>
 <line width="15" realwidth="15" colour="00f496" priority="1000"/>
 <linemod mode="over" width="+70" colour="00ff00" dashed="7"/>
</rule>
behaves differently compared to the example with one condition.)


Sebastian


On 7/19/10, Dirk Stöcker <openstreetmap at dstoecker.de> wrote:
> On Mon, 19 Jul 2010, Sebastian Klein wrote:
>
>> <rule>
>> <condition k="highway" v="motorway"/>
>> <line width="15" realwidth="15" colour="00f496" priority="1000"/>
>> <linemod mode="over" width="+70" colour="00ff00" dashed="7"/>
>> </rule>
>>
>> it ignores the "over" line modifier. This is because of l. 144 in
>> ElemStyles.java:
>>
>>  over.remove(linestring);
>>
>> (Where linestring is the condition key for the line style.)
>>
>> Is there a reason for this behaviour or can we remove the line?
>
> Yes, there is. Overlays are used to combine different styles. When there
> is a basic style of this type, then this should be used instead.
>
> Example:
> - When I have a street including tram, then I draw street with Tram as
>    overlay.
> - When I have only a tram, then I draw a tram directly.
>
> Allowing overlays overlaying the same basic type would make things much
> harder to control.
>
> Overlays aren't meant to improve drawing style of single elements. This
> would be too costly during drawing.
>
> Ciao
> --
> http://www.dstoecker.eu/ (PGP key available)
>
>
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>




More information about the josm-dev mailing list