hmmm...but i gathered from Chapter 9 of the OpenLayers book, on StyleMaps and Styles, that its possible to assign styles to attributes in a manner similar to what i tried? At the same time the response i'm getting is consistent with your reply.<div>
-Vishal<div><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 12:54 PM, Rossko <span dir="ltr"><<a href="mailto:rossko@culzean.clara.co.uk">rossko@culzean.clara.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">><br>
map.layers[1].styleMap.styles.default.defaultStyle.pointRadius='${Water_Leve}';<br>
</div>...<br>
<div class="im">> I think that the attribute may have been registered as a string<br>
<br>
</div>What attribute? To javascript '${Water_Leve}' is a string, pure and simple,<br>
with a $ character, a { character, a W character, etc etc.<br>
<br>
> ... =parseFloat('${Water_Leve}');<br>
<br>
It's still just a string, so parseFloat of a non-numeric string give result<br>
NaN (Not a Number), just as it should.<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Styling-point-features-by-attribute-values-tp6483796p6484513.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Styling-point-features-by-attribute-values-tp6483796p6484513.html</a><br>
Sent from the OpenLayers Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Vishal K. Mehta, PhD<br>Scientist<br>Stockholm Environment Institute - US<br>133 D St Suite F<br>Davis CA 95616<br><a href="http://www.sei-us.org">www.sei-us.org</a><br>
</div></div>