[OpenLayers-Users] Zoom
Andreas Hocevar
ahocevar at opengeo.org
Tue Oct 27 09:30:38 EDT 2009
Hi,
what you are trying to accomplish cannot be done with WMS alone. You
would have to apply the same filter to a WFS query, and then at least
parse the bounding box of the query result to set the extent.
Regards,
Andreas.
Arturo Juárez Lima wrote:
> Hi,
>
> I was find to process to make a filter, this is
>
> function FiltraFeature(wms,query){
>
> var filtro_temp = query;
> var filterParams = {
> cql_filter: null
> };
> if (OpenLayers.String.trim(filtro_temp) != "") {
> filterParams["cql_filter"] = filtro_temp;
> }
> wms.mergeNewParams(filterParams);
> }
>
> then, I want that my map will zoom over the result. I'm work with
> layers WMS.
>
> Could you help me?.
>
> Thanks
> --
> Arturo Juárez Lima <ajuarez at queretaro.gob.mx
> <mailto:ajuarez at queretaro.gob.mx>>
> GEQ
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list