Sample code showing how to configure a Heron LayerCombo. Note the main config layerFilter, a function to select a subset of Layers from the Map. Default is all Map Layers. When a Layer is selected the ‘selectlayer’ event is fired.
{ xtype: “hr_layercombo”, id: “hr_layercombo”,
Configuration properties in addition to those listed for Ext.form.ComboBox.
See http://www.dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText, default value is “Choose a Base Layer”.
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth, default value is 140.
OpenLayers.Map or Object A configured map or a configuration object for the map constructor, required only if zoom is set to value greater than or equal to 0.
GeoExt.data.LayerStore A configured LayerStore
See http://www.dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText, default value is “Basemaps”.
See http://www.dev.sencha.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width, default value is 140.