Highlighted results on the map using workflow
Hello,
I have a workflow that returns the results (it is the points), but not able to highlight these points on the map (can be anywhere in the county). I need help badly and urgent.
Thanks,
Kim
I
-
Kim,
I'm assuming you're returning a valid 'feature set' of points in the workflow - you just need to zoom to them and highlight them?
1. Get the feature set extent using the GetFeatureSetExtent activity
- pass in the feature set
- pass out an Envelope (create a new variable of type Envelope - lets say fsExtent)
2. To zoom to the extent of selected feature set.. use the RunExternalCommand activity with 2 parameters:
"ZoomToExtent"
fsExtent (the extent created in the first step)
3. to Highlight the features... use the SelectFeatures activity - enter the valid Geocortex layer id (not REST), and map service ID, and the feature set used in step 1.
hope that helps...
regards
Gareth
0 -
Hi Kim,
The buffered workflow worked for me, see this thread with links:
https://support.geocortex.com/Forums/Thread.aspx?pageid=0&mid=2&ItemID=20&thread=472380 -
Hi Gareth,
Thank you for your help.
I able to make it zoom to the using your steps 1 & 2, but the Highlight the features doesn't work. I think it is good enough zoom to the extent of selected features, but is there the way to highlight each individual dot on the map when mouse over the selected features in the Results panel.
Thanks,
Kim
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer