ASP.NET AJAX建立的WEB地图Web.Maps.VE v2.0

Since both Web.Maps.VE v2.0 and the AjaxControlToolkit are both built on top of ASP.NET AJAX, they compliment each other very well when used together to easily create some very dynamic user experiences. One of the requests we've gotten a few times is to give an example of how to show a Popup over the Map when a user clicks on a specific pushpin. This example demonstrates just such an example using both Web.Maps.VE v2.0 and the AjaxControlToolkit's ModalPopupExtender control.

Download Source Code: WebMapsVE_2.0_PopupWindowDemo.zip (753.58 kb)

This demo website also allows you to easily manipulate the Pushpins/Shapes on the Map in the following ways:

  1. Left Click an Existing Pushpin to Edit it's Title and Description using a Popup Dialog
  2. Left Click to Add a New Pushpin and enter the Pushpins Title and Description using a Popup Dialog 
  3. Hold the Control (Ctrl) Key while Left Clicking on an Existing Pushpin to Delete it from the Map
The total source code for this example is pretty short, and it demonstrates how to perform the above mentioned actions all from within Server-Side .NET code. There is actually No JavaScript written to wire everything up with this example.

Also, once you download this demo website, you'll need to do the following 2 things before you can Hit Run within Visual Studio:
  1. Download Web.Maps.VE v2.0 from http://simplovation.com/download
  2. Copy the "Simplovation.Web.Maps.VE.dll" file into the "Bin"
    folder within this demo website.

 

你可能感兴趣的:(asp.net)