examples/bootstrap/LocationPicker.html
[roojs1] / examples / bootstrap / LocationPicker.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
5     <meta charset="utf-8">
6     <title>Simple markers</title>
7     <style>
8       html, body {
9         height: 100%;
10         margin: 0;
11         padding: 0;
12       }
13       #map {
14         height: 100%;
15       }
16     </style>
17   </head>
18   <body>
19     <div id="map"></div>
20     <script>
21
22 function initMap() {
23   var myLatLng = {lat: -25.363, lng: 131.044};
24
25   var map = new google.maps.Map(document.getElementById('map'), {
26     zoom: 4,
27     center: myLatLng
28   });
29
30   var marker = new google.maps.Marker({
31     position: myLatLng,
32     map: map,
33     title: 'Hello World!'
34   });
35 }
36
37     </script>
38     <script async defer
39         src="https://maps.google.com/maps/api/js?&callback=initMap&sensor=false&libraries=places"></script>
40   </body>
41 </html>
42
43 <!--<script type="text/javascript" src='http://maps.google.com/maps/api/js?sensor=false&libraries=places'></script>-->