diff --git a/web/client/components/data/identify/Identify.jsx b/web/client/components/data/identify/Identify.jsx index 27cfe77c5a..5a064c595b 100644 --- a/web/client/components/data/identify/Identify.jsx +++ b/web/client/components/data/identify/Identify.jsx @@ -46,7 +46,7 @@ const Identify = React.createClass({ changeMousePointer: React.PropTypes.func, maxItems: React.PropTypes.number, excludeParams: React.PropTypes.array, - excludeOptions: React.PropTypes.array, + includeOptions: React.PropTypes.array, showRevGeocode: React.PropTypes.func, hideRevGeocode: React.PropTypes.func, showModalReverse: React.PropTypes.bool, @@ -99,7 +99,12 @@ const Identify = React.createClass({ layers: [], maxItems: 10, excludeParams: ["SLD_BODY"], - excludeOptions: ["origin"], + includeOptions: [ + "buffer", + "cql_filter", + "filter", + "propertyName" + ], panelClassName: "panel default-panel", headerClassName: "panel-heading", bodyClassName: "panel-body", @@ -227,10 +232,10 @@ const Identify = React.createClass({ return false; }, filterRequestParams(layer) { - let excludeOpt = this.props.excludeOptions || []; + let includeOpt = this.props.includeOptions || []; let excludeList = this.props.excludeParams || []; let options = Object.keys(layer).reduce((op, next) => { - if (next !== "params" && excludeOpt.indexOf(next) === -1) { + if (next !== "params" && includeOpt.indexOf(next) !== -1) { op[next] = layer[next]; }else if (next === "params" && excludeList.length > 0) { let params = layer[next]; diff --git a/web/client/components/data/identify/__tests__/Identify-test.jsx b/web/client/components/data/identify/__tests__/Identify-test.jsx index 7f00afc8fa..0f701cf3be 100644 --- a/web/client/components/data/identify/__tests__/Identify-test.jsx +++ b/web/client/components/data/identify/__tests__/Identify-test.jsx @@ -270,7 +270,7 @@ describe('Identify', () => { const identify = ReactDOM.render( true} point={{latlng: {lat: 40, lng: 10}}} diff --git a/web/client/examples/styler/localConfig.json b/web/client/examples/styler/localConfig.json index 2c3b27e6b9..e1a72c5933 100644 --- a/web/client/examples/styler/localConfig.json +++ b/web/client/examples/styler/localConfig.json @@ -10,12 +10,6 @@ "className": "square-button", "closeGlyph": "1-close", "enableRevGeocode": true, - "excludeOptions": [ - "legend", - "statistics", - "columnDefs", - "advancedFilter" - ], "glyph": "map-marker", "headerClassName": "modal-header", "headerGlyph": "", @@ -95,4 +89,4 @@ "printUrl": "http://demo.geo-solutions.it/geoserver/pdf/info.json", "proxyUrl": "/mapstore/proxy/?url=", "translationsPath": "../../translations" -} \ No newline at end of file +} diff --git a/web/client/localConfig.json b/web/client/localConfig.json index 810001ce40..8d5a096dd2 100644 --- a/web/client/localConfig.json +++ b/web/client/localConfig.json @@ -281,25 +281,7 @@ "continuous": false }, "collapsible": false - }, - "excludeOptions": [ - "search", - "links", - "allowedSRS", - "title", - "type", - "visibility", - "params", - "legend", - "statistics", - "columnDefs", - "advancedFilter", - "boundingBox", - "capabilities", - "describeCoverage", - "describeLayer", - "loading" - ] + } } }, "MadeWithLove", @@ -618,25 +600,6 @@ "maxHeight": "70%", "marginBottom": 0 }, - "excludeOptions": [ - "search", - "links", - "allowedSRS", - "title", - "type", - "visibility", - "params", - "legend", - "statistics", - "columnDefs", - "advancedFilter", - "boundingBox", - "capabilities", - "describeCoverage", - "describeLayer", - "loading" - - ], "draggable": false, "collapsible": true, "viewerOptions": {