cgxp.plugins.Legend

ptype
cgxp_legend
class cgxp.plugins.Legend(config)

Provides an action that opens a legend panel.

Example Use

Sample code showing how to add a Legend plugin to a gxp.Viewer:

new gxp.Viewer({
    ...
    tools: [{
        ptype: 'cgxp_legend',
        id: "legendPanel",
        actionTarget: 'center.tbar',
        toggleGroup: 'maptools'
    }]
    ...
});

Config Options

Configuration properties.

actionConfig

Object Config object for the action created by this plugin.

toggleGroup

The group this toggle button is member of.

Table Of Contents

Previous topic

cgxp.plugins.LayerTree

Next topic

cgxp.plugins.LocationChooser

This Page

Fork me on GitHub