0

For Base layer group I want to display radio button and for nonbaselayergroup the checkbox should be displayed. Currently for both we are getting checkbox

basicMapGroup = new ol.layer.Group({
name: 'Basic Maps',
visible: true
});

layerGroup = new ol.layer.Group({
name: 'Layers',
visible: true
});

var baselayergroup=basicMapGroup;
var nonbaselayergroup=layerGroup;
olMap = new ol.Map({
controls: ol.control.defaults({
attributionOptions: /** @type {olx.control.AttributionOptions} */ ({
collapsible: false
})
 }),
layers: [baselayergroup,nonbaselayergroup],
view: olView
});

mapComponent = Ext.create('GeoExt.component.Map', {
map: olMap
});
mapPanel = Ext.create('Ext.panel.Panel', {
region: 'center',
border: false,
layout: 'fit',
items: [mapComponent]
});
treeStore = Ext.create('GeoExt.data.store.LayersTree', {
layerGroup: olMap.getLayerGroup()
});
treePanel = Ext.create('Ext.tree.Panel', {
viewConfig: {
plugins: {ptype: 'treeviewdragdrop'}
},
store: treeStore,
rootVisible: false,
flex: 1,
border: false
});

var count=0;
Ext.create('Ext.Viewport', {
layout: 'border',
deferredRender: false,
items: [
mapPanel,
{
xtype: 'panel',
region: 'west',
title:'temp',
width:278,
split:true,
collapsible: true,
collapseMode: 'mini',
layout: {
type: 'vbox',
align: 'stretch'
},
items: [
treePanel
]
}
]
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.