How to run identify tool from workflow with custom arguments
I would like to execute the HTML5 viewer's identify tool with a polygon geometry in a workflow with a pixel tolerance of 0. I see that the javascript Identify command can take an IdentifyArgs interface, how can I take advantage of this in Geocortex workflows? I would really like to be able to run this identify without needing to run a negative buffer first to prevent it from picking up its neighbors since I want the viewer to be configured to use its default tolerances.
0
-
Hi Zack,
If you look at our Geocortex SDK for HTML5 API Reference guide (that gets shipped with every viewer installation), there is a link on the homepage called "Viewer Commands". If you click on this link, you will be able to see a long list of commands that are compatible with the RunExternalCommand activity in a workflow. One of these commands include the Identify tool.
In your case, you want to run the Identify tool on a specific geometry. To do that, you will need to use the RunExternalCommand and the parameters are as follows:
Command Name: "Identify"
Command Parameter: geometryPolygon
where geometryPolygon is a variable of type esri.geometry.Geometry used to represent the polygon geometry. You can get this geometry by using the DisplayCaptureGeometry, which allows the user to pick their own geometry for the Identify or you can extract it from a feature set.
I hope this helps
Carmen0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar