Logicify / jquery-locationpicker-plugin

JQuery Location Picker plugin
MIT License
389 stars 260 forks source link

The "onchange" callback doesnt seem to fire when using the inputfield instead of moving the marker #1

Closed jesperbjerke closed 10 years ago

corvis commented 10 years ago

Thanks for the report. Should be fixed.

colelawrence commented 10 years ago

I am seeing this issue also. Where typing in an address without entering autocomplete does not fire the onchange event, but this makes sense because you might not want to look up likely long lat coords on every keystroke. Is there a function that allows me to update the location based on a string? For example:

var picker = $(".location-picker .picker").data("locationpicker");
picker.locationName = inp.val();
picker.trigger("autocomplete");

Thanks!