map-simple.html
author sl
Thu, 10 Apr 2014 12:45:33 +0200
changeset 3 54ac29018aaf
permissions -rw-r--r--
Rectangle overlay params:
Adding support for 'cycle' and 'zoom' param.
Fixing issue with step not being interpreted and an integer.
Updating help documentation.
     1 
     2 
     3 <!DOCTYPE html>
     4 <html>
     5   <head>
     6     <title>Simple Map</title>
     7     <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
     8     <meta charset="utf-8">
     9     <style>
    10       html, body, #map-canvas {
    11         margin: 0;
    12         padding: 0;
    13         height: 100%;
    14       }
    15     </style>
    16     <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
    17     <script>
    18 var map;
    19 function initialize() {
    20   var mapOptions = {
    21     zoom: 8,
    22     center: new google.maps.LatLng(-34.397, 150.644),
    23     mapTypeId: google.maps.MapTypeId.ROADMAP
    24   };
    25   map = new google.maps.Map(document.getElementById('map-canvas'),
    26       mapOptions);
    27 }
    28 
    29 google.maps.event.addDomListener(window, 'load', initialize);
    30 
    31     </script>
    32   </head>
    33   <body>
    34     <div id="map-canvas"></div>
    35   </body>
    36 </html>
    37