Method for getting the URL of current map?

Discussion created by dbowerman on May 31, 2011
Latest reply on May 31, 2011 by DSwingley-esristaff
Hi there,

I'm curious if there's a method in the JS API v2.2 that will return back the URL of the current state of the map?

For instance, in Google Maps, you can click "Link" at the top, and it will give you an URL that will take you directly to the map as you were viewing it, with all the appropriate parameters. (http://maps.google.ca/?ie=UTF8&ll=49.891235,-97.15369&spn=31.500974,79.365234&t=h&z=4)

Forgive me if this is a novice question... but I am a novice! Any insight would be greatly appreciated.