OpenLayers OpenLayers

Changeset 6270

Show
Ignore:
Timestamp:
02/14/08 12:41:37 (1 year ago)
Author:
achipa
Message:

SVG ethide

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/achipa/openlayers/lib/OpenLayers/Layer/TimedPointTrack.js

    r6269 r6270  
    6767                strokeLinecap: "round", 
    6868                pointRadius: 6, 
    69                 pointStyle: "dot
     69                pointStyle: "square
    7070            }, 
    7171    /** 
  • sandbox/achipa/openlayers/lib/OpenLayers/Renderer/SVG.js

    r6180 r6270  
    219219            } else { 
    220220                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"); 
    223223                } 
    224224            } 
     
    318318     */  
    319319    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     } 
    321326    }, 
    322327