Lachlan<br>I've been looking for a method of doing this for some time.<br><br>Ideally what is needed is a method of offsetting a path.  It's possible to offset text using the dy attribute as you have already noticed.  AFAIK there is no similar method of offsetting the path itself.  The problem is fundamentally an SVG problem, if you can find a way of creating SVG that will do the job then Osmarender can be modified to generate the appropriate SVG instructions.
<br><br><div><span class="gmail_quote">You could try asking for some inspriation on the SVG irc channel (<a href="http://irc.freenode.net">irc.freenode.net</a> #svg) people there sometimes have some good ideas.<br><br>80n
<br><br><br><br><br><br>On 6/29/07, <b class="gmail_sendername">Lachlan Rogers</b> <<a href="mailto:lachlan@rogers.name">lachlan@rogers.name</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm playing around with rendering cycling maps from the OSM data, and want to work a neat way to render cycle lanes on roads.<br><br>There are many instances where the cycle lane is only one one side of the road, and there are some suggestions for tagging this situation at 
<a href="http://wiki.openstreetmap.org/index.php/Cycleway">http://wiki.openstreetmap.org/index.php/Cycleway</a><br><br>I am wondering if there is some way to render a stroke off-set slightly from the actual path.  If I could do this, then I could make something like a second "casing" for the road that was off-centre and so only appeared out from under the "core" of the road on one side.  Looking through the osmarender files, I've found a thing called "translation" that might be what I'm looking for (I think that the dy used for road names might be something similar to what I want).  Unfortunately I don't yet follow the syntax enough to implement my idea.
<br><br>Is my idea feasible?  How should I go about it?<br><br>Thanks,<br>Lachlan<br><br>_______________________________________________<br>dev mailing list<br><a href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>
<br><a href="http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev">http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev</a><br></blockquote></div><br>