Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title></title>
  5. <style>
  6. html, body, #map-canvas { height: 100%; margin: 0; padding:0;}
  7. #x{
  8. width: 100%;
  9. height: 100%;
  10. }
  11. </style>
  12. <script src="http://maps.googleapis.com/maps/api/js"></script>
  13. <script type="text/javascript">
  14. function initialize() {
  15. var mapOption = {
  16. center: new google.maps.LatLng(23.752805, 90.375433),
  17. zoom: 10,
  18. //mapTypeId: google.maps.MapTypeId.ROADMAP
  19. //mapTypeId: google.maps.MapTypeId.SATELLITE
  20. //mapTypeId: google.maps.MapTypeId.HYBRID
  21. mapTypeId: google.maps.MapTypeId.TERRAIN
  22. };
  23. var myCenter = new google.maps.LatLng(23.752805, 90.375433);
  24. var map = new google.maps.Map(document.getElementById("x"), mapOption);
  25.  
  26. var marker = new google.maps.Marker({
  27. position: new google.maps.LatLng(23.752805, 90.375433),
  28. });
  29. marker.setMap(map);
  30. }
  31. google.maps.event.addDomListener(window,'load',initialize);
  32. </script>
  33. </head>
  34. <body>
  35. <div id="x" style="width:500px;height:380px;">
  36.  
  37. </div>
  38. </body>
  39. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement