Skip to content

Commit b7fddd8

Browse files
committed
#75 added property 'autocompleteOptions';
1 parent 386b6db commit b7fddd8

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

dist/locationpicker.jquery.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jquery-locationpicker - v0.1.13 - 2016-09-08 */
1+
/*! jquery-locationpicker - v0.1.13 - 2016-09-12 */
22
(function($) {
33
function GMapContext(domElement, options) {
44
var _map = new google.maps.Map(domElement, options);
@@ -149,7 +149,7 @@
149149
}
150150
if (inputBinding.locationNameInput && gmapContext.settings.enableAutocomplete) {
151151
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);
153153
google.maps.event.addListener(gmapContext.autocomplete, "place_changed", function() {
154154
blur = false;
155155
var place = gmapContext.autocomplete.getPlace();
@@ -306,6 +306,7 @@
306306
radius: settings.radius,
307307
locationName: settings.locationName,
308308
settings: settings,
309+
autocompleteOptions: settings.autocompleteOptions,
309310
draggable: settings.draggable,
310311
markerIcon: settings.markerIcon,
311312
markerDraggable: settings.markerDraggable,
@@ -351,6 +352,7 @@
351352
},
352353
enableAutocomplete: false,
353354
enableAutocompleteBlur: false,
355+
autocompleteOptions: null,
354356
enableReverseGeocode: true,
355357
draggable: true,
356358
onchanged: function(currentLocation, radius, isMarkerDropped) {},

dist/locationpicker.jquery.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)