Tuesday, April 29th, 2008
Google Maps Error - Solved!

For some time I’ve been struggling with a problem with my Google Maps API - an error that will sometimes appear in Internet Explorer.
Anyway, I did some research yesterday and found a number of possible solutions. They all revolve around the idea that IE doesn’t like you displaying the map until the page has completed.
The three solutions I found were…
- Load the map script using an onload event
- Use the setTimeout javascript function to delay the execution of the code
- Move the javascript to the end of the HTML
I used the third one and it now appears to have cured the problem. Hoorah!
Topics: Web Development |
Comments RSS
