zoomToFullExtent for dynamic layer when basemap is available

1959
1
07-27-2015 10:53 AM
BhavinSanghani
Occasional Contributor II

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?

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

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.

0 Kudos