Zum Hauptinhalt gehen

Set Map Extent Error

Kommentare

4 Kommentare

  • Dan Giersz
    Are you sure your query is returning results? You should put in an alert to make sure.

     

    And I typically go from the GetGeatureSetExtent to a Run external command of "ZoomToExtent"

     

     
    0
  • Nico Burgerhart
    queryResult.Features.Any should be True.

     

    On your Query Task, is Return Geometry set to True?
    0
  • Permanently deleted user
    Thank you both so much for the response...I changed my activities a bit as Dan suggested, as well as set my Query Task Return Geometry to true...I am no longer receiveing the error and the map is zooming as expected! Thank you!

     

    I do have another issue however...In this particular sequence of activies, I am trying to HIGHLIGHT as well as zoom...Below is my sequence...do either of you see anything that would make the selected object not highlight? The ConstHighlightLayer variable is an object with "Selected Features" set as the default...Thanks again!

     

    User-added image
    0
  • Nico Burgerhart
    For the command HighlightEsriFeatureSet, the command parameter should be queryResult.
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.