I am creating a web based map with a custom script tool that is published as a geoprocessing service. I am using app builder to set up a geoprocessing widget, but am unsure of how to include a user selection.
I would like the user to be able to select features from a feature service layer in the web map (by drawing a polygon around the ones they want to select), and pass only the selected features into the geoprocessing widget that will run the script tool.
My initial thought is to have the user create a layer using a feature set and then write a select by location into the script to select features from another layer. However, I am unsure of what data type to use for the layer I want to make the selection on.
Is there an easier way to do this by using the select widget? Can you select features using the select widget and then pass only these selected features into the geoprocessing widget?