Hi Holger, it should not be mandatory.
Can you please open up a Trac ticket with your findings? TIA. Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Feb 7, 2011, at 2:20 PM, hbruch wrote: > > Dear all, > > I'm trying to write a map via OWSContext and receive a "TypeError: options > is undefined". Apparently my layers style is suspected to have a legendURL, > which is not the case. Is legendURL mandatory for OWSContext? > > Otherwise, changing the Style-Writer in v0_3_1.js as below would work for > me. > > "Style": function(style) { > var node = this.createElementNSPlus("Style"); > this.writeNode("Name", style, node); > this.writeNode("Title", style, node); > // only write LegendURL if it's known: > if (style.legend) this.writeNode("LegendURL", style, node); > return node; > } > > > Best regards, > Holger > > -- > View this message in context: > http://osgeo-org.1803224.n2.nabble.com/Writing-OWSContext-fails-if-style-has-no-legend-tp6000244p6000244.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
