setLayerDefinition how to get features extends ?
I have workflow and use set layerDefinition, It return data but I need to zoom to features extends .. How can we get extends ?
0
-
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 parameter0
Please sign in to leave a comment.
Comments
1 comment