Web.Maps.VE v1.0 Tutorials

Getting Started

In this article we will go over the basics of implementing MS Virtual Earth mapping capabilities in an ASP.NET 2.0 Web Application using the Web.Maps.VE v1.0 mapping server control from Simplovation.

View Screencast
Download Code

Prerequisites

This article assumes you have already downloaded/installed the following onto your development workstation:

Create Website that is ready for Mapping

Open Visual Studio 2005 and create a New Web Site, make sure you pick the ASP.NET AJAX-Enabled Web Site Template.
Image001.png

Create the Bin folder and copy both of the following DLL's into it:
  • AjaxControlToolkit.dll
  • Simplovation.Web.Maps.VE.dll
Image002.png

Alright, now our Web Site is all ready to add mapping.

Place a Map on the Page

Open up the Default.aspx page of the Web Site we just created above.

Register the Simplovation.Web.Maps.VE component to be used on the Page by adding a Register directive for it at the top of the Page.
Image003.png

Now, add a Web.Maps.VE Map control to the page by adding a <Simplovation:Map /> tag to the page.

Note: The Map control requires there to be a ScriptManager control on the Page, and it must be declared anywhere on the page above the Map.
Image004.png

Now, run the Web Site and you will see a default Map on the Page.
Image005.png

Plot a Pushpin on the Map

Open up the code for the Default.aspx pages Page Load event handler, and add the following code:
Image006.png

Now, run the Web Site and you will see the Pushpin plotted on the Map.
Image007.png

Last edited Apr 26, 2014 at 6:00 PM by crpietschmann, version 3

Comments

No comments yet.