Hi Thanks so much for all your help - the site is now working fine at www.5vansite.com.
Cheers Noel On Aug 12, 5:18 pm, "[email protected]" <[email protected]> wrote: > On Aug 12, 8:44 am, Noel Marsh-Giddings <[email protected]> > wrote: > > > Hi Larry > > > Thanks for your reply. I've started again effectively, as the whole > > thing was somewhat of a mess, and I want to get it right. The page is > > athttp://www.5vansite.com/index3.php. > > > So I have placed all map code in the header within a function > > initialize(), > > > I then have at the beginning of the body <body onload="initialize()">, > > and in my cell <div id="map_canvas" style="width:100%; height:100%">. > > > The map is still not coming up :( > > Your map div has zero size. If you want to use percent to specify its > size, you need to make sure every element in the chain to the map can > be calculated to be greater than zero. > > It works if I specify the size: > <div id="map_canvas" style="height: 600px; width:600px;"> > > -- Larry > > > > > > > Thanks > > Noel > > > On Aug 12, 2:06 pm, "[email protected]" <[email protected]> > > wrote: > > > > On Aug 12, 5:36 am, Noel Marsh-Giddings <[email protected]> > > > wrote: > > > > > Hi there > > > > > I am working on my first foray into the world of Google Maps. I have > > > > managed to get the map working as I want it (for now) > > > > athttp://www.5vansite.com/gmap.php. > > > > > However I would like this to be within a table > > > > athttp://www.5vansite.com/index2.php. > > > > > I have placed the code in the table where I would like it to be, > > > > however it is not appearing. Please could somebody help me with where > > > > to place the code, and even if it is possible? > > > > Yes it is possible. Don't put the _code_ inside the table, put it in > > > the head of the document in an onload function (so it is executed > > > after the DOM finishes rendering (or at the end of the document just > > > before the </body> tag and execute it inline). > > > > Just put the div where you want the map to display in the table where > > > you want it. > > > > -- Larry > > > > > Thanks > > > > Noel- Hide quoted text - > > > - Show quoted text - -- 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.
