[OpenLayers-Users] Zoom to Filter Extent
Eric Lemoine
eric.c2c at gmail.com
Tue Nov 25 00:48:51 EST 2008
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 <bmcbride at cha-llp.com>:
>
> 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 performs a filter
> and zooms to the results.
>
> Is there any way to grab the extent of the current filter and perform some
> kind of ZoomtoFilterExtent call?
>
> My question is very similar to this post:
> http://www.nabble.com/searching-a-feature-with-open-layers-td13724745.html#a13761443
>
> Thanks!
>
> --
> View this message in context:
> http://www.nabble.com/Zoom-to-Filter-Extent-tp20662111p20662111.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
>
More information about the Users
mailing list