<div dir="ltr"><div>(sorry for the cross-posting but never been able to subscribe to [openlayers-users], maybe you can help)</div><div> </div><div>---------- Forwarded message ----------<br>From: <b class="gmail_sendername">John Smith</b> <span dir="ltr"><<a href="mailto:jayzee.smith@gmail.com">jayzee.smith@gmail.com</a>></span><br>
Date: Thu, Sep 19, 2013 at 11:48 AM<br>Subject: [OpenLayers-Users] styling wfs in 2.7?<br>To: <a href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a><br>Cc: <a href="mailto:openlayers@metacarta.com">openlayers@metacarta.com</a></div>
<div class="gmail_quote"> </div><div class="gmail_quote">Protocol.WFS is not supported in 2.7 and this doesn't work. any help appreciated.</div><div class="gmail_quote" dir="ltr"><div> </div><div>// create stylemap<br>
var my_style = new OpenLayers.StyleMap({<br> "default": new OpenLayers.Style({<br>
  pointRadius: "10",<br>  fillColor: "#ffcc66",<br>  strokeColor: "#ff9933",<br>  strokeWidth: 2,<br>  graphicZIndex: 1<br> }),<br> "select": new OpenLayers.Style({<br>  fillColor: "#66ccff",<br>

  strokeColor: "#3399ff",<br>  graphicZIndex: 2<br> })<br>});</div><div><br>// create layer and apply stylemap<br>my_layer = new OpenLayers.Layer.WFS("info",<br> "/cgi-bin/info?crs=crs:84",<br>

 { styleMap: my_style },<br> { typename: 'search' },<br> { extractAttributes: true }<br></div><div>thanks, jzs</div><div> </div></div></div>