[Users] question for searching functionality
truongxuan quang
truongxuanquang at yahoo.com
Fri Oct 22 23:07:15 CEST 2010
Hello,
I am doing for multioly searching as population >= 20.000 I faced some problem
because I not family with GeoExt and Openlayers too I tryed to follow example
as see http://demo.mapfish.org/mapfishsample/1.2/demos/c2corg/search.html
It worked quite fine but my question is how to change this examples to able to
search for all submits layers, this exmaple given only for searching on region
around mouse click incident.
I just copy and pasted some function down here
var protocol = mapfish.Protocol.MapFish.create({ url: "../../summits",
params: { limit: 10 } }); /* *
Create map searcher */ var mapSearcher = new mapfish.Searcher.Map({
mode: mapfish.Searcher.Map.BOX, protocol: protocol });
var formPanel = new Ext.form.FormPanel({ title: 'Search criteria',
region: 'center', items: [{ columnWidth: 0.5,
layout: 'form', items: [{ xtype: 'textfield',
fieldLabel: 'Name', name: 'name__like' },{
xtype: 'textfield', fieldLabel: 'Min elevation',
name: 'elevation__ge' },{ xtype: 'textfield',
fieldLabel: 'Max elevation', name: 'elevation__le'
}] },{ html: ['<p>', 'Help note: search criteria specified
above ', 'are used in conjunction with map queries.',
'</p>'].join('') }] });
Any one help me...
Thanks!
All the best
Q
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20101022/40fd4fda/attachment.htm
More information about the Users
mailing list