Heron

Table Of Contents

Previous topic

Heron.widgets.ActiveLayersPanel

Next topic

Heron.widgets.ContextBrowserPanel

Heron.widgets.CapabilitiesTreePanel

Extends
xtype
hr_CapabilitiesTreePanel
class Heron.widgets.CapabilitiesTreePanel(config)

A panel designed to hold trees of Map Layers from a WMS Capabilties.

Example Use

Sample code showing how to include a CapabilitiesTreePanel that automatically configures a layer tree from a WMS URL by doing a GetCapabilities and using the result to build the layertree.

.
.
{
        xtype: 'panel',

        id: 'hr-menu-left-container',
                .
                .
        items: [
                {
                        // The TreePanel to be populated from a GetCapabilities request.
                        title: 'Layers',
                        xtype: 'hr_capabilitiestreepanel',
                        autoScroll: true,
                        useArrows: true,
                        animate: true,
                        hropts: {
                                text: 'GetCaps Tree Panel',
                                preload: true,
                                url: 'http://eusoils.jrc.ec.europa.eu/wrb/wms_Landuse.asp?'
                        }},

                {
                       .
                       .
                }
        ]
},
{
        // The MapPanel
        xtype: 'hr_mappanel',
        id: 'hr-map',
        region: 'center',
        .
        .