Heron

Table Of Contents

Previous topic

Heron.widgets.LayerCombo

Next topic

Heron.widgets.LayerTreePanel

Heron.widgets.LayerLegendPanel

Extends
xtype
hr_layerlegendpanel
class Heron.widgets.LayerLegendPanel(config)

A panel designed to hold legends for Map Layers (WMS GetLegendGraphic results). Optionally enable prefetching Legends before Layer becomes visible.

 items: [
        {
                xtype: 'hr_layerlegendpanel',
                defaults: {
                        useScaleParameter : false,
                        baseParams: {
                            // Override default image/gif in WMS GetLegendGraphic
                                FORMAT: 'image/png'
                        }
                },
                hropts: {
                        // Preload Legends on initial startup
                        // Will fire WMS GetLegendGraphic's for WMS Legends
                        // Otherwise Legends will be loaded only when Layer
                        // becomes visible. Default: false
                        prefetchLegends: false
                }
        }
]

Config Options

Configuration properties in addition to those listed for GeoExt.LegendPanel.

defaults

Optional parameters to add to the legend url, this can e.g. be used to support vendor-specific parameters in a SLD WMS GetLegendGraphic request. To override the default MIME type of image/gif use the FORMAT parameter in defaults.baseParams. See GeoExt WMSLegend.js