[OpenLayers-Commits] r11629 - trunk/openlayers/lib/OpenLayers/Format/OWSContext

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sun Mar 6 20:14:58 EST 2011


Author: bartvde
Date: 2011-03-06 17:14:55 -0800 (Sun, 06 Mar 2011)
New Revision: 11629

Modified:
   trunk/openlayers/lib/OpenLayers/Format/OWSContext/v0_3_1.js
Log:
only write out LegendURL in OWSContext format if present, p=hbruch, r=me (closes #3045)

Modified: trunk/openlayers/lib/OpenLayers/Format/OWSContext/v0_3_1.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Format/OWSContext/v0_3_1.js	2011-03-07 00:19:16 UTC (rev 11628)
+++ trunk/openlayers/lib/OpenLayers/Format/OWSContext/v0_3_1.js	2011-03-07 01:14:55 UTC (rev 11629)
@@ -440,7 +440,9 @@
                 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) {



More information about the Commits mailing list