Zoom to selected points workflow
Hi. I'm tyring to build a workflow that will zoom to the selected points after doing a Query Task >> SelectFeatures.
The expected results show up in the map (although they do not appear selected in the map??), yet whatever I try to do to zoom to them, nothing works; creating a buffer, doing a GetFeatureSetExtent >> SetMapExtent, using Envelopes, etc......nothing works.
Can anyone give me a simple step-by-step of what I'm supposed to do in a workflow to have this work properly??
Thanks,
0
-
To explain further, I presume they are "selected" because the results show up in the side panel....but not selected in the actual map. Maybe that is part of the problem?? 0 -
I have a workflow that queries points. I use QueryTask to get the featureset, then I use GetFeatureSetExtent to get the envelope and then RunExternalCommand with "ZoomToExtent" and envelope.Expand(1.5).
I don't remember if I put the expand just to keep the entire selection clearly in view or if it's necessary incase there is only one point (which wouldn't have much of an envelope).
Then I run the SelectFeatures, which could probably be done earlier in the workflow.
Make sure your query is returning geometries.0 -
Nice! Thanks. That works perfectly.
Do you have any idea why my selection isn't actually selected in the map??0 -
If I had to guess, I would say that you are missing the mapservice and layer IDs from the SelectFeatures action or they are set incorrectly. 0 -
I have a workflow that uses the ZoomToExtent but it only works the second time the workflow runs. The first time the workflow runs, the viewer is zooms to the correct scale but not the correct location. If I run it again, both the scale and location are achived. This is frustrating since the users of this workflow run it once a day. Any suggestions would be helpful. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer