[OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread bmcbride
Hello, I am working on an OpenLayers / GeoServer project and am trying to utilize the Filter tool, which is built into the GeoServer 1.7.0 OpenLayers preview template. I would like to be able to zoom to the extent of the filtered features- so the user can basically enter a search, which

Re: [OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread Eric Lemoine
Hi. Would listening to the vector layer's featuresadded events and do map.zoomToExtent(layer.getDataExtent()) in the listener work for you? Eric 2008/11/24, bmcbride [EMAIL PROTECTED]: Hello, I am working on an OpenLayers / GeoServer project and am trying to utilize the Filter tool, which

Re: [OpenLayers-Users] Zoom to Filter Extent

2008-11-24 Thread bartvde
. Anyway, not sure if this helps you? Brad.. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of bmcbride Sent: Tuesday, November 25, 2008 1:41 AM To: users@openlayers.org Subject: [OpenLayers-Users] Zoom to Filter Extent Hello, I am working on an OpenLayers