I am having an issue loading Google Maps API V3 in internet explorer. Here’s a list of things that I’ve done already:
- Checked out this link, because apparently Google’s heard complaints from IE users before. None of these things solved my problem.
- Tested maps.google.com from IE9. It works fine from there, but my page does not.
- The web designer said that she could intermittently get it to load in IE. I never was able to. So it seems somewhat random.
- I killed everything in my code except for the google maps stuff, and it still didn’t fly.
- I saw this, which says that it might have a problem with misplaced commas in the code. I don’t have any of those. I do make extensive use of jquery and dojo, but I wouldn’t imagine that would be an issue, would it?
- Of course, it works fine in Chrome,FF,Safari, etc. It’s just an issue with IE9.
Anybody have any thoughts?
Here’s the content from my initialize function, which is called once the body loads.
var map;
function initialize() {
var myOptions = {
center: new google.maps.LatLng(38.97, -94.72),
zoom: 13,
scaleControl:true,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
}
You have added the meta-tag for compatibility-mode and set it to IE7. Set it to IE8