From 1cf334b396dd6f1348fd8c5e1e4d78533f73159b Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Fri, 20 Jan 2017 18:09:27 +0100 Subject: [PATCH] Enable feature grid (#1395) * Update the configuration to enable feature grid - updates the configuration to include feature grid/search by default * Deactivate query tool by default Feature Grid is not mandatory, so the query tool should not be enabled by default. --- web/client/localConfig.json | 10 +++++++++- web/client/plugins/TOC.jsx | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/web/client/localConfig.json b/web/client/localConfig.json index 4fa3a2544d..38013db94e 100644 --- a/web/client/localConfig.json +++ b/web/client/localConfig.json @@ -283,6 +283,7 @@ "collapsible": false }, "excludeOptions": [ + "search", "links", "allowedSRS", "title", @@ -317,9 +318,15 @@ } }, { "name": "Home" + },{ + "name": "FeatureGrid", + "cfg": { + "pagination": true + } }, { "name": "TOC", "cfg": { + "activateQueryTool": true, "visibilityCheckType": "glyph", "settingsOptions": { "includeCloseButton": false, @@ -611,6 +618,7 @@ "marginBottom": 0 }, "excludeOptions": [ + "search", "links", "allowedSRS", "title", @@ -651,7 +659,7 @@ "alwaysVisible": true } } - }, "FeatureGrid", { + }, { "name": "TOC", "cfg": { "visibilityCheckType": "glyph", diff --git a/web/client/plugins/TOC.jsx b/web/client/plugins/TOC.jsx index d847c7e184..6e64be6421 100644 --- a/web/client/plugins/TOC.jsx +++ b/web/client/plugins/TOC.jsx @@ -184,7 +184,7 @@ const LayerTree = React.createClass({ activateZoomTool: true, activateSettingsTool: true, activateRemoveLayer: true, - activateQueryTool: true, + activateQueryTool: false, visibilityCheckType: "checkbox", settingsOptions: {}, querypanelEnabled: false