I&#39;m trying to get point features ( in a vector kml layer) size to scale with an attribute value named &quot;Water_Leve&quot;<br><br>I tried to test this in Firebug like this:<br>map.layers[1].styleMap.styles.default.defaultStyle.pointRadius=&#39;${Water_Leve}&#39;;<br>
<br>and got the error message:<br><span class="objectBox objectBox-errorMessage "><span class="errorMessage ">Unexpected value ${Water_Leve} parsing r attribute.<br><br>I think that the attribute may have been registered as a string when i created the kml file from a shapefile earlier (is there a quick way to check the data type of an attribute in firebug?)<br>
<br>So i tried to convert it to float on the fly like this:<br><br></span></span><span class="objectBox objectBox-errorMessage "><span class="errorMessage ">map.layers[1].styleMap.styles.default.defaultStyle.pointRadius=parseFloat(&#39;${Water_Leve}&#39;);<br>
and got the message:<br></span></span><span class="objectBox objectBox-errorMessage opened"><span class="errorMessage ">Unexpected value NaN parsing r attribute.<br><br>Can someone help me get this right?<br><br>Thanks,<br>
Vishal<br clear="all"></span></span><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>