Hoppa till huvudinnehållet

Zoom to selected points workflow

Kommentarer

5 kommentarer

  • Permanently deleted user
    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
  • Dan Giersz
    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
  • Permanently deleted user
    Nice!  Thanks.  That works perfectly.

     

    Do you have any idea why my selection isn't actually selected in the map??
    0
  • Dan Giersz
    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
  • Bobby Jo Close
    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.