Thanks. I still get in FireBug:<br><br><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch opened"><div class="errorTitle">OpenLayers.Protocol.WFS is not a constructor</div><div class="errorTrace"><div class="objectBox objectBox-stackFrame">
<a class="objectLink">init</a>()<span class="objectLink-sourceLink objectLink">openlayers3.html (line 83)</span></div><div class="objectBox objectBox-stackFrame"><a class="objectLink">onload</a>(<a class="objectLink objectLink-object">load </a><span class="arrayComma"></span>)<span class="objectLink-sourceLink objectLink">7tnQksP2...GPg%3D%3D (line 2)</span></div>
</div><div class="errorSourceBox errorSource-exec"><img src="chrome://firebug/content/blank.gif" title="Break on this error" class="errorBreak"><span class="errorSource">            featureNS: &quot;kulturminner_ns&quot;,   })</span></div>
</span><br><br>In the demo page og GeoServer I see the layer as &quot;<b><a href="http://naturkart.no:8080/geoserver/wms?bbox=582633.35,6523100.745,673298.65,6636394.255&amp;styles=&amp;Format=application/openlayers&amp;request=GetMap&amp;version=1.1.1&amp;layers=kulturminner_ns:gravminne&amp;width=490&amp;height=550&amp;srs=EPSG:32632" target="_blank">kulturminner_ns:gravminne</a>&quot;</b> so am I writing this correctly?<br>
<br>       map.addLayer(new OpenLayers.Layer.Vector(&quot;Gravminne&quot;, {<br>            strategies: [new OpenLayers.Strategy.BBOX()],<br>            projection: new OpenLayers.Projection(&quot;EPSG:4326&quot;),<br>            protocol: new OpenLayers.Protocol.WFS({<br>
            srsName: &quot;EPSG:4326&quot;,<br>            url: &quot;<a href="http://naturkart.no:8080/geoserver/wfs&amp;request=getmap">http://naturkart.no:8080/geoserver/wfs&amp;request=getmap</a>&quot;,<br>            featureType: &quot;gravminne&quot;,<br>
            featureNS: &quot;kulturminner_ns&quot;,   })<br>                   }<br>               ));<br><br><br><div class="gmail_quote">2009/3/29 Ingo Weinzierl <span dir="ltr">&lt;<a href="mailto:ingo.weinzierl@intevation.de">ingo.weinzierl@intevation.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style=""><div>Hello Asle,</div><div><br></div><div>I don&#39;t know if this could solve your problem, but I am using a vector layer as well.</div>
<div>Defining the WFS protocol looks a bit different from yours:</div><div><br></div><div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">    wfs = </span></font><span style="color: rgb(166, 23, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">new</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;"> OpenLayers.Layer.Vector(</span></font></div>
<div style="margin: 0px; color: rgb(128, 18, 179);"><span style="color: rgb(0, 0, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">        </span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;">&quot;Name of the Layer&quot;</span></font><span style="color: rgb(0, 0, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">,</span></font></span></div>
<div class="im"><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">        {</span></font></div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">            strategies: [</span></font><span style="color: rgb(166, 23, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">new</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;"> OpenLayers.Strategy.BBOX()],</span></font></div>
</div><div class="im"><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">            projection: </span></font><span style="color: rgb(166, 23, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">new</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;"> OpenLayers.Projection(</span></font><span style="color: rgb(128, 18, 179);"><font face="Helvetica" size="3"><span style="font-size: 12px;">&quot;EPSG:4326&quot;</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;">),</span></font></div>
</div><div class="im"><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">            protocol: </span></font><span style="color: rgb(166, 23, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">new</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;"> OpenLayers.Protocol.WFS({</span></font></div>
</div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">                srsName: </span></font><span style="color: rgb(128, 18, 179);"><font face="Helvetica" size="3"><span style="font-size: 12px;">&quot;EPSG:4326&quot;</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;">,</span></font></div>
<div style="margin: 0px; color: rgb(128, 18, 179);"><span style="color: rgb(0, 0, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">                url: </span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;">&quot;<a href="http://localhost:8080/geoserver/wfs" target="_blank">http://localhost:8080/geoserver/wfs</a>&quot;</span></font><span style="color: rgb(0, 0, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">,</span></font></span></div>
<div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">                featureType: </span></font><span style="color: rgb(128, 18, 179);"><font face="Helvetica" size="3"><span style="font-size: 12px;">&quot;rohre_graben_damm&quot;</span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;">,</span></font></div>
<div style="margin: 0px; color: rgb(128, 18, 179);"><span style="color: rgb(0, 0, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">                featureNS: </span></font></span><font face="Helvetica" size="3"><span style="font-size: 12px;">&quot;<a href="http://www.openplans.org/topp" target="_blank">http://www.openplans.org/topp</a>&quot;</span></font><span style="color: rgb(0, 0, 0);"><font face="Helvetica" size="3"><span style="font-size: 12px;">,</span></font></span></div>
<div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">            })</span></font></div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">        }</span></font></div>
<div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">    );</span></font></div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;"><br></span></font></div>
<div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">I hope this can help you.</span></font></div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;"><br>
</span></font></div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">Regards,</span></font></div><div style="margin: 0px;"><font face="Helvetica" size="3"><span style="font-size: 12px;">Ingo</span></font></div>
</div><br><div><div>Am 29.03.2009 um 03:28 schrieb Asle Benoni:</div><br><blockquote type="cite"><div><div></div><div class="h5">I changed the URL but still get this response:<br><br><span><b>OpenLayers.Protocol.WFS is not a constructor<br>
</b><br> map.addLayer(new OpenLayers.Layer.Vector(&quot;Gravminne&quot;, {<br>    strategies: [new OpenLayers.Strategy.BBOX()],<br>   protocol: new OpenLayers.Protocol.WFS({<br>       url: &quot;<a href="http://naturkart.no:8080/geoserver/wfs&amp;request=getmap" target="_blank">http://naturkart.no:8080/geoserver/wfs&amp;request=getmap</a>&quot;,<br>
        typeName: &quot;gravminne&quot;,<br>       featurePrefix: &quot;kulturminner_ns&quot;<br>   })<br>   }));<br><br>/asle<br><br></span><div class="gmail_quote">2009/3/28 Andreas Hocevar <span dir="ltr">&lt;<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>&gt;</span><br>
 <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">add &amp;request=getmap to your url.<br> <br> Regards,<br> andreas.<br> <div><div></div><div>
<br> On 3/28/09, Asle Benoni &lt;<a href="mailto:asle.benoni@gmail.com" target="_blank">asle.benoni@gmail.com</a>&gt; wrote:<br> &gt; Hello,<br> &gt; I tried the new WFS code but I still get this response:<br> &gt;<br> &gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;!DOCTYPE<br>
 &gt; ServiceExceptionReport SYSTEM &quot;http:<br> &gt; //<a href="http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd" target="_blank">schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd</a>&quot;&gt;<br> &gt; &lt;ServiceExceptionReport version=&quot;1.1.1&quot; &gt;<br>
 &gt;   &lt;ServiceException code=&quot;MissingParameterValue&quot; locator=&quot;request&quot;&gt;<br> &gt;       Could not determine geoserver request from http request<br> &gt; org.apache.catalina.connector.RequestFacade<br>
 &gt; @10f829<br> &gt; &lt;/ServiceException&gt;&lt;/ServiceExceptionReport&gt;<br> &gt;<br> &gt;<br> &gt; I wonder if this WFS call can give me what I want with a KML response. I<br> &gt; want to be able to click on the location and a popup with a style for the<br>
 &gt; popup, show a picture, a link etc. fetched from the PostgreSQL table.<br> &gt;<br> &gt; /asle<br> &gt;<br> &gt; 2009/3/27 Andreas Hocevar &lt;<a href="mailto:ahocevar@opengeo.org" target="_blank">ahocevar@opengeo.org</a>&gt;<br>
 &gt;<br> &gt;&gt; Hi,<br> &gt;&gt;<br> &gt;&gt; On Thu, Mar 26, 2009 at 5:08 PM, Asle Benoni &lt;<a href="mailto:asle.benoni@gmail.com" target="_blank">asle.benoni@gmail.com</a>&gt;<br> &gt;&gt; wrote:<br> &gt;&gt; &gt; I am really frustrated about not beeing able to display a kmz layer in<br>
 &gt;&gt; &gt; OpenLayers.<br> &gt;&gt; &gt; Here is the code:<br> &gt;&gt; &gt;<br> &gt;&gt; &gt;                 map.addLayer(new OpenLayers.Layer.GML(&quot;Gravminne&quot;, &quot;<br> &gt;&gt; <a href="http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;transparent=true&amp;srs=EPSG:4326&amp;transparent=true&amp;" target="_blank">http://naturkart.no:8080/geoserver/wms/kml?layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;transparent=true&amp;srs=EPSG:4326&amp;transparent=true&amp;</a><br>
 &gt;&gt; &gt; &quot;,<br> &gt;&gt; &gt;                {<br> &gt;&gt; &gt;                 format: OpenLayers.Format.KML,<br> &gt;&gt; &gt;                 formatOptions: {<br> &gt;&gt; &gt;                   extractStyles: true,<br>
 &gt;&gt; &gt;                   extractAttributes: true,<br> &gt;&gt; &gt;                   transparent:true<br> &gt;&gt; &gt;                 }<br> &gt;&gt; &gt;                }));<br> &gt;&gt;<br> &gt;&gt; The geoserver url you are using here will always return KMZ, which<br>
 &gt;&gt; OpenLayers cannot parse. Instead, you should use the following to<br> &gt;&gt; create your layer:<br> &gt;&gt;<br> &gt;&gt; map.addLayer(new OpenLayers.Layer.WFS(&quot;Gravminne&quot;,<br> &gt;&gt; &quot;<br> &gt;&gt; <a href="http://naturkart.no:8080/geoserver/wms?service=WMS&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=kml&amp;srs=EPSG:4326" target="_blank">http://naturkart.no:8080/geoserver/wms?service=WMS&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=kml&amp;srs=EPSG:4326</a><br>
 &gt;&gt; &quot;,<br> &gt;&gt;                 {<br> &gt;&gt;                 format: OpenLayers.Format.KML,<br> &gt;&gt;                 formatOptions: {<br> &gt;&gt;                   extractStyles: true,<br> &gt;&gt;                   extractAttributes: true<br>
 &gt;&gt;                 }<br> &gt;&gt;                 }));<br> &gt;&gt;<br> &gt;&gt; Is there a specific reason why you  want to use KML? WFS would give<br> &gt;&gt; you the same result, you would only have to use a style map for your<br>
 &gt;&gt; symbology in addition. This is how to add the layer using the new WFS<br> &gt;&gt; protocol:<br> &gt;&gt;<br> &gt;&gt; map.addLayer(new OpenLayers.Layer.Vector(&quot;Gravminne&quot;, {<br> &gt;&gt;    strategies: [new OpenLayers.Strategy.BBOX()],<br>
 &gt;&gt;    protocol: new OpenLayers.Protocol.WFS({<br> &gt;&gt;        url: &quot;<a href="http://naturkart.no:8080/geoserver/wfs" target="_blank">http://naturkart.no:8080/geoserver/wfs</a>&quot;,<br> &gt;&gt;        typeName: &quot;gravminne&quot;,<br>
 &gt;&gt;        featurePrefix: &quot;kulturminner_ns&quot;<br> &gt;&gt;    })<br> &gt;&gt; ));<br> &gt;&gt;<br> &gt;&gt; For the symbology, you can use OpenLayers.Format.SLD to use a sld file<br> &gt;&gt; that you already have on your server. Look at examples/SLD.html to see<br>
 &gt;&gt; how to configure this.<br> &gt;&gt;<br> &gt;&gt; And you need OpenLayers.ProxyHost configured with a working proxy url.<br> &gt;&gt;<br> &gt;&gt; If a map image rendered on the server would also do, you could just<br>
 &gt;&gt; use a WMS layer, and don&#39;t even need a ProxyHost:<br> &gt;&gt;<br> &gt;&gt; map.addLayer(new OpenLayers.Layer.WMS(&quot;Gravminne&quot;;<br> &gt;&gt; &quot;<a href="http://naturkart.no:8080/geoserver/wms" target="_blank">http://naturkart.no:8080/geoserver/wms</a>?&quot;, {<br>
 &gt;&gt;    transparent: true,<br> &gt;&gt;    layers: &quot;kulturminner_ns:gravminne&quot;<br> &gt;&gt; }));<br> &gt;&gt; }<br> &gt;&gt;<br> &gt;&gt; &gt; I can see the http request from the proxy so it is fetching correct<br>
 &gt;&gt; &gt; data (I think) but I cannot see any on the map!<br> &gt;&gt; &gt; The request looks like this (FireBug). I am not sure if the EPSG is<br> &gt;&gt; &gt; correct. I also tried &quot;EPSG:32632&quot; which I set for the map.<br>
 &gt;&gt;<br> &gt;&gt; With the WFS setup above (first of my code snippets), the data should<br> &gt;&gt; be automatically reprojected to the SRS of your map.<br> &gt;&gt;<br> &gt;&gt; &gt; Can anyone point to how to show a KMZ file from GeoServer as I need<br>
 &gt;&gt; &gt; the options for that layer format. I checked the docs but did not get<br> &gt;&gt; &gt; wiser.<br> &gt;&gt;<br> &gt;&gt; As already said, OpenLayers can not parse KMZ, only KML. To make<br> &gt;&gt; GeoServer output KML, your request would have to be a WMS request and<br>
 &gt;&gt; look like this:<br> &gt;&gt;<br> &gt;&gt;<br> &gt;&gt; <a href="http://naturkart.no:8080/geoserver/wms/?service=wms&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;format=kml&amp;bbox=0,0,180,90&amp;width=500&amp;height=250&amp;srs=EPSG:4326" target="_blank">http://naturkart.no:8080/geoserver/wms/?service=wms&amp;request=GetMap&amp;layers=kulturminner_ns:gravminne&amp;format=application/vnd.google-earth.kml+XML&amp;format=kml&amp;bbox=0,0,180,90&amp;width=500&amp;height=250&amp;srs=EPSG:4326</a><br>
 &gt;&gt;<br> &gt;&gt; This is what will get generated with the second of my code snippets above.<br> &gt;&gt;<br> &gt;&gt; Regards,<br> &gt;&gt; Andreas.<br> &gt;&gt;<br> &gt;&gt; --<br> &gt;&gt; Andreas Hocevar<br> &gt;&gt; OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
 &gt;&gt; Expert service straight from the developers.<br> &gt;&gt;<br> &gt;<br> <br> </div></div><font color="#888888">--<br> Sent from my mobile device<br> </font><div><div></div><div><br> Andreas Hocevar<br> OpenGeo - <a href="http://opengeo.org/" target="_blank">http://opengeo.org/</a><br>
 Expert service straight from the developers.<br> </div></div></blockquote></div><br></div></div> _______________________________________________<br>Users mailing list<br><a href="mailto:Users@openlayers.org" target="_blank">Users@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/users" target="_blank">http://openlayers.org/mailman/listinfo/users</a><br></blockquote></div><br></div></blockquote></div><br>