Google Maps Bugs with IE

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
cuhlcannon
Forum Members
Forum Members
Posts: 30
Joined: Wed Jun 22, 2005 8:02 am

Google Maps Bugs with IE

Post by cuhlcannon »

I had the problem whereby IE (7 and 6) would not show up the google maps extensions onload on the page by default, even though they were showing up in Mozilla and Opera with no problems. After much hair pulling...

This is the png transparency fix: http://www.twinhelix.com/css/iepngfix/demo/

PNG transparency fixes mess up the google maps onload, which is solved by a subtle and simple bit of css hidden in the IE6 only css. To make the IE6 only css, put this in the head tag:


 


Then within that stylesheet, you place both the png fix and the bit of a tag that turns this off for google maps.

* { behavior: url(iepngfix.htc); }
div#googlemap img {
behavior: none;
}

This should hopefully save someone grief in the long run if you use this particular combination. Hope it helps.
Post Reply

Return to “Tips and Tricks”