Advertisement
jamboljack

Map

Jun 22nd, 2014
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.08 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>Sample Map Google API</title>
  6.     <style>
  7.     #map_canvas {
  8.             width: 500px;
  9.         height: 400px;
  10.     }
  11.     </style>
  12.     <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
  13.     <script>
  14.       function initialize() {
  15.             var map_canvas = document.getElementById('map_canvas');
  16.                     var mapOptions = {
  17.                         zoom: 11,
  18.                         center: myLatlng,
  19.                         mapTypeId: google.maps.MapTypeId.SATTELITE  
  20.                       }
  21.             var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
  22.      
  23.        }
  24.        google.maps.event.addListener(window, 'load', initialize);
  25.     </script>
  26.     </head>
  27.      
  28.     <body>
  29.             <div id="map_canvas"></div>
  30.     </body>
  31.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement