Microsoft Most Valuable Professional

Chris Pietschmann

An MVP From Wisconsin



ASP.NET 2.0: Virtual Earth v3 Ajax Server Control - PietschSoft.VE3 v0.01

Here is v0.01 of my ASP.NET Virtual Earth v3 custom control. The zip file download contains the DLL code and a sample test website.

PietschSoft.VE3 v0.01 Features:

  • Display map on a page with server side parameters (latitude, longitude, zoom, map style, etc.)
  • Ability to attach JavaScript functions to the events raised by the JavaScript VEMap object from within server side code.
  • Ability to plot points on the map from with in server side code

I am modeling the objects in my library after the objects in the Virtual Earth v3 JavaScript API and I'm nameing the objects, methods and parameters as closely as possible to their Virtual Earth counterparts.

Remember this is my first release of this control, so it only implements the most basic features.

Download PietschSoft.VE3 Library

Update 10/22/2007: There is an all New ASP.NET AJAX Virtual Earth Mapping Server Control with much richer Ajax support that PietschSoft.VE located here: http://simplovation.com/Page/WebMapsVE.aspx

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by crpietschmann on Wednesday, June 07, 2006 10:38 PM
Permalink | Comments (6) | Post RSSRSS comment feed

Related posts

Comments

SB

Thursday, June 22, 2006 11:34 AM

SB

Hi,

Useful, thanks - also seems to get around the "footer not defined" error too.

Am trying to populate two text boxes with centre lat & long from the control within the onendcontinuouspan event like so :

function UpdateInfo(e)
{
document.getElementById("ctl00_ContentPlaceHolder1_WhereLat").value = e.view.latitude;
document.getElementById("ctl00_ContentPlaceHolder1_WhereLon").value = e.view.longitude;
}

value "undefined" is returned rather than expected lat & long values ..

Any idea how should we reference from javascript ?

Chris Pietschmann

Saturday, June 24, 2006 2:21 PM

Chris Pietschmann

You need to change your code to the following:
function UpdateInfo(e) { document.getElementById("ctl00_ContentPlaceHolder1_WhereLat").value = e.view.LatLong.Latitude; document.getElementById("ctl00_ContentPlaceHolder1_WhereLon").value = e.view.LatLong.Longitude; }

The Virtual Earth v3 SDK is located here: http://dev.live.com/virtualearth/sdk/

Chris Pietschmann

Monday, June 26, 2006 8:40 PM

Chris Pietschmann

I released v0.02 of the control yesterday. The download link above downloads the latest version.

http://pietschsoft.com/Blog/Post.aspx?PostID=1308

Scottt40

Monday, August 14, 2006 12:15 PM

Scottt40

Chris:great start on the server side version.
I am lookin for some help on how to create a route from pt a to point b, and then track miles traveled with another colored line on top.
I am writing a physical activity log/journal and this would make a great motivation tool for users. Any Ideas would be helpful

Chris Pietschmann

Saturday, August 19, 2006 12:43 AM

Chris Pietschmann

Sorry, but I currently don’t have any tips I can offer on how to implement the type of point to point routing you are asking about. Virtual Earth currently only support single point to point routing and not multipoint routing.

Faris

Sunday, December 10, 2006 10:10 PM

Faris

is there a way in the current version to add pushpins based on addresses instead of Latitude and Lonitude parameters.

Comments are closed

About the author

I'm Chris Pietschmann, go to the About Me page to learn more about me.

Search

Sponsors

Web.Maps.VE - ASP.NET AJAX Virtual Earth Mapping Server Control

Recent comments

Disclaimer


This work is licensed under a Creative Commons Attribution 3.0 United States License, unless explicitly stated otherwise within the posted content.
© Copyright 2004 - 2008 Chris Pietschmann