| param config: | Object config |
|---|---|
| return: | GeoAdmin.SwissSearchComboBox |
Create a swiss search combo box The swiss search combo searches within various data sets:
- cities
- swissnames
- districts
- cantons
- postalcodes
- address (only for admin.ch domains)
- parcel (if Cadastral Web Map layer is visible)
Some layers are searchable. In this case, the swiss search combo will search within the visible layers.
Sample code to swisssearch combo (see also Swiss Search):
var map4 = new GeoAdmin.Map("mymap4", {doZoomToMaxExtent: true});
map4.switchComplementaryLayer("ch.swisstopo.pixelkarte-farbe", {opacity: 1});
var swisssearch = new GeoAdmin.SwissSearchComboBox({
width: 500,
renderTo: "mysearch4",
map: map4
});
Configuration properties in addition to those listed for Ext.form.ComboBox.
Boolean Defines if swisssearch also search within visible layer. Default: false
OpenLayers.Map A OpenLayers.Map instance
String The state id. Default value is “swisssearch”