简体   繁体   中英

How to get Latitude/Longitude from Web App?

I have a Web ADF application and I simply want the user to have the ability to click on the map and a Popup window displays the Latitide/Longitude values where the users click on the map. How can I do this?

That depends on what Web Map API you are using.

Check its documentation.

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

here is the online sample link for the ESRI ADF

Among several ways, one could be that (assuming that you have a table containing, atleast, 3 columns, MapID, Longitude, Latitude), you can:

  1. Create an image map of your world map
  2. Retrieve the longitude/latitude against the id of the image where mouse was clicked.
  3. Display the long/lat.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM