A widget that provides query predictions based on a user's text
input. It attaches to an input element of type text
, and
listens for text entry in that field. The list of predictions is
presented as a drop-down list, and is updated as text is entered.
Access by calling const {SearchBox} = await google.maps.importLibrary("places")
. See
https://developers.google.com/maps/documentation/javascript/libraries.
Adds the given listener function to the given event name. Returns an
identifier for this listener that can be used with
google.maps.event.removeListener
.
Binds a View to a Model.
Gets a value.
Returns the bounds to which query predictions are biased.
Returns the query selected by the user to be used with
places_changed
event.
Notify all observers of a change on this property. This notifies both objects that are bound to the object's property as well as the object that it is bound to.
Sets a value.
Sets the region to use for biasing query predictions. Results will only be biased towards this area and not be completely restricted to it.
Sets a collection of key-value pairs.
Removes a binding. Unbinding will set the unbound property to the current value. The object will not be notified, as the value has not changed.
Removes all bindings.
Generated using TypeDoc
A widget that provides query predictions based on a user's text input. It attaches to an input element of type
text
, and listens for text entry in that field. The list of predictions is presented as a drop-down list, and is updated as text is entered.Access by calling
const {SearchBox} = await google.maps.importLibrary("places")
. See https://developers.google.com/maps/documentation/javascript/libraries.