Select to view content in your preferred language

Change FullExtent property

920
4
10-04-2011 08:01 AM
TiagoRibeiro
Deactivated User
Hi,

I'm using the zoomToFullExtent() method of the navigation toolbar to go to the full extent of the map. The thing is that it does the full extent to the basemap (ESRI Streets), and I wanted to go to the initial extent defined when loading the map. Is there a property or way to change the default FullExtent? Is it possible to limit of zoom??

Thanks
0 Kudos
4 Replies
derekswingley1
Deactivated User
No, but the good news is that this is pretty straightforward to implement. I would do the following:
-save a copy of the extent
-connect a button or link to a function that passes your extent to map.setExtent()
0 Kudos
TiagoRibeiro
Deactivated User
No, but the good news is that this is pretty straightforward to implement. I would do the following:
-save a copy of the extent
-connect a button or link to a function that passes your extent to map.setExtent()


Thanks, it was really straightforward 😄
Can you help in another thing? How can I limit the level of zoom that one can go. I'm trying to define the LOD's... but to no avail!!
0 Kudos
derekswingley1
Deactivated User
0 Kudos
LeoKing
New Contributor
No, but the good news is that this is pretty straightforward to implement. I would do the following:
-save a copy of the extent
-connect a button or link to a function that passes your extent to map.setExtent()


can you share the code that you used to accomplish this task? I have a similar issue
0 Kudos