Heron.widgets.ActiveLayersPanel

Extends
xtype
hr_activelayerspanel
class Heron.widgets.ActiveLayersPanel(config)

Displays a stack of selected layers from the map. The main purpose is to enable to change layer stacking (display) order, supported by standard drag-and-drop, plus manipulating individual layer opacity.

Example config with a per layer opacity-slider.

{
            xtype: 'hr_activelayerspanel',
            height: 240,
            flex: 3,
            hropts: {
                    // Defines the custom component added under the standard layer node.
                    component : {
                            xtype: "gx_opacityslider",
                            showTitle: false,
                            plugins: new GeoExt.LayerOpacitySliderTip(),
                            width: 160,
                            inverse: false,
                            aggressive: false,
                            style: {
                                    marginLeft: '18px'
                            }
                    }
            }
    }

Config Options

Configuration properties in addition to those listed for Ext.tree.TreePanel.

contextMenu

Context menu (right-click) for layer nodes, for now instance of Heron.widgets.LayerNodeContextMenu. Default value is null.

title

default value is “Active Layers”.