<div dir="ltr">Hi all,<div><br></div><div>I'm building a tree panel similar to the example LegendTree. So far so good, I'm able to use gx_wmslegend ctype to show the legend below each node in the tree.</div><div>However there is a case where i need to override the legendURL and point it to a specific image instead of using the default GetLegendGraphic.</div><div><br></div><div>I have sucessfully implemented this override in a GeoExt.panel.Legend by "manually" seting the layer record legendurl field [eg: layerRec.set("legendURL", rec.data.legURL);]</div><div><br></div><div>When trying the same approach on th gx_wmslegend it doesn't work. I was reading through the docs of this xtype and it states that <span style="color:rgb(72,72,72);font-family:HelveticaNeue,helvetica,arial,clean,sans-serif;font-size:13px;line-height:19.5px">the image can be read from the styles field of a layer record</span></div><div><br></div><div>When looking at the layerModel i cannot see this field defined. So my question would be, where should i set this styles field? GeoExt layer record? Openlayers layer record? How would it look like?</div><div><br></div><div>Thanks in advance.</div><div>Cheers,</div><div><br></div><div><div><br></div>-- <br>Hugo Martins<br>
</div></div>