cgxp.plugins.FeaturesWindow

ptype
cgxp_featureswindow
class cgxp.plugins.FeaturesWindow(config)

This plugin shows query results in a window (popup) using a grouping grid.

This plugin should receive the list of themes in its config. This is to read the “identifier attribute” from the layer spec.

Example Use

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

var obs = new Ext.util.Observable();

new gxp.Viewer({
    ...
    tools: [{
        ptype: "cgxp_featureswindow",
        themes: THEMES,
        events: EVENTS
    }, {
        ptype: "cgxp_wmsgetfeatureinfo",
        actionTarget: "center.tbar",
        toggleGroup: "maptools",
        events: EVENTS
    }]
    ...
});

Config Options

Configuration properties.

events

Ext.util.Observable An Ext.util.Observable instance used to receive events from other plugins.

  • queryopen: sent on open query tool.
  • queryclose: sent on closequery tool.
  • querystarts: sent when the query button is pressed
  • queryresults(queryresult): sent when the result is received
highlightStyle

Object A style properties object to be used to show features on the map when hovering the row in the grid (optional).

itemsText

String Text for the “number of items” label (plural) (i18n).

itemText

String Text for the “number of items” label (singular) (i18n).

messageStyle

String CSS style used for the queryResult message.

showUnqueriedLayers

Bool show or hide the unqueried layers in the tabpanel, default is true.

suggestionText

String Text for the shortened notice message (i18n).

themes

Object List of internal and external themes and layers. (The same object as that passed to the cgxp.plugins.LayerTree).

windowTitleText

String Text for the window title (i18n).

Table Of Contents

Previous topic

cgxp.plugins.FeaturesResult

Next topic

cgxp.plugins.FloorSlider

This Page