[josm-dev] elemstyle.xml

Nic Roets nroets at gmail.com
Wed May 21 01:22:36 BST 2008


AFAIK, elemstyle.xml was created for the mappaint plugin and now
resides in the JOSM SVN. It maps (k,v) tag pairs to line widths,
colours, icon names and other attributes.

The current version of my 'gosmore' rendering / routing program reads
this file. But there are a number of changes that seems logical to me
and it would be good to have some agreement before I release gosmore :
1. Add a <routing> tag, e.g.  <routing goods="110" hgv="110"
motorcar="120" psv="110" oneway="1"/> would mean that the goods trucks
are allowed on ways of this type and their average speed 110 km/h,
while the average speed for a motorcar is 120km/h etc. These are just
defaults and can be blocked tagging the way with an approved
restriction.

You may disagree with my proposal for this tag, but it should not affect JOSM.

2. scale_max : I assume it tells the renderer at what zoom level the
way should no longer be rendered. So it seem logical to change
tertiary, unclassified, unsurfaced (and others) to at least have the
same scale_max as residential.
3. scale_max for citys and towns should be much larger (than
mini_roundabout, fuel etc)
4. scale_max for coastline (and rivers) should be much larger.

If my interpretation of scale_max is incorrect, I should perhaps start
using a different that will not affect JOSM ?

Email me if you want to see the actual file or a diff.

Regards,
Nic




More information about the josm-dev mailing list