marker-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
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
sl@0
     7
    <meta charset="utf-8">
sl@0
     8
    <title>Simple markers</title>
sl@0
     9
    <link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
sl@0
    10
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
sl@0
    11
    <script>
sl@0
    12
function initialize() {
sl@0
    13
  var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
sl@0
    14
  var mapOptions = {
sl@0
    15
    zoom: 4,
sl@0
    16
    center: myLatlng,
sl@0
    17
    mapTypeId: google.maps.MapTypeId.ROADMAP
sl@0
    18
  }
sl@0
    19
  var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
sl@0
    20
sl@0
    21
  var marker = new google.maps.Marker({
sl@0
    22
      position: myLatlng,
sl@0
    23
      map: map,
sl@0
    24
      title: 'Hello World!'
sl@0
    25
  });
sl@0
    26
}
sl@0
    27
sl@0
    28
google.maps.event.addDomListener(window, 'load', initialize);
sl@0
    29
sl@0
    30
    </script>
sl@0
    31
  </head>
sl@0
    32
  <body>
sl@0
    33
    <div id="map-canvas"></div>
sl@0
    34
  </body>
sl@0
    35
</html>
sl@0
    36