<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY defanghtml_style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Here is how I specify a styleMap:</DIV>
<DIV> </DIV>
<DIV> var style_gate = new OpenLayers.StyleMap({"default": new OpenLayers.Style({<BR> "graphicOpacity":1,<BR> "externalGraphic":"markers/main_gate_16.gif",<BR> "graphicXOffset":-8,<BR> "graphicYOffset":-8,<BR> "graphicWidth":16,<BR> "graphicHeight":16,<BR> "id":"main_gate",<BR> "strokeLinecap":"round",<BR> "strokeOpacity":1,<BR> "fillOpacity":1,<BR> "pointRadius":8})<BR> });</DIV>
<DIV> </DIV>
<DIV>I then reference this in my WFS layer definition:</DIV>
<DIV> </DIV>
<DIV>var maingatewfs = new OpenLayers.Layer.WFS("Main Gate",<BR> "<A href='http://10.65.192.1/cgi-bin/agbwfs.exe?farmid="+farmid+"&request=getfeature&typename=main_gates&service=wfs&version=1.0.0&BBOX="+x1+","+y1+","+x2+","+y2+"&maxfeatures=10'>http://10.65.192.1/cgi-bin/agbwfs.exe?farmid="+farmid+"&request=getfeature&typename=main_gates&service=wfs&version=1.0.0&BBOX="+x1+","+y1+","+x2+","+y2+"&maxfeatures=10</A>",<BR> {styleMap: style_gate, extractAttributes: true} );<BR> map.addLayer(maingatewfs);</DIV>
<DIV> </DIV>
<DIV>However, I am still getting the standard translucent orange point symbol.</DIV>
<DIV> </DIV>
<DIV>Can anyone point out what is wrong?</DIV>
<DIV> </DIV>
<DIV>Many thanks,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson</DIV>
<DIV> </DIV>
<DIV><BR><BR>>>> "Robert Sanson" <SansonR@asurequality.com> 15/09/2008 4:47 p.m. >>><BR></DIV>
<DIV>I have a map with three WFS point lfeature ayers. I want to use different markers for each WFS layer. How do I specify the icons to use?</DIV>
<DIV> </DIV>
<DIV>Many thanks,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson</DIV><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<br>
------------------------------------------------------------------</td></tr></table><br><br>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been scanned for malware by SurfControl plc. </FONT><A href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff" color=#000000>www.surfcontrol.com</FONT></A></P>
</body></HTML>