Hi dev list, Using OpenLayers & Geoserver for WMS seems straight forward and works OK, but I cannot get it to work for WFS. I can't seem to create a valid OpenLayers layer object.
A simple HTML page like this, gives a layer ('wfslayer'), that has no features (no data). Any hints? - Is it a security issue? regs. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>WFS test!</title> <script src="./OpenLayers.js" type="text/javascript"></script> <script> var wfslayer; OpenLayers.ProxyHost = "proxy.cgi?url="; function init() { wfslayer = new OpenLayers.Layer.Vector("WFS", { strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://ubuntu:8080/geoserver/wfs", featureType: "tiger:poi", featureNS: "http://postgis.org", srsName: "EPSG:32632", version: "1.1.0" }) }); } </script> </head> <body onload="init()"> </body> </html>
_______________________________________________ Dev mailing list Dev@openlayers.org http://openlayers.org/mailman/listinfo/dev