Select to view content in your preferred language

Remove input layer from the map

1155
1
02-10-2014 08:32 AM
JonathanBailey
Frequent Contributor
I am consuming a geoprocessing service in the Viewer that takes a FeatureSet as input. The user interactively draws a polygon on the map to define the input. After the geoprocessing service is finished, however, the polygon that the user draws remains on the map. In ArcMap when I run this geoprocessing service, the polygon disappears once the job is submitted. How can I similarly get the user-drawn polygon to disappear when the job is submitted?
0 Kudos
1 Reply
PietaSwanepoel2
Frequent Contributor
Some of the tools don't clean up properly. The layer will be gone if you re-open the application.
BUT make sure you don't run it while you are busy configuring the application. In that case it will always be visible in the application

When developing your own apps, you can add and remove layers as required, e.g. temp graphics layer should be removed if tool is closed and the the graphics are no longer required (or if the option is available to keep it)
0 Kudos