Yep, we're working on compatability issues now. Thanks!
Caleb
Awesome work Marc.
Who would have thought that you would ever need to look past version 1.x Reminds me a little of Y2K....
John.
Thanks much, Marc.
Your fix solved the exception I was getting on the veMap.LoadMap function. However, I still can't get the map to actually load in Firefox version 2.
In the status bar, I see a series of messages to the effect "Transferring data from r1.ortho.tiles.virtualearth.net...". (Sometimes it's r0, r2, etc). Eventually the status bar freezes with one of these messages still displayed, and the map never loads.
Any help that you or anyone else can provide would be much appreciated.....
John
Marc-
Thanks for your post. This did in fact fix the majority of the problems we are seeing with Atlas (http://atlas.freshlogicstudios.com/) running on Firefox 2.
Shawn Miller
Marc,
Here's the code from the page that doesn't work:
function pageLoad() {// Resize browser and initialize map control
window.moveTo(0, 0);
window.resizeTo(screen.availWidth, screen.availHeight);
$(
'MapTable').height = screen.availHeight - 290; // The following 7 lines of code courtesy of Marc Sutton, found on the MSDN Virtual Earth: Map Control Development forum... var ffv = 0; var ffn = "Firefox/" var ffp = navigator.userAgent.indexOf(ffn); if (ffp != -1) ffv = parseFloat(navigator.userAgent.substring(ffp + ffn.length)); if (ffv >= 1.5) { // If we're using Firefox 1.5 or above override the Virtual Earth drawing functions to use SVGMsn.Drawing.Graphic.CreateGraphic=
function(f,b) { return new Msn.Drawing.SVGGraphic(f,b) }}
veMap =
new VEMap('TheMap'); try {veMap.LoadMap();
}
catch(e){alert(e)
}
It used to throw an exception in the LoadMap method ('Your web browser does not support SVG or VML...'). Your code fixed that, but now I get the symptoms described in my first post. The div ('TheMap') is not hidden, and the page works normally in IE6 and IE7.
This page uses the Atlas ScriptManager, in case that makes a difference.
Thanks much for following up with me,
John Bendiksen