[Users] GeoExt Legend Tree , child node expanded
Andreas Hocevar
ahocevar at opengeo.org
Tue May 22 11:47:25 CEST 2012
Thomas, please provide the full example (including map and everything,
preferably something that I can run when dropping it in the examples
directory of my local checkout).
Thanks,
Andreas.
On Tue, May 22, 2012 at 11:42 AM, Thomas Colley
<it087 at neath-porttalbot.gov.uk> wrote:
> Hi Andreas
>
> Here is my code. Thanks.
>
> root: {
> nodeType: "gx_layercontainer",
> loader: {
> baseAttrs: {
> uiProvider: "custom_ui"
> },
> createNode: function(attr) {
> attr.component = {
> xtype: "gx_wmslegend",
> baseParams:
> {WIDTH:'30',HEIGHT:'30',SCALE:'0'},
> layerRecord:
> mapPanel.layers.getByLayer(attr.layer),
> showTitle: false
> }
> return GeoExt.tree.LayerLoader.prototype.createNode.call(this, attr);
> }
> }
> },
> rootVisible: false,
> lines: false
>
>
> On Tue, May 22, 2012 at 10:24 AM, Andreas wrote:
>
>> Ah I see now. Well, in the case of Karsten's tilecache layers, the
>> legendimage configuration misses the layerRecord configuration, so it
>> is not bound to a layers.
>
>> @Thomas: can you provide a minimal example that shows the issue?
>
>
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list