1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/marker-simple.html Wed Apr 09 12:36:39 2014 +0200
1.3 @@ -0,0 +1,36 @@
1.4 +
1.5 +
1.6 +<!DOCTYPE html>
1.7 +<html>
1.8 + <head>
1.9 + <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
1.10 + <meta charset="utf-8">
1.11 + <title>Simple markers</title>
1.12 + <link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet">
1.13 + <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
1.14 + <script>
1.15 +function initialize() {
1.16 + var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
1.17 + var mapOptions = {
1.18 + zoom: 4,
1.19 + center: myLatlng,
1.20 + mapTypeId: google.maps.MapTypeId.ROADMAP
1.21 + }
1.22 + var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
1.23 +
1.24 + var marker = new google.maps.Marker({
1.25 + position: myLatlng,
1.26 + map: map,
1.27 + title: 'Hello World!'
1.28 + });
1.29 +}
1.30 +
1.31 +google.maps.event.addDomListener(window, 'load', initialize);
1.32 +
1.33 + </script>
1.34 + </head>
1.35 + <body>
1.36 + <div id="map-canvas"></div>
1.37 + </body>
1.38 +</html>
1.39 +