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

7. June 2006

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

Bing Maps , ,



Comments

SB
SB
6/22/2006 11:34:00 AM #
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 ?
6/24/2006 2:21:00 PM #
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/
6/26/2006 8:40:00 PM #
I released v0.02 of the control yesterday. The download link above downloads the latest version.

http://pietschsoft.com/Blog/Post.aspx?PostID=1308
8/14/2006 12:15:00 PM #
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
8/19/2006 12:43:00 AM #
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
Faris
12/10/2006 10:10:00 PM #
is there a way in the current version to add pushpins based on addresses instead of Latitude and Lonitude parameters.
Comments are closed