camptocamp/cgxp — pull request #528 by asaunier (2013-07-24 10:28:14+00:00)
Title: Make sure the legend panel uses a GLG when a layer has no static icon

As for now, if a layer has a static icon set in the admin interface, all the other layers contained in the same layergroup will incorrectly been attributed the same icon in the legend panel if they don't have themselves a static icon. The correct behaviour would be to make a GetLegendGraphic request for those layers.

The current PR deactivates a default behaviour in GeoExt that uses the default styles provided with a given OL layer when no specific style can be found for a given legend node.
See https://github.com/geoext/geoext/blob/master/lib/GeoExt/widgets/WMSLegend.js#L143