Hi all,<br><br>I've googled and searched the examples and mail archives for the solution for this but can't quite find precisely what I'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('Points', '<a href="http://mygeoserver/geoserver/wfs?">http://mygeoserver/geoserver/wfs?</a>',{request:'GetFeature',PropertyName:'GEOLOC,SITE_REF',typeName:'gndp:points',isBaseLayer:'false',extractAttributes:'true'});</pre>
and that adds a layer of markers to the map which is great. What I now want is to add popups to these markers which simply displays the SITE_REF (I'll later change this to some slightly more glamorous HTML but for now that will do. <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. 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't get how to do this. Can someone give an example? 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>