August 23, 201115 yr Ok folks, I've got a bizarre problem with a Google map (click the map tab and see what I mean) and I've got no idea how to track it down, because opening Firebug fixes it. Any thoughts?
August 23, 201115 yr not a Firebug user but can you have it open and ready then load/reload the page? It does the same thing in Chrome/IE8 when you press F12
August 23, 201115 yr just had a quick look at the way Google do it http://code.google.com/apis/maps/documentation/javascript/examples/overlay-remove.html and the source. have you tried removing the version from the script call and/or using a body onload like they do?
August 23, 201115 yr Author body.onload doesn't play nicely with jQuery's .ready() Edited August 23, 201115 yr by Renaissance-Design
August 23, 201115 yr Ok folks, I've got a bizarre problem with a Google map (click the map tab and see what I mean) and I've got no idea how to track it down, because opening Firebug fixes it. Any thoughts? Are you using Firebug on a single screen with it docked to the bottom of the main window? If so try it in a new window instead. I think it's not actually Firebug causing the fix but actually the screen being resized when Firebug opens. As to what the problem is, I'm not sure. The map is rendering just about -300px left and -150px above the main content div. Edited August 23, 201115 yr by Spitfire
August 23, 201115 yr Author Ok, I've sacrificed the fadein effect and swapped: position: absolute; visibility: hidden; for: position: relative; visibility: visible; to do the tabs. The loss of fadein isn't ideal but it's not a deal breaker. Dr. Google tells me Maps don't like display: none. Edited August 23, 201115 yr by Renaissance-Design
August 23, 201115 yr Forget that I was playing around while you where changing things :0 Yes display:none is the problem I did a bit of a clumsy work around by using z-index to hide the map on load I'm not the best with jquery though so it might be something to try test map Edited August 23, 201115 yr by mteam
August 23, 201115 yr I've reworked this so it should work in all browsers tested in IE7,8 FF Chrome Safari Opera test map Edited August 23, 201115 yr by mteam
Create an account or sign in to comment