|
1 |
| -/*! jquery-locationpicker - v0.1.13 - 2016-09-08 */ |
| 1 | +/*! jquery-locationpicker - v0.1.13 - 2016-09-12 */ |
2 | 2 | (function($) {
|
3 | 3 | function GMapContext(domElement, options) {
|
4 | 4 | var _map = new google.maps.Map(domElement, options);
|
|
149 | 149 | }
|
150 | 150 | if (inputBinding.locationNameInput && gmapContext.settings.enableAutocomplete) {
|
151 | 151 | var blur = false;
|
152 |
| - gmapContext.autocomplete = new google.maps.places.Autocomplete(inputBinding.locationNameInput.get(0)); |
| 152 | + gmapContext.autocomplete = new google.maps.places.Autocomplete(inputBinding.locationNameInput.get(0), gmapContext.settings.autocompleteOptions); |
153 | 153 | google.maps.event.addListener(gmapContext.autocomplete, "place_changed", function() {
|
154 | 154 | blur = false;
|
155 | 155 | var place = gmapContext.autocomplete.getPlace();
|
|
306 | 306 | radius: settings.radius,
|
307 | 307 | locationName: settings.locationName,
|
308 | 308 | settings: settings,
|
| 309 | + autocompleteOptions: settings.autocompleteOptions, |
309 | 310 | draggable: settings.draggable,
|
310 | 311 | markerIcon: settings.markerIcon,
|
311 | 312 | markerDraggable: settings.markerDraggable,
|
|
351 | 352 | },
|
352 | 353 | enableAutocomplete: false,
|
353 | 354 | enableAutocompleteBlur: false,
|
| 355 | + autocompleteOptions: null, |
354 | 356 | enableReverseGeocode: true,
|
355 | 357 | draggable: true,
|
356 | 358 | onchanged: function(currentLocation, radius, isMarkerDropped) {},
|
|
0 commit comments