[Users] GeocoderComboBox and minChars option
Thomas Becker
thob at dmu.dk
Thu Sep 26 10:39:02 CEST 2013
Hi,
I try to control the minimum number of characters entered in a GeocoderComboBox befor the combobox gets filled with suggestions. The combobox is within an item in a bbar and I set the option right after setting the xtype. As far as I can see from the documentation the default value is set the 3, but even if I do not set the minChar option at all the combobox will be filled with suggestions right after I punched in the first character.
Is there anything specific that I am missing?
Thanks in advance for your replies,
Tom
bbar: [{
xtype: "gx_geocodercombo",
hideTrigger: true,
emptyText: 'Type address here',
minChars: 4,
width: 350,
layer: locationLayer,
queryParam: "CQL_FILTER",
store: new Ext.data.Store({
reader: new GeoExt.data.FeatureReader({}, [
{name: 'name', mapping: 'search'},
{name: 'no_mod', mapping: 'no_mod'},
{name: 'pm_mod', mapping: 'pm_mod'},
{name: 'bounds', convert: function(v, feature) {
return feature.geometry.getBounds().toArray();
}},
{name: "lonlat", convert: function(v, feature) {
return feature.geometry.getBounds().toArray();
}}
]),
proxy: new GeoExt.data.ProtocolProxy({
protocol: new OpenLayers.Protocol.Script({
url: "http://server:port/geoserver/wfs",
callbackKey: "format_options",
callbackPrefix: "callback:",
params: {
service: "WFS",
version: "1.1.0",
srsName: "EPSG:4326",
maxFeatures: 10,
request: "GetFeature",
typeName: "SYS:test_900913_utf8",
outputFormat: "json"
}
})
})
}
}]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20130926/c2c598f7/attachment.htm
More information about the Users
mailing list