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:
@@ -440,7 +440,9 @@ OpenLayers.Format.OWSContext.v0_3_1 = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
var node = this.createElementNSPlus("Style");
|
var node = this.createElementNSPlus("Style");
|
||||||
this.writeNode("Name", style, node);
|
this.writeNode("Name", style, node);
|
||||||
this.writeNode("Title", style, node);
|
this.writeNode("Title", style, node);
|
||||||
this.writeNode("LegendURL", style, node);
|
if (style.legend) {
|
||||||
|
this.writeNode("LegendURL", style, node);
|
||||||
|
}
|
||||||
return node;
|
return node;
|
||||||
},
|
},
|
||||||
"Name": function(obj) {
|
"Name": function(obj) {
|
||||||
|
|||||||
Reference in New Issue
Block a user