OpenLayers OpenLayers

Changeset 9537

Show
Ignore:
Timestamp:
07/03/09 16:25:19 (9 months ago)
Author:
august
Message:

to support strokeLinecap and strokeLineJoin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/august/openlayers/2.8+/lib/OpenLayers/Format/SLD/v1.js

    r9487 r9537  
    5252        strokeWidth: 1, 
    5353        strokeDashstyle: "solid", 
    54         pointRadius: 3, 
     54        // add support for strokeLinecap and strokeLineJoin  
     55        strokeLinecap: "round", 
     56        strokeLinejoin: "round", 
     57        // 
     58        pointRadius: 3, 
    5559        graphicName: "square" 
    5660    }, 
     
    337341        "stroke-width": "strokeWidth", 
    338342        "stroke-linecap": "strokeLinecap", 
     343        "stroke-linejoin": "strokeLinejoin", 
    339344        "stroke-dasharray": "strokeDashstyle", 
    340345        "fill": "fillColor", 
     
    667672                    ); 
    668673                } 
     674                // add support for strokeLinecap and strokeLineJoin 
     675                if(symbolizer.strokeLinejoin != undefined) { 
     676                    this.writeNode( 
     677                        "CssParameter", 
     678                        {symbolizer: symbolizer, key: "strokeLinejoin"}, 
     679                        node 
     680                    ); 
     681                } 
     682                if(symbolizer.strokeLinecap != undefined) { 
     683                    this.writeNode( 
     684                        "CssParameter", 
     685                        {symbolizer: symbolizer, key: "strokeLinecap"}, 
     686                        node 
     687                    ); 
     688                }  
    669689                return node; 
    670690            },