@@ -204,7 +204,8 @@ class QueryPanel extends React.Component {
204204 activateSettingsTool : PropTypes . bool ,
205205 visibilityCheckType : PropTypes . string ,
206206 settingsOptions : PropTypes . object ,
207- layout : PropTypes . object
207+ layout : PropTypes . object ,
208+ toolsOptions : PropTypes . object
208209 } ;
209210
210211 static defaultProps = {
@@ -226,7 +227,8 @@ class QueryPanel extends React.Component {
226227 visibilityCheckType : "checkbox" ,
227228 settingsOptions : { } ,
228229 querypanelEnabled : false ,
229- layout : { }
230+ layout : { } ,
231+ toolsOptions : { }
230232 } ;
231233
232234 componentWillReceiveProps ( newProps ) {
@@ -275,6 +277,7 @@ class QueryPanel extends React.Component {
275277 header = { < QueryPanelHeader onToggleQuery = { this . props . onToggleQuery } /> }
276278 spatialOperations = { this . props . spatialOperations }
277279 spatialMethodOptions = { this . props . spatialMethodOptions }
280+ toolsOptions = { this . props . toolsOptions }
278281 featureTypeErrorText = { < Message msgId = "layerProperties.featureTypeError" /> } />
279282 </ div > ) ;
280283 } ;
@@ -301,15 +304,18 @@ class QueryPanel extends React.Component {
301304 * - blacklist {string[]} a list of banned words excluded from the wfs search
302305 * - maxFeatures {number} the maximum features fetched per request
303306 * - predicate {string} the cql predicate
304- * - queriableAttributes {string[]} list of attributes to query on.
305- * - typeName {string} the workspace + layer name on geosever
307+ * - querableAttributes {string[]} list of attributes to query on.
308+ * - typeName {string} the workspace + layer name on geoserver
306309 * - valueField {string} the attribute from features properties used as value/label in the autocomplete list
307310 * - srsName {string} The projection of the requested features fetched via wfs
308311 *
309312 * @prop {object[] } cfg.spatialOperations: The list of geometric operations use to create the spatial filter.<br/>
313+ * @prop {boolean } cfg.toolsOptions.hideCrossLayer force cross layer to hide
314+ * @prop {boolean } cfg.toolsOptions.hideCrossLayer force cross layer filter panel to hide (when is not used or not usable)
315+ * @prop {boolean } cfg.toolsOptions.hideSpatialFilter force spatial filter panel to hide (when is not used or not usable)
310316 *
311317 * @example
312- * // This example configure a layer with polyogns geometry as spatial filter method
318+ * // This example configure a layer with polygons geometry as spatial filter method
313319 * "spatialOperations": [
314320 * {"id": "INTERSECTS", "name": "queryform.spatialfilter.operations.intersects"},
315321 * {"id": "BBOX", "name": "queryform.spatialfilter.operations.bbox"},
@@ -339,7 +345,7 @@ class QueryPanel extends React.Component {
339345 * "queriableAttributes": ["ATTRIBUTE_X"],
340346 * "typeName": "workspace:typeName",
341347 * "valueField": "ATTRIBUTE_Y",
342- * "srsName": "ESPG :3857"
348+ * "srsName": "EPSG :3857"
343349 * },
344350 * "customItemClassName": "customItemClassName"
345351 * }
0 commit comments