[OSM-talk] Using Osmarender to hilight Relation/Routes?

Simon Wood simon at mungewell.org
Tue May 27 06:38:27 BST 2008


On Fri, 16 May 2008 14:40:15 -0400 (EDT)
simon at mungewell.org wrote:

> Does just rendering an extra layer above 'layer=9' make sense? The SVG
> path (representing the way) could be made translucent to avoid masking
> stuff below.
> 
> The ability to selectively highlight Relation/Routes, or set different
> characteristics would be nice too :-).
> 

The attached patch adds an additional layer to the resultant SVG containing the start of a RelationRoute solution.

The layer is controlled by two variables in the map-features-file:
showRelationRoute = ['no' (default if absent) | 'yes' | '1234' (specfic RelationRoute with ID '1234')]
showRelationRouteFade = ['no' (default if absent) | 'yes' (100% fade - ie underlying map invisible| '0.0' (no fade) through '1.0' (100% fade)]

At present the ways on the new layer do not have any style and thus render a bit funny, so I would appreciate any suggestions. Ideally this could/would be controlled from the map-features-file, using any of the RelationRoute tags (route, name, ref, network, operator, etc).

Any objections to me checking this into SVN?
Cheers,
Simon.

PS. My XSLT skills are even worse than my python skills ;-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osmarender.xsl_20080526.diff
Type: text/x-patch
Size: 2956 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20080526/b081030d/attachment.bin>


More information about the talk mailing list