Hi Larry,

apologies for the long time gap.

I have been working on your suggestions and the code below is what I
came up with:
google.load("maps", "2");
                /*google.load("jquery", "1.3.1");*/
                $(document).ready(
                        function(){
                                var map =       new 
GMap2(document.getElementById('map'), {size:new
GSize(500,500)});
                                var burnsvilleMN        =       new 
GLatLng(44.797916,-93.278046);
                                map.setCenter(burnsvilleMN, 15);

                                var point = new GLatLng(44.797916,-93.278046);
                                map.addOverlay(new GMarker(point));
                                map.addControl(new GMapTypeControl());
                                map.addControl(new GLargeMapControl());


                                $('#map_switch').toggle(
                                        function(){
                                                $('#map').slideDown();
                                                if( $('#map').is(':visible') ){
                                                        map.checkResize();
                                                }
                                        },
                                        function(){
                                                $('#map').slideUp();
                                        }
                                );//end toggle
                        }
                );

As you said, No version 2.x(don't really know the difference), I am
doing size:new GSize(500,500) as an extra argument to new GMap2 and
calling
map.checkResize() after the map is visible.

Still the problem persists - the map doesn't load completely. And I've
got problems with resizing it.

The location is http://www.test1omniforce.co.uk/venue/gibson-hall

Please, can you offer more advice ?

On Apr 9, 5:25 pm, "[email protected]" <[email protected]>
wrote:
> On Apr 9, 9:07 am, Sazzie <[email protected]> wrote:
>
>
>
> > Hi guys,
>
> > I just read a posting which was a similar issue to mine.
>
> > I try hiding and unhiding the div containing my google map and things
> > go wrong.
>
> > The map very partially renders and is off center. Attempting to even
> > drag it into place won't work.
>
> > The link to the example is 
> > :http://www.test1omniforce.co.uk/venue/gibson-hall
> > There should be a small red box marked "show map" half way down the
> > page - click it to reveal the map.
>
> > The code I'm using is as follows:
>
> looks like a zero size div problem...
> try either:
> using the optional size argument to the GMap2 constructor
> or
> call map.checkResize() after the map div has been displayed.
>
> > Can some one give me some advice on this please?
>
> Don't use v2.x... (unless you need features that are only there)
>
>    -- Larry

-- 
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