Addressing review suggestions and fixing asynchronous function calls.

This commit addresses @bartvde's review comments, adds more documentation, and fixes asynchronous function calls. Previously, when creating multiple processes with the same identifier, the describe callback would only have been called for the first process. This was fixed to move DescribeProcess handling from WPSProcess to WPSClient.
This commit is contained in:
ahocevar
2012-08-14 13:17:07 +02:00
parent 006d98151f
commit 5fff368a2d
6 changed files with 255 additions and 158 deletions

View File

@@ -22,7 +22,9 @@
<div id="map" class="smallmap"></div>
<div id="docs">
<p>This example shows how simple it is to use the WPS Client. See
<p>This example shows how simple it is to use the WPS Client. It
buffers an intersection of a geometry and a feature, which is
accomplished by chaining two processes. See
<a href="wps-client.js">wps-client.js</a> to see how this is done.</p>
</div>
</body>

View File

@@ -56,7 +56,7 @@ function init() {
// the client directly if we are only dealing with a single process:
/*
client.execute({
server: "local",
server: "opengeo",
process: "JTS:intersection",
// spatial input can be a feature or a geometry or an array of
// features or geometries