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: 'Functioning', strokeColor:"#ff0000", strokeWidth: 7 },<br>
SCH: { text: 'Schematic road', strokeColor:"#0aa989", strokeWidth: 4 },<br> COM: { text: 'Compiled road connector', strokeColor:"#f4a427", strokeWidth: 3 }<br> };<br>
<br>rStyle.addUniqueValueRules("default", 'rdlnstattx', 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>