<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=929301722-11122009><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=929301722-11122009></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=929301722-11122009>perhaps this
works</SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=929301722-11122009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=929301722-11122009></SPAN>var rType
= <SPAN class=929301722-11122009>{}</SPAN>;<SPAN class=929301722-11122009>
//new Object()</SPAN><BR></DIV>
<DIV><SPAN class=929301722-11122009></SPAN><FONT face=Arial><FONT
color=#0000ff><FONT size=2>Arnd</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=929301722-11122009></SPAN></FONT></FONT></FONT><BR> </DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von </B>Haftish
21<BR><B>Gesendet:</B> Freitag, 11. Dezember 2009 12:52<BR><B>An:</B>
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] my road styleMap not
working<BR></FONT><BR></DIV>
<DIV></DIV>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></BODY></HTML>