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.
sl@0
     1
sl@0
     2
sl@0
     3
<!DOCTYPE html>
sl@0
     4
<html>
sl@0
     5
  <head>
sl@0
     6
    <title>Simple Map</title>
sl@0
     7
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
sl@0
     8
    <meta charset="utf-8">
sl@0
     9
    <style>
sl@0
    10
      html, body, #map-canvas {
sl@0
    11
        margin: 0;
sl@0
    12
        padding: 0;
sl@0
    13
        height: 100%;
sl@0
    14
      }
sl@0
    15
    </style>
sl@0
    16
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
sl@0
    17
    <script>
sl@0
    18
var map;
sl@0
    19
function initialize() {
sl@0
    20
  var mapOptions = {
sl@0
    21
    zoom: 8,
sl@0
    22
    center: new google.maps.LatLng(-34.397, 150.644),
sl@0
    23
    mapTypeId: google.maps.MapTypeId.ROADMAP
sl@0
    24
  };
sl@0
    25
  map = new google.maps.Map(document.getElementById('map-canvas'),
sl@0
    26
      mapOptions);
sl@0
    27
}
sl@0
    28
sl@0
    29
google.maps.event.addDomListener(window, 'load', initialize);
sl@0
    30
sl@0
    31
    </script>
sl@0
    32
  </head>
sl@0
    33
  <body>
sl@0
    34
    <div id="map-canvas"></div>
sl@0
    35
  </body>
sl@0
    36
</html>
sl@0
    37