<!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 dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=072240216-14102011>Hi List:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=072240216-14102011></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN 
class=072240216-14102011>Why was my vector layer not visible? Javascript cannot 
access data from multiple domains. Many thanks to Roald de Wit for a response to 
my post (below). Server-side work-around is in the link from Roald's response. 
</SPAN></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=072240216-14102011><FONT 
color=#0000ff face=Arial></FONT></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT color=#0000ff size=2 face=Arial><SPAN 
class=072240216-14102011>
<DIV align=left><FONT size=2 face=Verdana>David McGee</FONT></DIV>
<DIV align=left><FONT size=1 face=Verdana>GIS Analyst (Geospatial)<BR>Law &amp; 
Community Safety Dep<SPAN class=280542016-27072010>artment</SPAN></FONT></DIV>
<DIV align=left><FONT size=1 face=Verdana>City of Richmond<BR>6911 No. 3 
Road<BR>Richmond, BC</FONT></DIV></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT color=#0000ff size=2 face=Arial><SPAN 
class=072240216-14102011></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT color=#0000ff size=2 face=Arial><SPAN 
class=072240216-14102011></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=072240216-14102011><FONT size=3 
face="Times New Roman">Hi,<BR><BR>You are requesting data from a domain that is 
different from yours. You'll need to use a proxy script.<BR>There is some more 
info about this requirement in the OpenLayers FAQ:<BR></FONT><A 
class=moz-txt-link-freetext 
title=http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost 
href="http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost"><FONT 
size=3 
face="Times New Roman">http://trac.osgeo.org/openlayers/wiki/FrequentlyAskedQuestions#ProxyHost</FONT></A><BR><BR><FONT 
size=3 face="Times New Roman">Regards, 
Roald</FONT><BR></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=072240216-14102011></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN 
class=072240216-14102011>&nbsp;</SPAN><STRONG>From:</STRONG> McGee, David 
<BR><B>Sent:</B> October 12, 2011 05:11 PM<BR><B>To:</B> 
'openlayers-users@lists.osgeo.org'<BR><B>Subject:</B> Cannot see Geoserver 
Vector Layer With WFS Protocol<BR></FONT></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT size=2 face=Arial><SPAN class=665305823-12102011>Hi 
List,</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial><SPAN class=665305823-12102011>I'm very new to 
OpenLayers, and would greatly&nbsp;appreciate help with what I'm 
doing&nbsp;wrong. &nbsp;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>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
<DIV align=left><FONT size=2 face=Arial>&lt;!DOCTYPE 
html&gt;<BR>&lt;html&gt;<BR>&nbsp; &lt;head&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
&lt;title&gt;WFS Visibility&lt;/title&gt;<BR>&nbsp; &lt;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"&gt;<BR>&nbsp; &lt;script src="<A 
href='http://www.openlayers.org/dev/OpenLayers.js"></script'>http://www.openlayers.org/dev/OpenLayers.js"&gt;&lt;/script</A>&gt;<BR>&nbsp; 
&lt;script 
type="text/javascript"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
function 
init(){<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
var map = new OpenLayers.Map( 'map' 
);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var 
base = new OpenLayers.Layer.WMS( "WMS 
base",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
"<A 
href="http://vmap0.tiles.osgeo.org/wms/vmap0">http://vmap0.tiles.osgeo.org/wms/vmap0</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; layers: 
"basic",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;transparent: 
"true",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;format: 
"image/png"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{isBaseLayer: 
true, visibility: 
true}<BR>&nbsp;&nbsp;&nbsp;&nbsp;);<BR>&nbsp;&nbsp;&nbsp;&nbsp;var poi_wfs = new 
OpenLayers.Layer.Vector("poi WFS", 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strategies: [new 
OpenLayers.Strategy.BBOX()],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol: new 
OpenLayers.Protocol.WFS ({<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
url: "<A 
href="http://demo.opengeo.org/geoserver/wfs">http://demo.opengeo.org/geoserver/wfs</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;featureType: 
"poi",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;featureNS: "<A 
href="http://www.census.gov">http://www.census.gov</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;srsName: 
"EPSG:4326",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;version: 
"1.1.0"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;})<BR>&nbsp;&nbsp;&nbsp;&nbsp;});&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;map.addLayers([base,poi_wfs]);<BR>&nbsp;&nbsp;&nbsp;map.addControl(new 
OpenLayers.Control.LayerSwitcher());<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
map.zoomToMaxExtent();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp; 
<BR>&nbsp; &lt;/script&gt;<BR>&nbsp; &lt;/head&gt;<BR>&nbsp; &lt;body 
onload="init()"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id="map" 
class="smallmap"&gt;&lt;/div&gt;<BR>&nbsp; 
&lt;/body&gt;<BR>&lt;/html&gt;</FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT>&nbsp;</DIV>
<DIV align=left><FONT size=2 face=Verdana></FONT>&nbsp;</DIV></BODY></HTML>