cgxp.plugins.WMSBrowser

ptype
cgxp_wmsbrowser
class cgxp.plugins.WMSBrowser(config)

This plugin provides an “Add WMS layer” button. Note: OpenLayers.ProxyHost must be set !

Example Use

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

new gxp.Viewer({
    ...
    tools: [{
        ptype: 'cgxp_wmsbrowser',
        actionTarget: "center.tbar",
        layerTreeId: "layertree",
        defaultUrls: [
            'http://wms.geo.admin.ch'
        ]
    }]
    ...
});

Config Options

Configuration properties.

actionConfig

Object Config object for the action created by this plugin.

buttonText

String The “Add WMS” button text (i18n)

defaultUrls

Array(String) The list of WMS services urls to be displayed in the layer combobox.

layerTreeId
String Id of the layertree tool (optional).
If specified, layers are added to the layertree in a dedicated group
windowTitleText

String The “Add WMS layers” window title text (i18n).

Table Of Contents

Previous topic

cgxp.plugins.WFSPermalink

Next topic

cgxp.plugins.Zoom

This Page

Fork me on GitHub