I'm not so sure if this is an openlayers or a featureserver problem, so forgive me if I guessed wrong.<br><br>I have a working WFS from featureserver up at: <a href="http://pocus.wustl.edu/cgi-bin/featureserver2/featureserver.cgi/GIS?format=WFS">http://pocus.wustl.edu/cgi-bin/featureserver2/featureserver.cgi/GIS?format=WFS</a><br>
I have a quick openlayers map reading from the WFS at: <a href="http://pocus.wustl.edu/openlayers/wfs.html">http://pocus.wustl.edu/openlayers/wfs.html</a><br><br>Each county is supposed to have a feature, but every time I view the page or pan to a new area, I get:<br>
<br>Error: syntax error<br>Source File: <a href="http://pocus.wustl.edu/openlayers/wfs.html">http://pocus.wustl.edu/openlayers/wfs.html</a><br>Line: 1, Column: 1<br>Source Code:<br>An error occurred: current transaction is aborted, commands ignored until end of transaction block^<br>
<br>Here is my WFS layer creation:<br>url = "<a href="http://pocus.wustl.edu/cgi-bin/featureserver2/featureserver.cgi/GIS?format=WFS">http://pocus.wustl.edu/cgi-bin/featureserver2/featureserver.cgi/GIS?format=WFS</a>";<br>
wfs = new OpenLayers.Layer.WFS("WFS", url, {maxfeatures: "100"}, {extractAttributes: true});<br><br><br>eventually I'll raise maxfeatures to roughly 5k, but I'm starting low.<br><br>Anyone have any ideas? I would greatly appreciate it.<br>
Thanks!<br>-Ed<br>