MAPPE DELLA SARDEGNA
sardegnamappe api  ›  api documentation  ›  classe
Class framework.form.GeoNamesSearchCombo


Extends Ext.form.ComboBox.
Creates a combo box that handles results from a directory service OpenLS.
Defined in: GeoNamesSearchCombo.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a combo box that handles results from a directory service OpenLS.
Field Summary
Field Attributes Field Name and Description
 
Text to display for an empty field default value is "Search location in Geonames".
 
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth, default value is 350.
 
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText, default value is "Search in Geonames.
 
map
A configured map or a configuration object for the map constructor, required only if :attr:`zoom` is set to value greater than or equal to 0.
 
See: http://www.geonames.org/export/geonames-search.html The maximum number of rows in the responses, defaults to 20, maximum allowed value is 1000
 
Minimum number of characters to be typed before search occurs Defaults to 1
 
Delay before the search occurs.
 
See http://www.dev.sencha.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width, default value is 240.
 
The minimum zoom level to use when zooming to a location.
Class Detail
framework.form.GeoNamesSearchCombo()
Creates a combo box that handles results from a directory service OpenLS. By default it uses Directory OpenLS service by Regione Autonoma della Sardegna (http://www.sardegnageoportale.it/index.php?xsl=1598&s=203310&v=2&c=9869&t=1), but it can be configured with a custom store to use other services standard OpenLS. If the user enters a valid address in the search box, the combo's store will be populated with records that match the address.
Field Detail
{String} emptyText
Text to display for an empty field default value is "Search location in Geonames".

{Number} listWidth
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-listWidth, default value is 350.

{String} loadingText
See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText, default value is "Search in Geonames...".

{OpenLayers.Map or Object} map
A configured map or a configuration object for the map constructor, required only if :attr:`zoom` is set to value greater than or equal to 0.

{String} maxRows
See: http://www.geonames.org/export/geonames-search.html The maximum number of rows in the responses, defaults to 20, maximum allowed value is 1000

{number} minChars
Minimum number of characters to be typed before search occurs Defaults to 1

{number} queryDelay
Delay before the search occurs. Default is 50ms.

{Number} width
See http://www.dev.sencha.com/deploy/dev/docs/source/BoxComponent.html#cfg-Ext.BoxComponent-width, default value is 240.

{number} zoom
The minimum zoom level to use when zooming to a location. Not used when zooming to a bounding box. Default is 12.
© 2013 Regione Autonoma della Sardegna