marker-simple.html
author sl
Wed, 09 Apr 2014 13:41:29 +0200
changeset 1 a1483545da35
permissions -rw-r--r--
Rectangle overlay params:
Fixing duplicate first rectangle entry due to our guery strings parsing.
Adding 'a' URL parameter to control rectangle fill opacity.
Adding support to pass in color as hexa using %23 URL encoding.
     1 
     2 
     3 <!DOCTYPE html>
     4 <html>
     5   <head>
     6     <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
     7     <meta charset="utf-8">
     8     <title>Simple markers</title>
     9     <link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
    10     <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
    11     <script>
    12 function initialize() {
    13   var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
    14   var mapOptions = {
    15     zoom: 4,
    16     center: myLatlng,
    17     mapTypeId: google.maps.MapTypeId.ROADMAP
    18   }
    19   var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
    20 
    21   var marker = new google.maps.Marker({
    22       position: myLatlng,
    23       map: map,
    24       title: 'Hello World!'
    25   });
    26 }
    27 
    28 google.maps.event.addDomListener(window, 'load', initialize);
    29 
    30     </script>
    31   </head>
    32   <body>
    33     <div id="map-canvas"></div>
    34   </body>
    35 </html>
    36