Divide/multiply PointSymbolizer's Size by 2 on read/write to match OpenLayers symbolizer's pointRadius. r=elemoine (closes #1545)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7160 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -222,7 +222,7 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
symbolizer.graphicOpacity = graphic.opacity;
|
||||
}
|
||||
if(graphic.size != undefined) {
|
||||
symbolizer.pointRadius = graphic.size;
|
||||
symbolizer.pointRadius = graphic.size / 2;
|
||||
}
|
||||
if(graphic.href != undefined) {
|
||||
symbolizer.externalGraphic = graphic.href;
|
||||
@@ -772,7 +772,7 @@ OpenLayers.Format.SLD.v1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
||||
this.writeNode(node, "Opacity", symbolizer.graphicOpacity);
|
||||
}
|
||||
if(symbolizer.pointRadius != undefined) {
|
||||
this.writeNode(node, "Size", symbolizer.pointRadius);
|
||||
this.writeNode(node, "Size", symbolizer.pointRadius * 2);
|
||||
}
|
||||
if(symbolizer.rotation != undefined) {
|
||||
this.writeNode(node, "Rotation", symbolizer.rotation);
|
||||
|
||||
Reference in New Issue
Block a user