Query, Zoom To, and Highlight Parcels
Hello,
I'm new to workflows. I have a workflow from a sample that queries by parcel ID and then automatically zooms to the parcel (Query Task>GetGeometries>SetMapExtent). This works great but, I'd like the queried parcel to highlight without anything showing up in the results pane. I've read several posts about this and tried several different things suggested in the posts but am stuck.
So far, I've tried RunExernalCommand>AddMarkup and CreateHighlightLyr>SetActiveHighlightLyr>HighlightESRIFeatureSet at the end of my workflow, but nothing happened. I added selectfeatures between the Query Task and GetGeometries but that adds information to the results pane.
Any suggestions would be appreciated.
Thanks,
Allison
-
Allison,
I run this sequence. I have a FeatureSet (qryTwpResults) from a query. I have a sequence that unions all the results, zooms to the unioned features and sets a highlight.
RunExternalCommand - This clears any previous markup I may have in the map
Command Name: "ClearTemporaryMarkup"
Command Parameter: Empty
UnionTask - Many of my queries return mulitple township polygons, so I union them to get the entire area
Geometry Service URL: sGeometryService //variable that contains my geometry service URL
Token: sArcGISToken //variable that contains my token, generated earlier
Feature Set: qryTwpResults //the featureset from the earlier query
Result: userGeom //Geometry variable that stores the resulting unioned features
SetMapExtent - Sets the map view to slightly larger than the features selected
Extent: userGeom.Extent().Expand(1.1)
RunExternalCommand - Creates a markup on the map of selected features
Command Name: "HighlightEsriFeatureSet"
Command Parameter: qryTwpResults
You can see this in action at https://maps.digitaldataservices.com/DDS/PLSSFinder/
0 -
Tom,
I was able to get my workflow working! You're sequence helped a lot.
Thanks again,
Allison
0 -
Tom,
Is it possible for you to email me the xaml-file for the workflow? My email adress is sonja.aasen@skedsmo.kommune.no.
Thanks regards,
Sonja
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer