Skip to main content

setLayerDefinition how to get features extends ?

Comments

1 comment

  • John Nerge
    You can use Query Task, Get FeatureSetExtent, and ZoomToExtent.

     

    1) Run a query task on your map service

     

    2) Use a GetFeatureSetExtent on your resulting featureset

     

    3) Use a Run External Command to run the "ZoomToExtent" command with your resulting feature set extent as the parameter
    0

Please sign in to leave a comment.