Widget that send GetFeature requests when a box is drawn on the map. Only visible layers are queried.
To display the query results, the widget must use one or more of theses widgets :
Note
This widget can’t be drawn with the drawWidget template. Instead, it must be added to one of the toolbar widgets :
Note
When added to the GeoExtToolbar, a dropDown is created. Its content gets populated by the following information (only one, in priority order) :
Sample configuration
<querybyrect>
<name>W_MyQuerybyrect</name>
<options>
<results>
<result>W_MyResultExtGrid</result>
</results>
</options>
</querybyrect>
Having a single <result> tag if only one result is used by the widget is also okay :
<querybyrect>
<name>W_MyQuerybyrect</name>
<options>
<result>W_MyResultExtGrid</result>
</options>
</querybyrect>
Configuration with “resetOnDeactivation” set to all
<querybyrect>
<name>W_MyQuerybyrect</name>
<options>
<resetOnDeactivation>all</resetOnDeactivation>
<results>
<result>W_MyResultExtGrid</result>
</results>
</options>
</querybyrect>
This widget must be added to a GeoExtToolbar widget
<geoexttoolbar>
<name>W_GeoExtToolbar</name>
<options>
<widgets>
<widget>W_MyQuerybyrect</widget>
</widgets>
</options>
</geoexttoolbar>
results: | Contains <result> tags if you wish to use more than one result. Either ‘results’ or ‘result’ is mandatory. |
---|---|
result: | Name of a result widget that will be used to contain the features returned by a query. Can only be used if one result is used by the query. Either ‘results’ or ‘result’ is mandatory. |
results/result: | If you want to have more than one result, you must define them in <results> tag. |
resetOnDeactivation: | |
---|---|
Determine what to reset when the widget gets deactivated. By default (when this option is ommited), it’s automatically set to “nothing”. You can set this option to (case sensitive):
|
|
dropDownList: | Can be set to true or false. Default value is true if ommited. Creates a SplitButton object if set to true instead of a regular button. |
read