examples/bootstrap/LocationPicker.html
[roojs1] / examples / bootstrap / LocationPicker.html
index 8ecccb9..28decae 100644 (file)
@@ -1,43 +1,34 @@
 <!DOCTYPE html>
 <html>
   <head>
-    <title>Accessing arguments in UI events</title>
-    <meta name="viewport" content="initial-scale=1.0, user-scalable=no">
-    <meta charset="utf-8">
-    <style>
-      html, body {
-        height: 100%;
-        margin: 0;
-        padding: 0;
-      }
-      #map {
-        height: 100%;
-      }
-    </style>
-  </head>
-  <body>
-    <div id="map"></div>
-    <script>
-function initMap() {
-  var map = new google.maps.Map(document.getElementById('map'), {
-    zoom: 4,
-    center: {lat: 22.276022, lng: 114.1751471 }
-  });
-
-  map.addListener('click', function(e) {
-    placeMarkerAndPanTo(e.latLng, map);
-  });
-}
+    <title>Bootstrap Location Picker Example</title>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    
+    <!-- Bootstrap -->
+      <link rel="stylesheet" href="../../css-bootstrap/bootstrap.min.css">
+        
+      <link rel="stylesheet" href="../../css-bootstrap/roojs-bootstrap.css">
 
-function placeMarkerAndPanTo(latLng, map) {
-  var marker = new google.maps.Marker({
-    position: latLng,
-    map: map
-  });
-  map.panTo(latLng);
-}
+  
+        
+        
+    <script type="text/javascript" src='http://maps.google.com/maps/api/js?sensor=false&libraries=places'></script>
+    
+    <script type="text/javascript" src="../../roojs-core-debug.js"></script>
+    <script type="text/javascript" src="../../roojs-bootstrap-debug.js"></script>
+    
+    <script type="text/javascript" src="../../Roo/bootstrap/LocationPicker.js"></script>
+    
+    <!-- test code -->
+    <script type="text/javascript" src="LocationPicker.js"></script>
+  </head>
+  
+  <body id="body">
+    <script type="text/javascript">
+        Roo.onReady(function() {
+            Roo.XComponent.build();
+        });
 
     </script>
-    <script src="https://maps.googleapis.com/maps/api/js?signed_in=true&callback=initMap" async defer></script>
   </body>
 </html>
\ No newline at end of file