Querying Sublayer Extent?

579
1
09-22-2011 07:26 AM
BenTreptow1
New Contributor
Can somebody provide a code sample of how to query the extent for a specific sublayer of an ArcGISDynamicMapServiceLayer?

Thanks!
0 Kudos
1 Reply
SanajyJadhav
Occasional Contributor II
One way could be following;

1. Create new FeatureLayer object and pass in the URL of your concerned layer
    e.g. http://server/arcgis/rest/services/srvcName/layerIndex

2. Subscribe to initialized event of this layer and call Initialize()

3. In this event, you would get the full extent of this layer.

Hope this helps...
0 Kudos