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)
Implementation - Push pin Title/detail
1 - 10 of 10
Push pin Title/detail by ThisBytes5 on 28 May 06 @ 21:53:00 UTC
Anyone have an example of displaying the pushpin title and detail using an AJAX call to get the information to display when the mouse hovers over the pushpin?
I could have a large number of pins on the page at once and don't really want to pre-build all the text for every pin. Rather just go get it when needed.
RE: Push pin Title/detail by ThisBytes5 on 29 May 06 @ 05:59:00 UTC
Ok, I know I should have been in bed a while ago, but this was bugging me. I have figured out how to use the built in pop up in the VE maps. Took a while going through the Javascript that IE Downloads as it's obviously obfuscated. However, here is what I came up with:
Create the XMLHTTP request object
Set global vars: Pin Id, Pin Lat, Pin Lon
Call submit the request with the XMLHTTP
When call is returned call the following function, this will show the popup off the push pin:
Show = function(mapGUID, pinID, lat, lon, content)
{
var mapInstance = VEMap._GetMapFromGUID(mapGUID);
if (mapInstance == null || mapInstance == "undefined")
return;
VEMap.ValidateState();
var currentX = mapInstance.vemapcontrol.GetX(lon) + mapInstance.GetLeft();
var currentY = mapInstance.vemapcontrol.GetY(lat) + mapInstance.GetTop();
var e = document.getElementById(pinID + "_" + mapInstance.GUID);
if (e != null && e != "undefined")
{
window.ero.width = 500;
window.ero.setBoundingArea(new Microsoft.Web.Geometry.Point(0, 0), new Microsoft.Web.Geometry.Point(document.body.clientWidth, document.body.clientHeight));
window.ero.setContent(content);
window.ero.display(e);
}
}
RE: Push pin Title/detail by ThisBytes5 on 29 May 06 @ 06:02:00 UTC
Forgot this piece:
map.vemapcontrol.AddPushpin(
pinID,
markerLatitudes[i],
markerLongitudes[i],
25,
25,
"VEAPI_Pushpin",
"<img class='' src='http://www.markovic.com/markovic.com/images/markers/marker_orange_1.gif' id='" + pinId + "_" + map.GUID +
//"' onmouseout='VEPushpin.Hide();' " +
//" onmousedown='VEPushpin.Hide(true);' " +
"' onmouseover='RequestData(" + pinId + ", " + lat + ", " + lon + ");'/>",
Msn.VE.API.Globals.vepushpinpanelzIndex - 1);
In the RequestData is where you would set the three vars I mentioned in the last post.
Hope this helps someone else as much as it helped me.
RE: Push pin Title/detail by Dr. Neil on 4 Jun 06 @ 06:42:00 UTC
This is what you are trying to do I think?
http://www.viavirtualearth.com/MyVirtualEarth/v3/dynamicpushpin.htm
RE: Push pin Title/detail by ThisBytes5 on 12 Jun 06 @ 22:43:00 UTC
Ok, that seems to work, but how do I get the ID of the pin that was hovered over?
When I add my pins I set their ID's = to the ID of the data I need to go fetch.
RE: Push pin Title/detail by uriel_kluk on 13 Sep 06 @ 17:32:00 UTC
It used to work but now it is broken.
The error shown is:
Line: 55
Char: 13
Error: Object doesn't support this property or method
Same error with your link, therefore I suspect the problem is in the virtual earth Java Script
http://www.viavirtualearth.com/MyVirtualEarth/v3/dynamicpushpin.htm
RE: Push pin Title/detail by timkremer on 18 Sep 06 @ 12:20:00 UTC
Here is the fix to to work in the latest Virtual Earth SDK (v3.1 - Sept 06):
Change the line:
window.ero.display(e);
To:
window.ero.dockToElement(e);
Regards,
Tim Kremer
www.ssw.com.au
RE: Push pin Title/detail by uriel_kluk on 18 Sep 06 @ 14:31:00 UTC
Thx Tim,
I also found the following solution:
document.getElementById(pinID + "_" + map.GUID).onmouseover();
RE: Push pin Title/detail by erick_the_redd on 11 Oct 06 @ 19:26:00 UTC
Hey guys.
I am trying to do this very thing. I have about 60 points in a specific region that I want to display. I don't want to build the details at the sametime, would rather AJAX the details.
However, I am having trouble following everyone's post to understand how to get it to work. Does someone have a live example that I could take a look at or some additional help??
Thanks.
RE: Push pin Title/detail by (deleted user) on 11 Oct 06 @ 19:32:00 UTC
Oh yeah, I meant to ask at the same time. But has anyone gotten this to work in Firefox.
The code: 'event.srcElement.parentNode.id' only works in IE. I have tryed the Firefox equivlant: aEvent.target.parentNode.id and have received NULL id's.
Any help would be great.


