Google Maps revisited

I've done some more exploration of Google Maps. First, so that at least some people get the benefit of the existing work, I've set up a server-side IE redirect, so that everyone with a browser other than IE for Windows gets given Google Maps. IE for Windows gets the accessible Streetmap fallback, instead.

The tricky thing is working around IE for Windows' stonking great Google Maps allergy. I've tried wrapping the whole Google Maps JavaScript in a function and calling it via "onload" in the body tag, but that's not working: instead I get a blank screen that covers the rest of the page in most browsers, with some writing as well in IE. Now, following the advice of others, I've tried putting the Google Maps content into a separate file and calling it via an "iframe".

Merde. It no work.

Even when viewed as a separate page, I still get that annoying DNS issue. I get the whole map this time, but still with the DNS error. This is very odd, since the source for the page is pure XHTML that validates just fine and has no nested tags or tables, which kind of implies that in certain situations, Google Maps will fail in a plain vanilla web page, even when it's by itself. This suggests not just an IE failure, but over-ambition on the part of Google.

As I've been writing, I've had a few further ideas that might work, such as removing the reference to the external stylesheet and removing the noscript alternative, so I'll see how that pans out and get back to you.

UPDATE: I've pared it down completely, and you know what? It still doesn't work. It's beyond me, at the moment. Clearly Google Maps does work with IE for Windows, or else no one would use Google Maps proper. Yet in a simple usage with two markers, it doesn't work at all.

It might be something to do with security settings, since there is a broad rumour going around that IE needs to use ActiveX to run JavaScript and if the security settings are wrong, ActiveX won't be able to use Google Maps. But this seems unlikely, since I'm using a vanilla version of Windows XP SP2. I'm just going to have to strip it down completely from a static version of the PHP code I'm using, then build it up until it starts to go wrong. Then I'll know what the issue is.

Bloody useless Internet Explorer.

1 TrackBack

Google is unreliable from Rob Buckley's IT blog on November 17, 2005 11:07 AM

I'd noticed Google Maps didn't work quite right; GMail has had issues; and Google Analytics isn't impressing me so far. But it's not just me: someone else associates Google with unreliability. Maybe the word will spread.... Read More

3 Comments

I've got the same problem - I've integrated a google map into a web page. It works in everything except IE on PC!
IE displays the map but then complains about a dnserror.

UPDATE: found a solution:

(http://groups.google.com/group/Google-Maps-API/
browse_frm/thread/795fe988c29b2986/aeb9d002dcd94251)

Basically put the Javascript for the map in the head section and call it using 'body onload'

First thing I did. But I'll try it again, just to see if I imagined that. Thanks.

Leave a comment

Recent Entries

  • MT 4.1 now out

    Movable Type 4.1 is now available, I notice. I gave it a try today and while there are obvious improvements everywhere, there are a couple...

  • MT4: Finally made it

    Finally. I've done it. I've made the switch. With the slight exception of MT Blogroll, which I can do without for now (but which...

  • MT4: nearly there

    Tried again with my bi-weekly MT4 upgrade attempt. We're nearly there now, I reckon. Simply Threaded was giving me some problems and not showing...

  • MT-MyBlogLog

    I've been trying to 'Voxify' my media blog of late. That's included comment threading, relative dates, changes to stylesheets, etc. But the biggest change...

  • MT4: not yet

    The observant will have noticed that I've still not migrated my blogs over to MT4. I did have an abortive attempt at it last...

Close