Permalink
Browse files

Added a fourth demo.

  • Loading branch information...
1 parent ee91e60 commit f68a0021e29d710076a97410b439c8d14226dd40 @juliamae juliamae committed Nov 27, 2010
Showing with 20 additions and 1 deletion.
  1. +20 −1 demo/ui.demo.html
View
21 demo/ui.demo.html
@@ -4,7 +4,7 @@
<title>geo-autocomplete demos</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script>
-<script type="text/javascript" src="../lib/jquery-ui/js/jquery-ui-1.8.6.custom.min.js"></script>
+<script type="text/javascript" src="../lib/jquery-ui/js/jquery-ui-1.8.6.custom.js"></script>
<script type="text/javascript" src="../ui.geo_autocomplete.js"></script>
<script type="text/javascript">
$().ready(function() {
@@ -37,6 +37,21 @@
});
}
+function demo4() {
+ var map = new google.maps.Map(document.getElementById("demo4_map"), {
+ zoom: 11,
+ center: new google.maps.LatLng(40.7143528,-74.0059731),
+ mapTypeId: google.maps.MapTypeId.ROADMAP
+ });
+
+ $('#demo4_location').geo_autocomplete({
+ mapwidth: 75,
+ mapheight: 75,
+ geocoder_address: true,
+ maptype: 'roadmap'
+ });
+}
+
</script>
<link type="text/css" href="../lib/jquery-ui/css/ui-lightness/jquery-ui-1.8.6.custom.css" rel="stylesheet" />
@@ -60,5 +75,9 @@
<h3>Restricted to Countries within Africa</h3>
<p>Location: <input type="text" id="demo3_location" size="50" /></p>
+<h3>Pin drop demo</h3>
+<p>Location: <input type="text" id="demo4_location" size="50" /></p>
+<div id="demo4_map" style="width:400px;height:300px;"></div>
+
</body>
</html>

0 comments on commit f68a002

Please sign in to comment.