Table Of Contents

Previous topic

gxp.PoweredBy

Next topic

gxp.RulePanel

gxp.QueryPanel

Extends
xtype
gxp_querypanel
class gxp.QueryPanel(config)
Create a panel for assembling and issuing feature requests.

Config Options

Configuration properties in addition to those listed for Ext.Panel.

attributeQuery
Boolean Initial state of “query by attribute” checkbox. Default is false.
layerStore
Ext.data.Store A store with records representing each WFS layer to be queried. Records must have title, name (feature type), namespace (namespace URI), url (wfs url), and schema (schema url) fields.
layout
String Defaults to “form.”
map
OpenLayers.MapPanel The map to take the spatial extent for the spatialQuery from. Required.
maxFeatures
Number Optional limit for number of features requested in a query. No limit set by default.
spatialQuery
Boolean Initial state of “query by location” checkbox. Default is true.

Public Properties

Public properties in addition to those listed for Ext.Panel.

QueryPanel.attributeQuery
Boolean Query by attributes.
QueryPanel.attributeStore
GeoExt.data.AttributeStore The attributes associated with the currently selected layer.
QueryPanel.geometryType
String (Multi)?(Point|Line|Polygon|Curve|Surface|Geometry) The geometry type of features of the selected layer. If the layer has multiple geometry fields, the type of the first geometry field will be returned.
QueryPanel.spatialQuery
Boolean Query by extent.

Public Methods

Public methods in addition to those listed for Ext.Panel.

QueryPanel.getFilter()
Get the filter representing the conditions in the panel. Returns false if neither spatial nor attribute query is checked.
QueryPanel.query()
Issue a request for features. Should not be called until the “ready” event has fired. If called before ready, no query will be issued.