Skip to content
Browse files

Version bump; Updated copyright; Replaced README with README.markdown.

  • Loading branch information...
1 parent 897e27c commit 952839d41c910b6d439fb43014a328c0691f47bf @juliamae juliamae committed Nov 28, 2010
Showing with 30 additions and 5 deletions.
  1. +0 −3 README
  2. +28 −0 README.markdown
  3. +2 −2 ui.geo_autocomplete.js
View
3 README
@@ -1,3 +0,0 @@
-Look here for more details, this is just so I can use git with it. I totally did not write any of this code.
-
-http://code.google.com/p/geo-autocomplete/
View
28 README.markdown
@@ -0,0 +1,28 @@
+geo_autocomplete
+================
+
+A jQuery UI widget to turn a text field into a google maps autosuggest field.
+
+The original version of this code can be located at [geo-autocomplete on Google Code](http://code.google.com/p/geo-autocomplete/).
+
+In addition to the functionality provided by the original widget, this widget allows for a pinDrop callback, which appends a "drop a pin" option to the autocomplete list.
+
+Usage
+-----
+
+ var map = new google.maps.Map(document.getElementById("map_canvas"), {
+ center: new google.maps.LatLng(40.7143528,-74.0059731)
+ });
+
+ $('#search_term').geo_autocomplete({
+ maptype: 'roadmap',
+ map: map,
+
+ // Callback on pin drop
+ pinDrop: function(event) {
+ console.log("lat: " + event.latLng.lat());
+ console.log("lng: " + event.latLng.lng());
+ }
+ });
+
+Copyright (c) 2010 Bob Hitching, Julia West; Dual licensed under the MIT and GPL licenses.
View
4 ui.geo_autocomplete.js
@@ -1,7 +1,7 @@
/*
- * jQuery geo_autocomplete plugin 2.0.1
+ * jQuery geo_autocomplete plugin 3.0.0
*
- * Copyright (c) 2010 Bob Hitching
+ * Copyright (c) 2010 Bob Hitching, Julia West
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php

0 comments on commit 952839d

Please sign in to comment.
Something went wrong with that request. Please try again.