<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Arial">Hi guys,<br>
<br>
I'm have one layer that i want style </font><font face="Arial"><span
id="result_box" class="short_text" lang="en"><span class="hps">according</span></span>
attributes (id and name) values.<br>
Its a layer with many features and, for all, i want a different
style.<br>
My question is if its possible get attributes values in style.
Something like that:<br>
<br>
new OpenLayers.Rule({<br>
title: feature.attribute.name
<-----------------here<br>
symbolizer: {<br>
graphicWidth: 30,<br>
graphicHeight: 30,<br>
graphicYOffset: -26,<br>
graphicOpacity: 1,<br>
externalGraphic:
"../../img/simbologia_layers/pdi/" + feature.attribute.id + ".png"
--------------here<br>
}<br>
}),<br>
<br>
If not i have to write a rule for all my features in the layer?I
can use a for loop but i can get the name....<br>
<br>
Thanks<br>
</font>
</body>
</html>