How do I get Latitude / Longitude from the web app?

I have a Web ADF application and I just want the user to be able to click on the map and a popup displays Latitide / Longitude values ​​where users click on the map. How can i do this?

+2


a source to share


3 answers


It depends on which web map API you are using.



Check out its documentation.

+1


a source


Check Google Maps , Bing Maps and Yahoo Maps . Each has a different API. Pick one and start coding. There are many samples for what you want to do for each of these APIs.



here is an online sample link for ADF ESRI

0


a source


Among several ways, it can be assumed that (assuming you have a table containing at least 3 columns, MapID, Longitude, Latitude), you can:

  • Create an image map of your world map.
  • Get longitude / latitude relative to the id of the image where the mouse was clicked.
  • Show long / lat.

Also, checkout Bing Maps ASP.NET Control and Developing a .NET Application Using Bing Maps Web Services

0


a source







All Articles