OpenLayers OpenLayers

Ticket #1545: 1545-r7148-A0.patch

File 1545-r7148-A0.patch, 1.1 kB (added by ahocevar, 3 months ago)
  • lib/OpenLayers/Format/SLD/v1.js

    old new  
    222222                    symbolizer.graphicOpacity = graphic.opacity; 
    223223                } 
    224224                if(graphic.size != undefined) { 
    225                     symbolizer.pointRadius = graphic.size
     225                    symbolizer.pointRadius = graphic.size / 2
    226226                } 
    227227                if(graphic.href != undefined) { 
    228228                    symbolizer.externalGraphic = graphic.href; 
     
    772772                    this.writeNode(node, "Opacity", symbolizer.graphicOpacity); 
    773773                } 
    774774                if(symbolizer.pointRadius != undefined) { 
    775                     this.writeNode(node, "Size", symbolizer.pointRadius); 
     775                    this.writeNode(node, "Size", symbolizer.pointRadius * 2); 
    776776                } 
    777777                if(symbolizer.rotation != undefined) { 
    778778                    this.writeNode(node, "Rotation", symbolizer.rotation);