Trying to define a styleMap of my road layer based on rdlnstattx attribute, I defined a rule based on type as follows:<br><br>var rStyle = new OpenLayers.StyleMap();<br>var rType = new Array();<br>   <br>rType = {<br>        FUN: { text: &#39;Functioning&#39;, strokeColor:&quot;#ff0000&quot;, strokeWidth: 7 },<br>
        SCH: { text: &#39;Schematic road&#39;, strokeColor:&quot;#0aa989&quot;, strokeWidth: 4 },<br>        COM: { text: &#39;Compiled road connector&#39;, strokeColor:&quot;#f4a427&quot;, strokeWidth: 3 }<br>        };<br>
<br>rStyle.addUniqueValueRules(&quot;default&quot;, &#39;rdlnstattx&#39;, rType);<br><br>But, nothing seems working. My styleMap on polygon layer is working well. Where did I miss sth? Any clue???<br><br>Thank you in advance!!!<br>