google map not displaying on my webpage -


here code snippet. please me unable map running on webpage. have tried know that's of no use...

the map not displaying on webpage...

http://jsfiddle.net/gauravroy142/tz7v2/

<head> <script src="https://maps.googleapis.com/maps/api/js?sensor=false"></script> <script>  function initialize() {   var mylatlng = new google.maps.latlng(-25.363882,131.044922);   var mapoptions = {     zoom: 12,     center: mylatlng   }   var map = new google.maps.map(document.getelementbyid('map-canvas'), mapoptions);    var marker = new google.maps.marker({       position: mylatlng,       map: map,       title: 'hello world!'   }); }  google.maps.event.adddomlistener(window, 'load', initialize);     </script> </head>   <div id="contact-right">  <div class="panel-pane pane-block pane-amazeelabs-google-map" id="map">   <!--<div class="map">-->     <div id="map-canvas"></div>  <!--</div>-->    </div>     <!--<div class="map">-->      <div id="address">     <p>roy-coy<br>     varanasi-221007<br>     uttar pradesh<br>     india</p>     </div>     <div id="we-are-waiting-for-you">     <p id="tlf">+91 9805 463 715</p><br>     <p id="email"><a class="spamspan" href="mailto:gaurav.roy142@gmail.com">gaurav.roy142@gmail.com</a></p><br> <p id="twitter"><a href="http://twitter.com/gauravroy11">@gauravroy11</a></p> </div> <p>&nbsp;</p>   <!--</div>-->   </div>    </body> 

i have checked api documentation also of no use... map not displaying anything.

your map div, #map-canvas(not #map), doesn't have size.

#map-canvas {      width:200px;     height:200px; } 

working fiddle


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -