Polyline Material, Shader, LineSegments

Hi,

I’m Newbie in shading a material and writing shaders. I have the following question, I’m using an image for texture of a polyline. You can see in the sandcastle, that I have problems at the end and start of the linesegments. Can anyone help to position the svg-texture within the linesegment, i.e. plotting a straight line at the beginning or end, so that the pattern is not broken - is this possible ?
Also the flickr of the pattern could be observed - see (Polyline Flickr if Camera moved), if I move left or right.

Rüdiger