i did that and calculate the deference,  and came up with :

function processTheQuery(request) {  
     if (request.data && request.data.bbox) { 
           var b = request.data.bbox;   
           sExt = new OpenLayers.Bounds(b[0],b[1],b[2],b[3]); 
     }else {
           var fts = request.features; 
           if (fts.length>0) { 
               sExt = fts[0].geometry.getBounds().clone(); 
               for(var i=1;i<fts.length;i++) { 
                              var Lbouns = (fts[i].geometry.getBounds().left   
-1.43085);
                              var Rbouns = (fts[i].geometry.getBounds().right 
+0.64564);
                              var Tbouns = (fts[i].geometry.getBounds().top 
+1.41458);
                              var Bbouns = (fts[i].geometry.getBounds().bottom  
-0.60166);
                                  
                              &lt;b>sExt.extend(new OpenLayers.Bounds(Lbouns, 
Rbouns, Tbouns,
Bbouns)); *
                                  
               }            
           }
           
     }; 
         selectedLayer.destroyFeatures(); 
     selectedLayer.addFeatures(request.features); 
     *map.zoomToExtent(sExt);*
*
coz my current bounds = 50.23729 , 29.82040 / 50.24007 , 29.81936
and i want it to be = 48.80644 , 30.46604 / 51.65465 , 29.21770*

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/need-a-little-help-with-this-user-input-wfsprotocol-read-tp4468479p4550630.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to