Hello, I've been dealing with an Internet Explorer 8 issue for the last couple of days, and just can't seem to figure it out.
Basically, I am trying to embed a Google Maps JavaScript API v3 map into a web page that is built using the CommonSpot content management system. The map works perfectly in Chrome, Safari, Firefox, and Internet Explorer 9, but when I try to load it in Internet Explorer 8, I get all sorts of JavaScript errors. I should also note that the map works perfectly in Internet Explorer 8 when embedded into a web page that is *not part of the CommonSpot CMS. This leads me to believe that there is some sort of conflict between some of the JavaScript code loaded by the CMS and my JavaScript code. We are working with the company that builds CommonSpot on this issue, but I thought maybe someone on this list might have an idea as to what might be causing the problem. Through stepping through the code, I think I have traced the issue back to a VML issue. It looks like the Google Maps API uses VML to render controls and overlays when Internet Explorer 8 is detected, because when the map loads, the navigation tools do not load, and an error is thrown. Then, after the map is loaded, clicking on overlays on the map also throws script errors, and I've also noticed that the 'zoom_changed' event does not fire at all. I have found a lot of information on the web about trying to load the map before VML is "ready". I am currently using jQuery ready to kick off the map load. I have also tried window.onload. Here are two links to examples: 1. http://maps.nps.gov/maps/officeofcommunication/statepages - This is the map running on a page that is *not part of the CommonSpot CMS. 2. http://home1.nps.gov/state/dc/index.htm - This is the map running on a CommonSpot CMS page. This is where the problems are occuring. The code is a little complex, but I think it is important to note that I have tried paring down the embedded map to just a basic Google Map with no overlay/customizations at all, and I still get the error when the map loads. Any help is much appreciated. I can, of course, provide more information if needed. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
