<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY>
<DIV><FONT size=2 face=Arial><SPAN class=665305823-12102011>Hi
List,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial><SPAN class=665305823-12102011>I'm very new to
OpenLayers, and would greatly appreciate help with what I'm
doing wrong. I cannot get vector layers sourced from Geoserver to
display using the WFS Protocol. Please see the example
below.</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV align=left><FONT face=Verdana><FONT size=2><SPAN
class=665305823-12102011>Thanks in advance,</SPAN></FONT></FONT></DIV>
<DIV align=left><FONT face=Verdana><FONT size=2><SPAN
class=665305823-12102011></SPAN></FONT></FONT> </DIV>
<DIV align=left><FONT face=Verdana><FONT size=2><SPAN
class=665305823-12102011></SPAN>David McGee</FONT></FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT size=2 face=Arial><!DOCTYPE
html><BR><html><BR> <head><BR>
<title>WFS Visibility</title><BR> <link rel="stylesheet"
href="<A
href="http://www.openlayers.org/dev/examples/style.css">http://www.openlayers.org/dev/examples/style.css</A>"
type="text/css"><BR> <script src="<A
href='http://www.openlayers.org/dev/OpenLayers.js"></script'>http://www.openlayers.org/dev/OpenLayers.js"></script</A>><BR>
<script
type="text/javascript"><BR>
function
init(){<BR>
var map = new OpenLayers.Map( 'map'
);<BR> var
base = new OpenLayers.Layer.WMS( "WMS
base",<BR>
"<A
href="http://vmap0.tiles.osgeo.org/wms/vmap0">http://vmap0.tiles.osgeo.org/wms/vmap0</A>",<BR>
{<BR> layers:
"basic",<BR> transparent:
"true",<BR> format:
"image/png"<BR> },<BR> {isBaseLayer:
true, visibility:
true}<BR> );<BR> var poi_wfs = new
OpenLayers.Layer.Vector("poi WFS",
{<BR> strategies: [new
OpenLayers.Strategy.BBOX()],<BR> protocol: new
OpenLayers.Protocol.WFS ({<BR>
url: "<A
href="http://demo.opengeo.org/geoserver/wfs">http://demo.opengeo.org/geoserver/wfs</A>",<BR> featureType:
"poi",<BR> featureNS: "<A
href="http://www.census.gov">http://www.census.gov</A>",<BR> srsName:
"EPSG:4326",<BR> version:
"1.1.0"<BR> })<BR> }); <BR> map.addLayers([base,poi_wfs]);<BR> map.addControl(new
OpenLayers.Control.LayerSwitcher());<BR>
map.zoomToMaxExtent();<BR> }
<BR> </script><BR> </head><BR> <body
onload="init()"><BR> <div id="map"
class="smallmap"></div><BR>
</body><BR></html></FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT> </DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT> </DIV></BODY></HTML>