In this exercise, you will code a simple application that uses a particle tracking model to estimate where a bottle would end up after 180 days, if you dropped it into the ocean at a specific point. The services directory entry is shown as follows. You can see that this is a synchronous service which takes two input parameters: a FeatureSet that contains the point object representing the location where the bottle is dropped, and a Double representing the number of days it should be allowed to drift for. It returns a single output parameter, again of FeatureSet type, that represents the route the bottle would take:
- Open the JavaScript Sandbox at https://developers.arcgis.com/javascript/3/sandbox/sandbox.html.
- Remove the JavaScript content from the <script> tag that I have highlighted as follows:
<script> var map; require...