It could be a multitude of problems without source-code. Double check that 1. The div has a height/width at time of load 2. You are not hiding/showing using "display" until the dom is ready 3. If the map is grey, it could be that there is no data, as your lat/ long are incorrect - double check these 4. Note, that using visibility:hidden might work better for you than display:none 5. Make sure if you are using display:none, you are not defining this in CSS. Instead define it @ DOM Ready of the page, or inline on the DIV, as javascript sometimes has a hard time overriding CSS attributes from an external file 6. Give us some code...
On Jan 1, 12:32 am, lorenzo83 <[email protected]> wrote: > Hi. > Probably I didn't explain well: > I paste the AJAX response (in HTML) that doesn't work (map is gray but > other things are ok!) in a new page and the same HTML works (I can see > the map)! So I think it's a problem of css, probably the display:none > that I use to hide the div before the AJAX response is ready. I had a > similar problem with the v2 and I solved setting the sizes of div, but > now?? I saw the references and I try: > > var size = new google.maps.Size(width, height, 'px', 'px'); > > but this not works. > > On Dec 31, 7:20 am, Peter Dang <[email protected]> wrote: > > > Hi, > > > I think this problem occur when tha Ajax has an errors so it not success > > (when call ajax), sothat the map not display, please take care the ajax > > function. > > > On Wed, Dec 30, 2009 at 11:32 PM, lorenzo83 <[email protected]> wrote: > > > I'm going mad with this problem: > > > > I'm using google maps api v 3 and I don't know why sometimes map > > > doesn't appear in my div...I have to say that the page (with the map) > > > is called with AJAX method and is set as display:none before the call. > > > The HTML returned after this AJAX call is correct, infact if I paste > > > it into a new static page I can see the map correctly, so I think is a > > > problem of css/javascript... > > > > I had a similar problem with the version 2 and I resolved it setting > > > the size (with GSize) during the creation of the map, but know how I > > > can solve this problem??? > > > > -- > > > > 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]<google-maps-js-api-v3%[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > > -- > > > Thanks and Best Regards > > > Peter Dang > > Professional Map team developer > > ------------------------------------------------------ > > Phone : +84 933 933 649 > > Axon Active Vietnam > > -- 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.
