[OpenLayers-Users] Re: need a little help with this ( user input & wfsprotocol.read )

Diego M. oo_O2_oo at hotmail.com
Mon Mar 5 08:19:49 EST 2012


*it's stable now and working great.
i think it will be fine.

regarding zoom thing,*


Phil Scadden wrote
> 
> Just expand the bounds calculated by sEXT a little.
> 

*i try this but nothing change
am i doing it right ?*

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++) { 
			    
			   &lt;b>var Lbouns = parseFloat((fts[i].geometry.getBounds().left) +
50);
			   var Rbouns = parseFloat((fts[i].geometry.getBounds().right) + 50);
			   var Tbouns = parseFloat((fts[i].geometry.getBounds().top) + 50);
			   var Bbouns = parseFloat((fts[i].geometry.getBounds().bottom) + 50);
			   
			   var newBounds = new OpenLayers.Bounds(Lbouns, Rbouns, Tbouns, Bbouns);
                  sExt.extend(newBounds); *
				  
               } 
           }
	   
     }; 

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/need-a-little-help-with-this-user-input-wfsprotocol-read-tp4468479p4547729.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list