Class: GoogleMapsSearch

GoogleMapsSearch(…args)

GoogleMapsSearch

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
Source:

Members

(static, non-null) STATE :Object

State definition.
Type:
  • Object
Source:

Methods

(protected) _bindUI()

Adds listeners for the created map object. It listens for a custom 'place_changed' event and executes GoogleMapsSearch._handlePlaceChanged.
Source:

(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.
Source:

destructor()

Removes the listeners that have been added to the search input.
Source: