Table Of Contents

Previous topic

OpenLayers.Control.Swipe

Next topic

GeoAdmin.SwissSearchCombo

This Page

GeoAdmin.SwissSearchComboBox

Extends
xtype
ga_swisssearchcombo
class GeoAdmin.SwissSearchComboBox(config)
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.

Example Use

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
   });

Config Options

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

attributesSearch

Boolean Defines if swisssearch also search within visible layer. Default: false

map

OpenLayers.Map A OpenLayers.Map instance

stateId

String The state id. Default value is “swisssearch”