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

Dirk Stöcker openstreetmap at dstoecker.de
Mon Jul 19 10:16:04 BST 2010


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)





More information about the josm-dev mailing list