Changeset 6317
- Timestamp:
- 02/17/08 09:49:37 (10 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Renderer/Elements.js (modified) (2 diffs)
- trunk/openlayers/lib/OpenLayers/Renderer/VML.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Renderer/Elements.js
r5772 r6317 41 41 */ 42 42 xmlns: null, 43 44 /** 45 * Property: minimumSymbolizer 46 * {Object} 47 */ 48 minimumSymbolizer: { 49 strokeLinecap: "round", 50 strokeOpacity: 1, 51 fillOpacity: 1, 52 pointRadius: 0 53 }, 43 54 44 55 /** … … 162 173 drawGeometryNode: function(node, geometry, style) { 163 174 style = style || node._style; 175 OpenLayers.Util.applyDefaults(style, this.minimumSymbolizer); 164 176 165 177 var options = { trunk/openlayers/lib/OpenLayers/Renderer/VML.js
r6161 r6317 198 198 fill = this.createNode('v:fill', node.id + "_fill"); 199 199 } 200 201 if (style.fillOpacity) { 202 fill.setAttribute("opacity", style.fillOpacity); 203 } 200 fill.setAttribute("opacity", style.fillOpacity); 204 201 205 202 if (node._geometryClass == "OpenLayers.Geometry.Point" && … … 243 240 node.appendChild(stroke); 244 241 } 245 if (style.strokeOpacity) { 246 stroke.setAttribute("opacity", style.strokeOpacity); 247 } 242 stroke.setAttribute("opacity", style.strokeOpacity); 248 243 stroke.setAttribute("endcap", !style.strokeLinecap || style.strokeLinecap == 'butt' ? 'flat' : style.strokeLinecap); 249 244 } … … 411 406 */ 412 407 drawCircle: function(node, geometry, radius) { 413 if (typeof radius == "undefined") {414 radius = 0;415 }416 408 if(!isNaN(geometry.x)&& !isNaN(geometry.y)) { 417 409 var resolution = this.getResolution();
