Stroke style of features can now be specified. Both SVG's
stroke-dasharray and VML's dashstyle properties are allowed in the new strokeDashstyle symbolizer property. For VML, which does not support custom dash styles, one of the 5 matching pre-defined dash styles will be guessed. The patch also adds support for the stroke-dasharray property in SLD. r=crschmidt (closes #1126) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7673 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -308,7 +308,8 @@ OpenLayers.Feature.Vector = OpenLayers.Class(OpenLayers.Feature, {
|
||||
* - strokeColor: "#ee9900",
|
||||
* - strokeOpacity: 1,
|
||||
* - strokeWidth: 1,
|
||||
* - strokeLinecap: "round",
|
||||
* - strokeLinecap: "round", [butt | round | square]
|
||||
* - strokeDashstyle: "solid", [dot | dash | dashdot | longdash | longdashdot | solid]
|
||||
* - hoverStrokeColor: "red",
|
||||
* - hoverStrokeOpacity: 1,
|
||||
* - hoverStrokeWidth: 0.2,
|
||||
@@ -339,6 +340,7 @@ OpenLayers.Feature.Vector.style = {
|
||||
strokeOpacity: 1,
|
||||
strokeWidth: 1,
|
||||
strokeLinecap: "round",
|
||||
strokeDashstyle: "solid",
|
||||
hoverStrokeColor: "red",
|
||||
hoverStrokeOpacity: 1,
|
||||
hoverStrokeWidth: 0.2,
|
||||
@@ -357,6 +359,7 @@ OpenLayers.Feature.Vector.style = {
|
||||
strokeOpacity: 1,
|
||||
strokeWidth: 2,
|
||||
strokeLinecap: "round",
|
||||
strokeDashstyle: "solid",
|
||||
hoverStrokeColor: "red",
|
||||
hoverStrokeOpacity: 1,
|
||||
hoverStrokeWidth: 0.2,
|
||||
@@ -375,6 +378,7 @@ OpenLayers.Feature.Vector.style = {
|
||||
strokeOpacity: 1,
|
||||
strokeLinecap: "round",
|
||||
strokeWidth: 4,
|
||||
strokeDashstyle: "solid",
|
||||
hoverStrokeColor: "red",
|
||||
hoverStrokeOpacity: 1,
|
||||
hoverStrokeWidth: 0.2,
|
||||
|
||||
Reference in New Issue
Block a user