I’ve been fighting an issue with google maps on our site which occurs on first load on IE7 and IE8. I was trying to deal with the solution by combining firefox and ie8 debuggers, but it’s quite difficult (and my boss is pushing me on other issues as well) as the JS is minified and IE debugger cant do a thing about it.
We have two versions of the same site, one at irelandhotels.com and the dev environment at groupbke.young.netaffinity.net.
First one has 500+ markers, the dev environment only 5 or so. However the issue occurs on both sites.
The execution will go into function yf, and then get into a loop with 3 unnamed functions.
I found an interesting article here about the issue:
http://cappuccino.org/discuss/2010/03/01/internet-explorer-global-variables-and-stack-overflows/
Our maps initialization code is here:
http://groupbke.young.netaffinity.net/bookings/googlemap
I have some images, just cannot post them so far, nor the link for them :/
Any help would be greatly appreciated.
Gergely
How I’ve always done this in the past is like this:
Also, (although you say this isn’t the problem) IE hates arrays or structures which end with a trailing comma.
Remove that last , just before the first closing ] so it looks like: