[OpenLayers-Users] Asynchronous problem

Mustafa646 noorcs22 at gmail.com
Sat Mar 12 11:14:02 EST 2011


with the help of code below, the request is sent to GeoServer and features
are received as a vector layer. i am facing Asynchronous problem in my
function. It calls FeatureSelect() method before completing the whole
response from server. i need FeatureSelect() method should be called after
completing whole the response from Geoserver. is there any way to fix this
problem ? please help with some code sample if possible.
 

function Myfunction()
wfs = new OpenLayers.Layer.Vector("Results", { 
                    strategies: [new OpenLayers.Strategy.BBOX()], 

                    protocol: new OpenLayers.Protocol.WFS({ 
                        url: "http://localhost:8080/geoserver/wfs", 
                        featureType: "NEW_ALL", 
                        featureNS: "http://www.openplans.org/TestSpace", 

                        srsName: "EPSG:900913", 
                        version: "1.1.0", 
                        extractAttributes: true, 
                        isBaseLayer: false, 
                        visibility: true 
                    }), 

map.addlayer(wfs);
FeatureSelect() ;

}

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Asynchronous-problem-tp6164606p6164606.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list