On Apr 26, 11:55 pm, "TheC++Dude" <[email protected]> wrote:
> In this 
> threadhttp://groups.google.com/group/google-maps-api/browse_thread/thread/8...
> Barry Hunter suggest to use a magic iframe that combines an embedded
> google map with a Google Latitude Location Badge KML feed to awesome
> effect in my jQuery tabbing system seen herehttp://demo.mycamplive.com
>
> The 2 common solutions are;
> - Make the CSS set the "position:absolute" and "left:-10000px" or
> somesuch, which we implemented in the "hide tab" css of our jQuery
> tabbing system
> - Call map.recheckCenter()
>
> However these solutions work appropriately when using a plain
> embedded
> google map or using the Google Map API. But using Barry Hunter's
> iframe system in our jQuery tabs still produces the off-center bug
> when the map is loaded (when the tab is accessed).

This is almost certainly because of a timing issue. When Google Maps
starts in your iframe, the iframe is still being rendered so reports
its size to the browser (and on to the map) as zero. The map has been
initialised by the time the iframe is properly set up as the size you
specify.

You're not using the API, so map.checkResize() probably won't work.
Since you're using jQuery, you may be able to do something with an
interstitial page in your iframe. Set the src to a page which uses
document.ready to set the location to the Maps url. That *might* allow
the iframe to have sorted itself out before the map gets loaded and
needs to know what size it is.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to