How to retrive the Zoomed location on mouse click?[URGENT]

727
2
01-26-2011 09:30 AM
VanithaV
New Contributor
Hi All,
I am using ArcGIS map to display the location and allowing the user to Zoom and Drag to their destination.When they click save button  i want to save the co-ordinates and in postback i want to show them the same zoomed location. Question is i am able to save the extent values and dont know how to bring it back on mouse click.The setExtent is not working for me.Please see the attached file.

Thanks,
0 Kudos
2 Replies
DanielYim
New Contributor II
Make your own function that saves the map's current extent to a variable.

myMap.extent.xmin
myMap.extent.ymin
myMap.extent.xmax
myMap.extent.ymax


You can probably pass these through a query string. For example:
http://yourdomain.com/maps/yourmap.htm?xmin=1234&xmax=1234&ymin=1234&ymax=1234
0 Kudos
VanithaV
New Contributor
Hi ,
For some reason,that's not working for me. All i want is to add point to gis map .I have to mark in the same page on page load[mouse click save button].
0 Kudos