Dear Users, I am passing a query on a wfs layer. layer1 = new OpenLayers.Layer.Vector("Adress points WFS",{ strategies: [new OpenLayers.Strategy.BBOX({ratio:2, resFactor: 3}), new OpenLayers.Strategy.Refresh({force:true})], filter: new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.LIKE, matchCase:false, property: "Ward_Name", value: ward_name }),
eventListeners: { 'loadend': function (evt){//THE LOADEND EVENT LISTENER - WHEN THE LAYER IS DONE LOADING... *map.zoomToExtent(layer1.getDataExtent())*;//ZOOM TO ITS EXTENT! } I get the results which is perfectly fine. But when I get the result and try to move out of the zoomed area, I am reverted back to this position. Kindly help how to nullify the effect of *map.zoomToExtent(layer1.getDataExtent())* once we try to pan out of the location. Thanks in advance. Aditya Kumar ----- GIS Developer India Urban Space Foundation -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Difficult-to-move-out-of-map-zoomToExtent-layer-getDataExtent-tp5061896.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users