kristianmandrup / gmaps-autocomplete-rails

Google Maps v3 search with jQuery UI Autocomplete, ready for use with Rails asset pipeline
MIT License
73 stars 35 forks source link

Fixed keyDownHandler and added new feature #10

Closed nLight closed 10 years ago

nLight commented 10 years ago

Hi,

I added new feature for passing options to JQuery autocomplete in convenient way:

    completer = new GmapsCompleter

    completer.autoCompleteInit
      country: "us"
      autocomplete:
        minLength: 4
        position: 
          my : "center top", 
          at: "center bottom-1"
          collision: "none"

This autocomplete object will be merged with default source and select functions and passed to JQuery autocomplete widget.

Also I fixed issues with this in keyDownHandler.

kristianmandrup commented 10 years ago

Great Thanks!