AnsweredAssumed Answered

Zooming into layers from a dynamic map service

Question asked by betsyjsg on Sep 9, 2013
Latest reply on Sep 12, 2013 by betsyjsg
Is there any way to zoom into some of the layers of a dynamic map service?  I'm doing this:
var imageParameters = new esri.layers.ImageParameters(); imageParameters.layerIds = [2,3,4]; imageParameters.layerOption = esri.layers.ImageParameters.LAYER_OPTION_SHOW; GISLayer = new esri.layers.ArcGISDynamicMapServiceLayer(mapServiceURL,{"imageParameters":imageParameters}); map.addLayer(GISLayer);

I get the layers I want to see on the map but I would like to have map zoom into the extent of these layers. Is this possible?