Heron

Table Of Contents

Previous topic

Heron.tree.MultiLayerNode

Next topic

Heron.widgets.SearchPanel

Heron.widgets.NominatimSearchCombo

Extends
xtype
hr_nominatimsearchcombo
class Heron.widgets.NominatimSearchCombo(config)

Create a ComboBox that provides a “search and zoom” function using OpenStreetMap Nominatim search.

Config Options

Configuration properties in addition to those listed for Ext.form.ComboBox.

charset

String Defines the encoding used for the document returned by the web service, defaults to ‘UTF8’. See: http://www.geonames.org/export/geonames-search.html

emptyText

See http://www.dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText, default value is “Search location in Nominatim”.

lang

String Place name and country name will be returned in the specified language. Default is English (en). See: http://www.geonames.org/export/geonames-search.html

listWidth

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

loadingText

See http://www.dev.sencha.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText, default value is “Search in Nominatim...”.

map

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

maxRows

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

minChars

Number Minimum number of characters to be typed before search occurs, defaults to 1.

queryDelay

Number Delay before the search occurs, defaults to 50 ms.

tpl

Ext.XTemplate or String Template for presenting the result in the list (see http://www.dev.sencha.com/deploy/dev/docs/output/Ext.XTemplate.html), if not set a default value is provided.

width

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

zoom

Number Zoom level for recentering the map after search, if set to a negative number the map isn’t recentered, defaults to 8.