asweigart

firstmap.html - SF Muni Google Map

Feb 10th, 2014
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.   <head>
  4.     <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  5.     <style type="text/css">
  6.       html { height: 100% }
  7.       body { height: 100%; margin: 0; padding: 0 }
  8.       #map-canvas { height: 100% }
  9.     </style>
  10.     <script type="text/javascript"
  11.      src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAq1luszpXp057mCW_qifsvM-_fzCOf2Ok&sensor=false">
  12.     </script>
  13.     <script type="text/javascript">
  14.       function initialize() {
  15.         var mapOptions = {
  16.           center: new google.maps.LatLng(37.7577, -122.4376),
  17.           zoom: 12
  18.         };
  19.         var map = new google.maps.Map(document.getElementById("map-canvas"),
  20.             mapOptions);
  21.       }
  22.       google.maps.event.addDomListener(window, 'load', initialize);
  23.     </script>
  24.   </head>
  25.   <body>
  26.     <div id="map-canvas"/>
  27.   </body>
  28. </html>
Add Comment
Please, Sign In to add comment