Changeset 6270
- Timestamp:
- 02/14/08 12:41:37 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/achipa/openlayers/lib/OpenLayers/Layer/TimedPointTrack.js
r6269 r6270 67 67 strokeLinecap: "round", 68 68 pointRadius: 6, 69 pointStyle: " dot"69 pointStyle: "square" 70 70 }, 71 71 /** sandbox/achipa/openlayers/lib/OpenLayers/Renderer/SVG.js
r6180 r6270 219 219 } else { 220 220 node.setAttributeNS(null, "r", style.pointRadius); 221 if (style.pointStyle == " pixel"){222 node.setAttributeNS(null, "point ", "pixel");221 if (style.pointStyle == "square"){ 222 node.setAttributeNS(null, "pointStyle", "square"); 223 223 } 224 224 } … … 318 318 */ 319 319 drawPoint: function(node, geometry) { 320 this.drawCircle(node, geometry, 1); 320 if (node._style.pointStyle == "square") { 321 alert('ZQVARE'); 322 this.drawRectangle(node, {x: geometry.x, y: geometry.y, width: node.getAttributeNS(null, "r"), height: node.getAttributeNS(null, "r")}) 323 } else { 324 this.drawCircle(node, geometry, 1); 325 } 321 326 }, 322 327
