Cache of DescribeProcess responses on the client.

This commit is contained in:
ahocevar
2012-08-06 23:17:04 +02:00
parent 9bc7bb8115
commit b61120d3b5
2 changed files with 35 additions and 14 deletions
+5 -3
View File
@@ -18,8 +18,9 @@ OpenLayers.WPSClient = OpenLayers.Class({
*
* Properties:
* url - {String} the url of the server
* knownProcesses: {Object} Cache of DescribeProcess responses, keyed by
* process identifier.
* version - {String} WPS version of the server
* describeProcessResponse - {Object} Cache of DescribeProcess responses,
* keyed by process identifier.
*/
servers: null,
@@ -61,7 +62,8 @@ OpenLayers.WPSClient = OpenLayers.Class({
for (var s in options.servers) {
this.servers[s] = typeof options.servers[s] == 'string' ? {
url: options.servers[s],
version: '1.0.0'
version: '1.0.0',
describeProcessResponse: {}
} : options.servers[s];
}
},