Recent Blog Posts RSS
ViaWindowsLive on Via Virtual Earth Blog
The new ViaWindowsLive community site has launched and features not only a definitive set of resources on all Live Services from Microsoft but also a special section on Virtual Earth including a new site gallery for you to upload your sites, new articles on Version 6, including getting started guide, an interactive quick guide, location finder and more. Subscribe to the VWL aggregated blog to stay in touch with everything Live Services related. Find all the great content from this site and much, much more. Explore how other Live Services can compliment Virtual Earth and your applications.
Version 5 URL changed - Error: 'VEMap' is undefined on Via Virtual Earth Blog
It has been reported that the old url to access the Version5 javascript for Virtual Earth no longer works. This is effecting sites worldwide.
The correct way to reference the Version 5 javascript is:
<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5"></script>
If you have been effected a forum thread has been started here
Silverlight Virtual Earth viewer on Via Virtual Earth Blog
With the launch of silverlight yesterday I was digging around and found this viewer for Virtual Earth by Greg Schechter. It does use the 1.1 alpha of silverlight. It gives some interesting ideas for where Virtual Earth could be headed. Certainly the demo of the performance of silverlight compared to javascript for processing showed a significant increase. This could be very useful.
And of course on the gamer front check this out by Andy Beaulieu and shoot down some UFO's over Birdseye images.
John.
So much new Virtual Earth Imagery Worldwide. on Via Virtual Earth Blog
I subscribe to all the VE blogs and recently the posts about updated imagery has been more and more frequent.
The latest is here and for myself downunder we saw three updates, Canberra, Newcastle and Uluru:


Derek Chan posts 3 Articles in a month! on Via Virtual Earth Blog
A big thank you to the efforts of Derek Chan who posted his third VE article today (he actually had it ready weeks ago but had to wait for Mr Bottleneck here at VVE ;) )
The 3 articles are all relivant to Version 5 of Virtual Earth and deal with the Mini Map, debugging javascript and now custom pins in routes.
All these can now be found in our articles section.
If you have something to contribute send us an email.
John (The bottleneck)
Virtual Earth Madness - map.AddShape VEException.name TypeError
1 - 1 of 1
map.AddShape VEException.name TypeError by maluc on 24 Sep 08 @ 15:42:00 UTC
hello
On the onLoadMap event of my map I call the following function:
function AddShape()
{
alert("inside addshape");
try{
var shape = null;
var c1Shape = null;
var c2Shape = null;
var c3Shape = null;
var c4Shape = null;
var cornerOne = new VELatLong(45.01188,-111.06687);
var cornerTwo = new VELatLong(45.01534,-104.06324);
var cornerThree = new VELatLong(41.01929,-104.06);
var cornerFour = new VELatLong(41.003,-111.05878);
// Create pushpins at each corner
c1Shape = new VEShape(VEShapeType.Pushpin, cornerOne);
c2Shape = new VEShape(VEShapeType.Pushpin, cornerTwo);
c3Shape = new VEShape(VEShapeType.Pushpin, cornerThree);
c4Shape = new VEShape(VEShapeType.Pushpin, cornerFour);
// Create the VEShape object and assign parameters.
var points = new Array(cornerOne, cornerTwo, cornerThree, cornerFour);
shape = new VEShape(VEShapeType.Polygon, points);
shape.SetLineWidth(3);
shape.SetLineColor(new VEColor(0,150,100,1.0));
shape.SetFillColor(new VEColor(0,150,100,0.5));
// Add the shapes to the map
map.AddShape(shape);
map.AddShape(c1Shape);
map.AddShape(c2Shape);
map.AddShape(c3Shape);
map.AddShape(c4Shape);
// Set the map view to the same points used by the shape.
map.SetMapView(points);
}
catch(err){alert("error adding shape: " + err.description + " name: " + err.name + " source: " + err.source + " message: " + err.message);}
}
and the following exception is caught:
name: TypeError
source: undefined
message: the object does not support this property or method
Does anyone know why this happens and how I can fix it?
Thanks


