[Users] checkbox in BaseLayerContainer

Simone Dalmasso simone.dalmasso at gmail.com
Mon Oct 5 17:05:12 CEST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20091005/aea62fa6/attachment.htm 


More information about the Users mailing list