ubilabs/geocomplete — pull request #36 by Malgin (2013-01-15 16:08:58+00:00)
Title: Add geocode:click event on the map

Now you can subscribe to "geocode:click" event on the map. Like that:

```javascript
$("#inputElement").geocomplete({
map: "#mapCanvas",
markerOptions: {
draggable: true
}
}).bind("geocode:click", function(event, latLng)) {
// your code goes here...
});
```
I've found this functionality very useful, and your library 'very lacking' of it.

I had to implement changing position on click on the map. Here's how it's possible to achieve this:
```javascript
.bind("geocode:click", function(event, latLng)) {
var latitude = latLng.lat();
var longitude = latLng.lng();
$("#inputElement").geocomplete('marker').setPosition(latLng);
});
```