Ticket #700: strokeLinecap.patch
| File strokeLinecap.patch, 2.0 kB (added by fredj, 1 year ago) |
|---|
-
OpenLayers/Renderer/VML.js
old new 166 166 node.appendChild(stroke); 167 167 } 168 168 stroke.setAttribute("opacity", style.strokeOpacity); 169 stroke.setAttribute("endcap", !style.strokeLinecap || style.strokeLinecap == 'butt' ? 'flat' : style.strokeLinecap); 169 170 } 170 171 171 172 if (style.cursor) { -
OpenLayers/Renderer/SVG.js
old new 177 177 node.setAttributeNS(null, "stroke", style.strokeColor); 178 178 node.setAttributeNS(null, "stroke-opacity", style.strokeOpacity); 179 179 node.setAttributeNS(null, "stroke-width", style.strokeWidth); 180 node.setAttributeNS(null, "stroke-linecap", style.strokeLinecap); 180 181 } else { 181 182 node.setAttributeNS(null, "stroke", "none"); 182 183 } -
OpenLayers/Feature/Vector.js
old new 206 206 strokeColor: "#ee9900", 207 207 strokeOpacity: 1, 208 208 strokeWidth: 1, 209 strokeLinecap: "round", 209 210 hoverStrokeColor: "red", 210 211 hoverStrokeOpacity: 1, 211 212 hoverStrokeWidth: 0.2, … … 222 223 strokeColor: "blue", 223 224 strokeOpacity: 1, 224 225 strokeWidth: 2, 226 strokeLinecap: "round", 225 227 hoverStrokeColor: "red", 226 228 hoverStrokeOpacity: 1, 227 229 hoverStrokeWidth: 0.2, … … 238 240 hoverFillOpacity: 0.8, 239 241 strokeColor: "yellow", 240 242 strokeOpacity: 1, 243 strokeLinecap: "round", 241 244 strokeWidth: 4, 242 245 hoverStrokeColor: "red", 243 246 hoverStrokeOpacity: 1,
