A panel designed to hold a spatial search .
Sample code showing how to configure a Heron SpatialSearchPanel.
Heron.examples.searchPanelConfig = {
xtype: 'hr_searchcenterpanel',
id: 'hr-searchcenterpanel',
title: __('Search'),
height: 600,
hropts: {
searchPanel: {
xtype: 'hr_spatialsearchpanel',
id: 'hr-spatialsearchpanel',
header: false,
bodyStyle: 'padding: 6px',
style: {
fontFamily: 'Verdana, Arial, Helvetica, sans-serif',
fontSize: '12px'
},
hropts: {
layerFilter: function (map) {
return map.getLayersByClass('OpenLayers.Layer.WMS');
},
onSearchCompleteZoom: 10
}
},
resultPanel: {
xtype: 'hr_featuregridpanel',
id: 'hr-featuregridpanel',
title: __('Search'),
header: false,
autoConfig: true,
hropts: {
zoomOnRowDoubleClick: true,
zoomOnFeatureSelect: false,
zoomLevelPointSelect: 8,
zoomToDataExtent: true
}
}
}
};
Public methods in addition to those listed for GeoExt.form.FormPanel.
Called just before Panel is destroyed.
Called when feature drawn selected.
Called when Layer selected.
Called when Panel has been rendered.
Called when parent Panel is hidden in Container.
Called when parent Panel is shown in Container.
Function to call when search is complete. Default is to show “Search completed” with feature count on progress label.
Called when remote search (WFS) query has started.
Issue spatial search via WFS.
Issue spatial search via WFS.