Retrive Latitude and Longitude using Mouse Click

Hello All-

I'm using a ArcGIS Server Web ADF application and would like to know how to get Latitude/Longitude values using a mouse click on the map.  Is there a tool or some code I could incorporate to get a popup box showing those values using Javascript?

Please let me know.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohamed_allabakashSr. ManagerCommented:
JoshinHtownAuthor Commented:
This did'nt really help me any.  For one, I'm not using a DEM and I don't see where there are referencing a web application.  I simply have a web application that consumes a map service.  The map service is in UTM coordinates and I have figured out to get the UTM XY values returned by hovering the mouse over the map.  I then have a seperate Javascript function that will convert the UTM coordinates to Lat/Long.  My solution will work for the time being.   But thank you though..

<script language="javascript" type="text/javascript">

        // must occur immediatly, not after load
        arcgisWebApp = new ESRI.ADF.WebMappingApplication.WebPage();


        function initialize() { 
          var map = $find('Map1');            
          map.add_mouseMove(btnToGeographic_OnClick);    //This is the function that has a series of math formulas that converts UTM to Lat/Long and displays results using Windows Status bar

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Molnar IstvánHelpDesk / ProgrammerCommented:
some example and documentation:>Reverse geocode[reverse geocoding-with a little modification you could get not only the address, but  the Latitude/Longitude ]

hope it helps
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.