Heron.widgets.search.SpatialSearchPanel

Extends
xtype
hr_spatialsearchpanel
class Heron.widgets.search.SpatialSearchPanel(config)

bstract base class for specific spatial queries. This class itself cannot be nstantiated, use subclasses like the Heron.widgets.search.SearchByDrawPanel.

Example Use

This is an abstract base class that cannot be used directly. See examples in subclasses like the Heron.widgets.search.SearchByDrawPanel and the Heron.widgets.search.SearchByFeaturePanel..

Config Options

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

description

String Default description in status area.

downloadFormats

Array Optional array of explicit download formats (mainly GeoServer-only) to set or overrule any downloadFormats in the Layer metadata.wfs properties. Default is null (taking possible values from the Layer metadata).

filterFeatures

Array Features from last external Search. Default null

lastSearchName

String Name of last Search (UNUSED). Default null

layerFilter

Function Filter for OpenLayer getLayersBy(), to filter out WFS-enabled Layers from Layer array. Default: only Layers that have metadata.wfs (see OpenLayers Layer spec and examples) set.

layerSortOrder

String How should the layer names be sorted in the selector, ‘ASC’, ‘DESC’ or null (as Map order)? default value is ‘ASC’ (Alphabetically Ascending).

maxFilterGeometries

Integer Max features to use for Search selection. Default 24

name

String Name, e.g. for multiple searches combo.

selectLayerStyle

Object OpenLayers Style config to use for features Selection Layer. Default reddish

Public Methods

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

SpatialSearchPanel.onBeforeDestroy()

Called just before Panel is destroyed.

SpatialSearchPanel.onBeforeHide()

Called just before Panel is hidden.

SpatialSearchPanel.onDrawingComplete()

Called when feature drawn selected.

SpatialSearchPanel.onLayerSelect()

Called when Layer selected.

SpatialSearchPanel.onSearchCanceled()

Function called when search is canceled.

SpatialSearchPanel.onSearchComplete()

Function to call when search is complete. Default is to show “Search completed” with feature count on progress label.

SpatialSearchPanel.onSearchIssued()

Called when remote search (WFS) query has started.

SpatialSearchPanel.onSearchSuccess()

Function called when search is complete and succesful. Default is to show “Search completed” with feature count on progress label.

SpatialSearchPanel.search()

Issue spatial search via WFS.

SpatialSearchPanel.searchAbort()

Abort/cancel spatial search via WFS.