I create map with basemap and then add mapservice as a ArcGISDynamicMapServiceLayer in my code.
I have coded as given in following example for zoomToFullExtent.
Map navigation tools | ArcGIS API for JavaScript
The issue here is a basemap layer is added first so, if I use navToolbar.zoomToFullExtent then basemap layer's full extent is calculated and displayed. Is there any way to show dynamic layer's full extent when basemap is available?
Bhavin,
The Navigation zoomToFullExtent will always zoom to the full extent of all the layers in the map. If you wan to zoom to some other specific extent then instead of executing the Navigations zoomToFullExtent just specify the maps extent to be what you want it to be in the zoomfullext click event handler.