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:
- Create an image map of your world map
- Retrieve the longitude/latitude against the id of the image where mouse was clicked.
- 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
精彩评论