- Fix bug in WMS 1.1.1 re: STYLES support.

This commit is contained in:
Jean-Francois Doyon 2006-07-23 19:56:13 +00:00
parent 9d9d441239
commit 6f7d9eab8a

View file

@ -155,7 +155,7 @@ class ServiceHandler(WMSBaseServiceHandler):
layere.append(latlonbb) layere.append(latlonbb)
layere.append(layerbbox) layere.append(layerbbox)
if len(layer.wmsextrastyles) > 0: if len(layer.wmsextrastyles) > 0:
for extrastyle in list(layer.wmsextrastyles): for extrastyle in [layer.wmsdefaultstyle] + list(layer.wmsextrastyles):
style = ElementTree.Element('Style') style = ElementTree.Element('Style')
stylename = ElementTree.Element('Name') stylename = ElementTree.Element('Name')
stylename.text = extrastyle stylename.text = extrastyle