Heron

Table Of Contents

Previous topic

Heron.widgets.IFramePanel

Next topic

Heron.widgets.LayerLegendPanel

Heron.widgets.LayerCombo

Extends
xtype
hr_layercombo

Example Use

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”,

layerFilter: function (map) {
return map.getLayersByClass(‘OpenLayers.Layer.WMS’);
}
}

Config Options

Configuration properties in addition to those listed for Ext.form.ComboBox.

emptyText

See http://www.dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText, default value is “Choose a Base Layer”.

listWidth

See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth, default value is 140.

map

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.

store

GeoExt.data.LayerStore A configured LayerStore

tooltip

See http://www.dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText, default value is “Basemaps”.

width

See http://www.dev.sencha.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width, default value is 140.