Hi,

On Dec 6, 2007 10:46 AM, Anakreon Mentis <[EMAIL PROTECTED]> wrote:
> I need to query the mapserver when the user
> selects a region on the map with the SetAoi
> button.
>
> Is there a widget which can query the server
> for features in a region?

For this, you have to configure your Mapserver to respond to
WFS:GetFeature requests. You can then use the WfsGetFeature widget. It
will allow you to click and drag for selecting an area of interest,
which will then immediately be issued as GetFeature request to your
WFS.

Note that this behavior of the WfsGetFeatureInfo is quite new, you
need at least Mapbuilder 1.5alpha2 for this to work.

> If not, how can a listen to events in order to query
> the server after the region is selected?

You could listen to the aoi event. But this is also fired every time
the user zooms or pans on the map. So you would have to create a
button control which registers the listener onSelect, and unregisters
it onUnselect.

Regards,
Andreas.

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to