gxp.form.GoogleGeocoderComboBox¶
-
class
gxp.form.GoogleGeocoderComboBox(config)¶
Creates a combo box that issues queries to the Google Maps geocoding service. If the user enters a valid address in the search box, the combo’s store will be populated with records that match the address. Records have the following fields:
- address -
StringThe formatted address. - location -
OpenLayers.LonLatLocation matching address. - viewport -
OpenLayers.BoundsRecommended viewing bounds.
Config Options¶
Configuration properties in addition to those listed for Ext.form.ComboBox.
-
bounds OpenLayers.Bounds | ArrayOptional bounds (in geographic coordinates) for restricting search.
-
queryDelay NumberDelay before the search occurs. Default is 100ms.
-
valueField StringField from selected record to use when the combo’sgetValuemethod is called. Default is “location”. Possible value’s are “location”, “viewport”, or “address”. The location value will be an OpenLayers.LonLat` object that corresponds to the geocoded address. The viewport value will be anOpenLayers.Boundsobject that is the recommended viewport for viewing the resulting location. The address value will be a string that is the formatted address.