Skip to content

Commit

Permalink
feat(state): add default setting to wms layers
Browse files Browse the repository at this point in the history
Add queryEnabled true default to wms layers.
If we find a valid use case, we will add it to the config schema
as well.
  • Loading branch information
AleksueiR committed Apr 30, 2015
1 parent 75fa184 commit 6695d76
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/js/RAMP/Modules/globalStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ define(["dojo/_base/array", "utils/util"],
},

wmsLayerDefaults = {
settings: { panelEnabled: true, opacity: { enabled: true, default: 1 }, visible: true, boundingBoxVisible: true }
settings: {
panelEnabled: true,
opacity: { enabled: true, default: 1 },
visible: true,
boundingBoxVisible: true,
queryEnabled: true // queryEnabled refers to the state of the wms query toggle, not whether the layer is queryable in principle or not
}
},

gridColumnDefaults = { orderable: true, type: "string", alignment: 1 },
Expand Down

0 comments on commit 6695d76

Please sign in to comment.