[OpenLayers-Users] Is there any way to check vector layer

Mustafa646 noorcs22 at gmail.com
Wed Mar 9 13:27:50 EST 2011


Below is the code in which WFS protocol communicates with Geoserver and
return features to vector layer. I want to check whether WFS protocol
successfully retrieve requested features from server or Not ?

How can i check this before drawing this Layer on google map. 
Actually i want to check wfs1 in debug mode. Let say, if WFS protocol
successfully returns requested features, then what will be return to wfs1 ?
and in other case, let say if WFS protocol do not return any requested
features, then what will be return in wfs1?



var wfs1 = new OpenLayers.Layer.Vector("Results Nacka Norra", { 
                    strategies: [new OpenLayers.Strategy.BBOX()], 

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

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

                    filter: filter 

                });  



--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Is-there-any-way-to-check-vector-layer-tp6154862p6154862.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list