Select to view content in your preferred language

zoom to envelope after setLayerDefinitions()

770
1
Jump to solution
04-11-2017 01:40 PM
Alexwang
Frequent Contributor

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
Frequent Contributor

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

View solution in original post

0 Kudos
1 Reply
Alexwang
Frequent Contributor

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

0 Kudos