tsinclai2002

52WeeksOfCode Week 9 - Google Maps

Mar 9th, 2014
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 0.84 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=MYAPIKEY&sensor=false">
  12.  
  13.  
  14.     </script>
  15.     <script type="text/javascript">
  16.       function initialize() {
  17.         var mapOptions = {
  18.           center: new google.maps.LatLng(40.742511, -73.995006),
  19.           zoom: 19
  20.         };
  21.         var map = new google.maps.Map(document.getElementById("map-canvas"),
  22.             mapOptions);
  23.       }
  24.       google.maps.event.addDomListener(window, 'load', initialize);
  25.     </script>
  26.   </head>
  27.   <body>
  28.     <div id="map-canvas"/>
  29.   </body>
  30. </html>
Add Comment
Please, Sign In to add comment