On Apr 22, 7:54 am, "[email protected]" <[email protected]> wrote: > On Apr 22, 7:25 am, Sazzie <[email protected]> wrote: > > > > > > > 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 ishttp://www.test1omniforce.co.uk/venue/gibson-hall > > Looks OK in IE6... > > > > > Please, can you offer more advice ? > > This is what I see on the page itself: > In one place (wrong): > var size = new GSize(640, 500); > var map = new GMap2(document.getElementById('map'), size); > > In another (correct, but a different size...): > $(document).ready( > function(){ > var map = new GMap2(document.getElementById('map'), {size:new > GSize(500,500)}); > > That may give different results in different browsers. Note that both > of those map variables are local to their respective functions.
Sorry, didn't notice the first was commented out... I don't see any problem in IE6, but I don't have easy access to any other browsers at the moment. What browser(s) are you seeing the problem in? -- Larry > > -- Larry > > > > > > > > > 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 > > athttp://groups.google.com/group/google-maps-api?hl=en.-Hide quoted text - > > > - Show quoted text - > > -- > 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 > athttp://groups.google.com/group/google-maps-api?hl=en.- Hide quoted text - > > - Show quoted text -- Hide quoted text - > > - Show quoted text - -- 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.
