#700: A small patch to let the user specify the linecap style of a feature.

Thanks, fredj! 


git-svn-id: http://svn.openlayers.org/trunk/openlayers@3204 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-05-30 13:07:45 +00:00
parent 2dd7a8d4b9
commit 4d553f5a38
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -179,6 +179,7 @@ OpenLayers.Renderer.SVG.prototype =
node.setAttributeNS(null, "stroke", style.strokeColor);
node.setAttributeNS(null, "stroke-opacity", style.strokeOpacity);
node.setAttributeNS(null, "stroke-width", style.strokeWidth);
node.setAttributeNS(null, "stroke-linecap", style.strokeLinecap);
} else {
node.setAttributeNS(null, "stroke", "none");
}
+1
View File
@@ -166,6 +166,7 @@ OpenLayers.Renderer.VML.prototype =
node.appendChild(stroke);
}
stroke.setAttribute("opacity", style.strokeOpacity);
stroke.setAttribute("endcap", !style.strokeLinecap || style.strokeLinecap == 'butt' ? 'flat' : style.strokeLinecap);
}
if (style.cursor) {