I am working with GEOSERVER, GeoExplorer, GXP. I am creating a WPS client and need to generate a vector layer that serves to make operations on vector data, such as buffer, split polygon. I know how to create the vector layer but I want that is not on the menu layers GeoExplorer, I want this hidden.
I try modify this script wpsdemo.js from (http://suite.opengeo.org/docs/latest/processing/wpsclient/index.html ) where:
In wpsdemo.js replace:
....target.on('ready', function() { // Get a reference to the vector layer from app.js this.layer = target.getLayerRecordFromMap({ name: 'sketch', source: 'ol' }).getLayer(); // Some defaults....for code that does the following:
<ol>create dynamically OpenlayerLayer.Vector (with name: ''sketch', source: 'ol', displayInLayerSwitcher: false)
I try modify this script wpsdemo.js from (http://suite.opengeo.org/docs/latest/processing/wpsclient/index.html ) where:
In wpsdemo.js replace:
....target.on('ready', function() { // Get a reference to the vector layer from app.js this.layer = target.getLayerRecordFromMap({ name: 'sketch', source: 'ol' }).getLayer(); // Some defaults....for code that does the following:
<ol>create dynamically OpenlayerLayer.Vector (with name: ''sketch', source: 'ol', displayInLayerSwitcher: false)