开发者

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 o开发者_Python百科n 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.


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜