Constructor
new GoogleMapsSearch(…args)
Creates a new search handler using Google Map's API
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
Array |
<repeatable> |
List of arguments to be passed to State |
Members
(static, non-null) STATE :Object
State definition.
Type:
- Object
Methods
(protected) _bindUI()
Adds listeners for the created map object.
It listens for a custom 'place_changed' event and executes
GoogleMapsSearch._handlePlaceChanged.
(protected) _handlePlaceChanged()
Gets the new place that has been processed by Google Maps and emits a
'search' event with the location information and the address.
destructor()
Removes the listeners that have been added to the search input.