Skip to content

Commit

Permalink
feat(config): add query autohide option
Browse files Browse the repository at this point in the history
Relates #8618
  • Loading branch information
alyec committed Apr 1, 2015
1 parent 5542fb5 commit b6255bb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,5 @@
"windParse.js",
"epsgio.js"
],

"mapInitFailUrl": "./error-@@page.lang.main.html"
}
3 changes: 2 additions & 1 deletion src/configSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,8 @@
"type": "object",
"description": "State of the map query button in the toolbar",
"properties": {
"show": { "type": "boolean", "default": true, "description": "If the button should be displayed to the user." }
"show": { "type": "boolean", "default": true, "description": "If the button should be displayed to the user." },
"autoHide": { "type": "boolean", "default": true, "description": "If the button should hidden when no WMS layers are present in the map." }
},
"comment": "add autoHide property at a later time, default true, automatically hide the button if no queryable layers are present"
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/RAMP/Modules/globalStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ define(["dojo/_base/array", "utils/util"],
layers: { feature: [], wms: [] },
divNames: { map: "mainMap", navigation: "map-navigation", filter: "searchMapSectionBody", datagrid: "gridpane" },
advancedToolbar: { enabled: false, tools: [] },
ui: { mapQueryToggle: { show: true } }
ui: { mapQueryToggle: { show: true, autoHide: true } }
},

defaultRenderers = {
Expand Down

0 comments on commit b6255bb

Please sign in to comment.