<!DOCTYPE html>
<html>
<head>
- <meta charset="utf-8">
- <title>Marker Animations</title>
- <style>
- html, body {
- height: 100%;
- margin: 0;
- padding: 0;
- }
- #map {
- height: 100%;
- }
- </style>
- </head>
- <body>
- <div id="map"></div>
- <script>
-
-// The following example creates a marker in Stockholm, Sweden using a DROP
-// animation. Clicking on the marker will toggle the animation between a BOUNCE
-// animation and no animation.
-
-var marker;
-
-function initMap() {
- var map = new google.maps.Map(document.getElementById('map'), {
- zoom: 13,
- center: {lat: 59.325, lng: 18.070}
- });
+ <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">
- marker = new google.maps.Marker({
- map: map,
- draggable: true,
- animation: google.maps.Animation.DROP,
- position: {lat: 59.327, lng: 18.067}
- });
- marker.addListener('click', toggleBounce);
-}
-
-function toggleBounce() {
- if (marker.getAnimation() !== null) {
- marker.setAnimation(null);
- } else {
- marker.setAnimation(google.maps.Animation.BOUNCE);
- }
-}
+
+
+
+ <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 async defer
- src="https://maps.google.com/maps/api/js??sensor=false&libraries=places&callback=initMap"></script>
</body>
-</html>
-
-<!--<script type="text/javascript" src='http://maps.google.com/maps/api/js?sensor=false&libraries=places'></script>-->
\ No newline at end of file
+</html>
\ No newline at end of file