Hi all,<br><br>I&#39;ve googled and searched the examples and mail archives for the solution for this but can&#39;t quite find precisely what I&#39;m looking for so I wonder if someone could help out?<br><br>I have so far managed to get a standard OpenLayers setup and added a WMS base layer and a WFS layer which returns 2 pieces of data, a point geometry (GEOLOC) and a site reference (SITE_REF) using the following code:<br>
<pre style="font-family: courier new,monospace;" id="line1">var layer2= new OpenLayers.Layer.WFS(&#39;Points&#39;, &#39;<a href="http://mygeoserver/geoserver/wfs?">http://mygeoserver/geoserver/wfs?</a>&#39;,{request:&#39;GetFeature&#39;,PropertyName:&#39;GEOLOC,SITE_REF&#39;,typeName:&#39;gndp:points&#39;,isBaseLayer:&#39;false&#39;,extractAttributes:&#39;true&#39;});</pre>
and that adds a layer of markers to the map which is great.&nbsp; What I now want is to add popups to these markers which simply displays the SITE_REF (I&#39;ll later change this to some slightly more glamorous HTML but for now that will do.&nbsp; <br>
It seems like I may have to use <span style="font-family: courier new,monospace;">featureClass: OpenLayers.Feature.WFS</span> as shown in the example here: <a href="http://openlayers.org/dev/examples/wfs.html">http://openlayers.org/dev/examples/wfs.html</a> but that appears to give the same functionality I already have.&nbsp; There is a suggestion to subclass <span style="font-family: courier new,monospace;">OpenLayers.Feature.WFS</span> in order to add a popup but my js skills are weak and I don&#39;t get how to do this.&nbsp; Can someone give an example?&nbsp; Which methods need to be overridden and how do I get my data into the popup?<br>
<br>Furthermore, is it possible to load the WFS layer as a tiled layer so I can cache the results? and how do I set a different icon?<br><br>thanks in advance,<br><br>Tom<br>