[OpenLayers-Users] my road styleMap not working
Haftish 21
haftish21 at gmail.com
Fri Dec 11 06:52:14 EST 2009
Trying to define a styleMap of my road layer based on rdlnstattx attribute,
I defined a rule based on type as follows:
var rStyle = new OpenLayers.StyleMap();
var rType = new Array();
rType = {
FUN: { text: 'Functioning', strokeColor:"#ff0000", strokeWidth: 7 },
SCH: { text: 'Schematic road', strokeColor:"#0aa989", strokeWidth: 4
},
COM: { text: 'Compiled road connector', strokeColor:"#f4a427",
strokeWidth: 3 }
};
rStyle.addUniqueValueRules("default", 'rdlnstattx', rType);
But, nothing seems working. My styleMap on polygon layer is working well.
Where did I miss sth? Any clue???
Thank you in advance!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20091211/90c63053/attachment.html
More information about the Users
mailing list