[OpenLayers-Users] Asynchronous problem
Bart van den Eijnden
bartvde at osgis.nl
Sat Mar 12 11:18:09 EST 2011
Just register for the loadend event on the layer, see examples/osm-layer.html for a code example.
Best regards,
Bart
--
Looking for flexible support on OpenLayers or GeoExt? Please check out http://www.osgis.nl/support.html
Bart van den Eijnden
OSGIS
bartvde at osgis.nl
On Mar 12, 2011, at 5:14 PM, Mustafa646 wrote:
> 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.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
More information about the Users
mailing list