--- In svg-developers@yahoogroups.com, Erik Dahlström <[EMAIL PROTECTED]> wrote: > > On Thu, 06 Jul 2006 17:55:59 +0200, sent1729 <[EMAIL PROTECTED]> wrote: > > > Yes, > > > > But the stoke does not add any border to the polyline. It just > > strokes the polyline with a specified color and a stroke width. > > > > Say for a polyline of Stroke "white" with stroke width "10", I would > > like to draw a "black" border of stroke width 2, around the white > > polyline. > > > > Nathan. > > There is no operation in SVG (yet) that allows you to stroke the stroke. > You could perhaps make something that looks like it by remaking the > polyline into a path shape, so that it can have both a fill and a stroke. > Another way might be to have two polylines overlap, one with the > stroke-width=10 and the other with stroke-width=2, but it's not really the > same. > > Hope this helps > /Erik > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ >
Here is a simple way to do it (also Andreas Neumann's idea). I reversed the white and red colors so it is easier to see: <svg id="udlogo" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <path id="road_1" d="M 5,5 25,25 25,50 100,100" /> </defs> <g fill="none"> <use xlink:href="#road_1" stroke="red" stroke-width="14" /> <use xlink:href="#road_1" stroke="white" stroke-width="10"/> </g> </svg> Send your roads data in the <defs> section as paths then stroke them with each color with a use tag. Bruce Rindahl ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/