您的位置:首页 > 编程语言 > ASP

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

2009-08-06 18:07 274 查看
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:

Left Click an Existing Pushpin to Edit it's Title and Description using a Popup Dialog

Left Click to Add a New Pushpin and enter the Pushpins Title and Description using a Popup Dialog

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:

Download Web.Maps.VE v2.0 from http://simplovation.com/download
Copy the "Simplovation.Web.Maps.VE.dll" file into the "Bin"
folder within this demo website.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: