[Users] checkbox in BaseLayerContainer
Simone Dalmasso
simone.dalmasso at gmail.com
Mon Oct 5 17:20:26 CEST 2009
Yes! I'm using the 0.5 version. I'll check out the trunk. Thanks a lot.
Simone
2009/10/5 Andreas Hocevar <ahocevar at opengeo.org>
> Hi Simone,
>
> are you working with GeoExt 0.5? Radio buttons for base layers were
> introduced later, so you may want to check out the latest trunk version
> or wait for the 0.6 release which should be out in a couple of days.
>
> Regards,
> Andreas.
>
> Simone Dalmasso wrote:
> > Hi list, I'm trying to put a baseLayerContainer in a Treepanel
> > rendered in the viewport. At this time is working but it shows a
> > checkbox instead of the radio button.
> > Here follows part of my code:
> >
> > /var layerReader = new GeoExt.data.LayerReader();
> > var mapLayers = layerReader.readRecords(map.layers);
> >
> > var layerStore = new GeoExt.data.LayerStore({
> > map: map,
> > layers: mapLayers
> > });
> >
> > var layerContainer = new GeoExt.tree.BaseLayerContainer({
> > layerStore: layerStore,
> > expanded: true
> > });/
> >
> > and in the viewport:
> >
> > /{
> > region: 'west',
> > contentEl: 'west',
> > width: 150,
> > margins: '0 0 0 0',
> > items: [{
> > xtype: 'treepanel',
> > border: false,
> > animate: true,
> > root: layerContainer
> > }/
> >
> > Is there something wrong?
> >
> > Thamks in advance
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at geoext.org
> > http://www.geoext.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091005/db578127/attachment.htm
More information about the Users
mailing list