zoom to envelope after setLayerDefinitions()

511
1
Jump to solution
04-11-2017 01:40 PM
Alexwang
Occasional Contributor II

Hello All, 

Can anybody tell me how to zoom to the envelope after executing setLayerDefinitions() to the layers? below are the codes for setting layer definitions. 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Alexwang
Occasional Contributor II

I managed it by using querytask -> executeForExtent() to get the extent.

View solution in original post

0 Kudos
1 Reply
Alexwang
Occasional Contributor II

I managed it by using querytask -> executeForExtent() to get the extent.

0 Kudos