title: Crazy about zooming after applying filter to layer
body: <p>i know that this question has been asked many times. but i'm really close to give up on doing this zoom after filtering out the layer. </p>
  
  <p>my code is here</p>
  
  <pre><code>function filter(){
          OpenLayers.ProxyHost = "cgi-bin/proxy.cgi?url=";
               var filters = new OpenLayers.Filter.Comparison({
                 type: OpenLayers.Filter.Comparison.EQUAL_TO,
                 property: "PROVINSI",
                 value: document.getElementById("provinsi").value
              });
  
               var parser = new OpenLayers.Format.Filter.v1_1_0();
               var filterAsXml = parser.write(filters);
               var xml = new OpenLayers.Format.XML();
               var filterAsString = xml.write(filterAsXml);
  
               wmslayer.params["FILTER"] = filterAsString;
               wmslayer.redraw(true);
               info.vendorParams["CQL_FILTER"] = filter;
  
              var wfs = new OpenLayers.Layer.Vector(
                      "WFS Features",
                      {
                  strategies: [new OpenLayers.Strategy.Fixed()]
                  , projection: new OpenLayers.Projection("EPSG:4326")
                  , protocol: new OpenLayers.Protocol.WFS({
                      version: "1.1.0",
                      url: "http://localhost:8080/geoserver/ows",
                      featurePrefix: 'rom', //geoserver workspace name
                      featureType: "rom:indonesia", //geoserver Layer Name
                      featureNS: "http://localhost:8080/geoserver/rom", // Edit Workspace Namespace URI
                  }),
                  filter: filters
              });
              console.log(wfs);
  
              map.zoomToExtent(wfs.getDataExtent());
  
          }
  </code></pre>
  
  <p>the filter function works fine. but i can't zoom in to the filtered layer. i tried using wfs. but when i call map.zoomToExtent(wfs.getDataExtent()); it zoomed to somewhere else.</p>