Want more features on Pastebin? Sign Up, it's FREE!
Guest

firstmap.html - SF Muni Google Map

By: asweigart on Feb 10th, 2014  |  syntax: HTML  |  size: 0.87 KB  |  views: 81  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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>
clone this paste RAW Paste Data