Create a ComboBox that provides a “search and zoom” function using OpenStreetMap Nominatim search. To use this class you need to include additional JS files in your page. See also the example HTML file under examples/namesearch.
Sample code showing how to include Nominatim search in your MapPanel toolbar.
Heron.layout = {
xtype: 'hr_mappanel',
hropts: {
layers: [
new OpenLayers.Layer.WMS( "World Map",
"http://tilecache.osgeo.org/wms-c/Basic.py?", {layers: 'basic', format: 'image/png' } )
],
toolbar : [
{type: "pan"},
{type: "zoomin"},
{type: "zoomout"},
{type: "-"},
{type: "search_nominatim",
options : {
zoom: 11
}}
]
}
};
Configuration properties in addition to those listed for Ext.form.ComboBox.