Thanks, but that doesn't change a thing. Maybe I have it in the wrong
place?

Code:

"function lightbox(count,lat,lng) {
        var divh =
document.getElementById('CLUB_field_address').offsetHeight;
                var top = divh + 200 + 150*count;
                var shadow = document.getElementById('CLUB_overlay');
                var light = document.getElementById('CLUB_overlay_window_' + 
count);
                var light1 = document.getElementById('CLUB_overlay_bg');

                getMap(count,lat,lng);

        if(shadow.style.display == "block") {
                shadow.style.display = "none";
                                light.style.display = "none";
                                light1.style.display = "none";
        }
        else {
        shadow.style.display = "block";
                                light.style.display = "block";
                                light1.style.display = "block";
                                light1.style.top = top + 'px';
        }

        google.maps.event.trigger(map, 'resize');

}"

However yesterday I noticed something which could be important:
my connection was a bit slow and I was able to click/show the hidden
div while the main map hadn't loaded yet.
And what do you know, now the first of the smaller maps displayed
perfectly as they should. The rest was screwed up as before.

So it would appear that the first v3 API map on each page is always
okay while subsequent maps get messed up.
Any thoughts on that?

Cheers,
Joe



On 13 Jan., 14:06, "[email protected]" <[email protected]>
wrote:
>
> Trigger the Map resize event when you unhide the map (that changes the
> size the browser reports for it from 0 to the actual 
> size):http://code.google.com/apis/maps/documentation/javascript/reference.h...
>
> resize  None    Developers should trigger this event on the map when the
> div changes size: google.maps.event.trigger(map, 'resize') .
>
>   -- Larry

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to