I've been playing around some more with Virtual Earth and have continued to run into weird "uncaught exception" errors when doing anything more advanced than displaying a map in Firefox. In a previous post, I mentioned that I'd found a workaround for the onMapLoad callback not working correctly. After doing some more research on these new issues, however, I think I've finally discovered the more basic reason this is happening. Apparently, the current version of the VE library doesn't detect the FireFox version correctly. ViaVirtualEarth mentions this workaround which seems to have done the trick for me!
// If the browser is Firefox get the version number
var ffv = 0;
var ffn = "Firefox/"
var ffp = navigator.userAgent.indexOf(ffn);
if (ffp != -1) {
ffv = parseFloat(navigator.userAgent.substring(ffp + ffn.length));
}
// If we're using Firefox 1.5 or above override the Virtual Earth drawing functions to use SVG
if (ffv >= 1.5) {
Msn.Drawing.Graphic.CreateGraphic = function(f, b) {
return new Msn.Drawing.SVGGraphic(f, b);
}
}
// Put your own code below this line
map = new VEMap('map');