[Users] checkbox in BaseLayerContainer

Andreas Hocevar ahocevar at opengeo.org
Mon Oct 5 17:17:59 CEST 2009


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.



More information about the Users mailing list