only write out LegendURL in OWSContext format if present, p=hbruch, r=me (closes #3045)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11629 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2011-03-07 01:14:55 +00:00
parent 99e51364e5
commit 57191f5fd2

View File

@@ -440,7 +440,9 @@ OpenLayers.Format.OWSContext.v0_3_1 = OpenLayers.Class(OpenLayers.Format.XML, {
var node = this.createElementNSPlus("Style");
this.writeNode("Name", style, node);
this.writeNode("Title", style, node);
this.writeNode("LegendURL", style, node);
if (style.legend) {
this.writeNode("LegendURL", style, node);
}
return node;
},
"Name": function(obj) {