Hi there, Try add width and height for <div id="map_canvas"></div> for example: <div id="map_canvas" style="width:300px;height:300px"></div>
Regards, Michal B. On 26 Sty, 01:43, Ando <[email protected]> wrote: > I aplogize that this is not on the web but i am trying to get it right > before i upload the final site to the web. > > The javascript appears to be working and getting the information from > google (i have taken it right down to the simplest map to pinpoint > this issue), as if i dont set the sensor and preview the webpage it > states that true or false must be selected. > > Although the actual map itself is not displaying on the map. > The entire code for the page of the webpage is; > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> > <title>Strut ReGas Pine Rivers | Store Location</title> > <meta name="title" content="Pine Rivers Strut ReGas" /> > <meta name="author" content="Pine Rivers Strut ReGas | Ando's Web > Design" /> > <meta name="keywords" content="struts, regas, strut regas, strut, > rubber" /> > <meta name="robots" content="index, follow" /> > <meta name="description" content="Pine Rivers Strut ReGas, not just > struts." /> > <link rel="stylesheet" href="styles/main.css" type="text/css"/> > <meta name="viewport" content="initial-scale=1.0, user-scalable=no" / > > <script type="text/javascript" src="http://maps.google.com/maps/api/js? > sensor=false"></script> > <script type="text/javascript"> > function initialize() { > var latlng = new google.maps.LatLng(-27.082302, 152.981743); > var myOptions = { > zoom: 8, > center: latlng, > mapTypeId: google.maps.MapTypeId.ROADMAP > }; > var map = new google.maps.Map(document.getElementById > ("map_canvas"), myOptions); > } > > </script> > </head> > > <body onload="initialize()"> > <div id="mainarea"> > <div><img src="images/regas_header.png" alt="struts, rubber, > hardware, fabrication" width="800" height="200" /></div> > <div> > <ul id="navmenu"> > <li><a href="index.html">Home</a> > </li> > <li><a href="products.html">Products</a> > <ul> > <li><a > href="hardware.html">Hardware</a></li> > <li><a > href="rubber.html">Rubber</a></li> > <li><a > href="struts.html">Struts</a></li> > </ul> > </li> > <li><a href="services.html">Services</a></li> > <li><a href="storelocation.html">Store > Location</a></li> > <li><a href="contact.php">Contact</a></li> > </ul> > </div> > <div id="bodydiv"> > <h1>Store Location</h1> > <p class="textbody">Our store is > located at;<br /> > Unit 25/39<br /> > Aerodrome Road<br /> > CABOOLTURE QLD 4510</p> > <p class="textbody">Please use the > map below to view the > location.</p> > </div> > <div id="map_canvas"></div> > </div> > </body> > </html> > > Again i apologize for no link to the website but if it makes it easier > i can upload it to a temporary site and post this link -- 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.
