I know the vectors are still in development but if someone could help me it would be most appreciated. I'm pretty sure my code is right, but for some reason the program keeps messing up when i try to add the features to the vector. here is the relevant code:
<br><br>var linearRing = new OpenLayers.Geometry.LinearRing([<br> new OpenLayers.Geometry.Point(195090.60388669,1037165.33840374), <br> new OpenLayers.Geometry.Point(195223.79377482,1037117.84835569
),<br> new OpenLayers.Geometry.Point(195230.71396682,1037136.86838771),<br> new OpenLayers.Geometry.Point(195085.51383869,1037188.31824376),<br> new OpenLayers.Geometry.Point(195090.60388669
,1037165.33840374)]);<br> var polygon = new OpenLayers.Geometry.Polygon([linearRing]);<br> var vector = new OpenLayers.Layer.Vector("Vector Layer");<br> var feature = new OpenLayers.Feature();<br> feature.setGeometry
(polygon);<br> map.addLayer(vector);<br> vector.addFeatures(feature);<br><br>the error i get is :<br><br>this.root has no properties <br><br>the error occurs on Svg.js on line 165<br><br>does anyone have a clue as to why this isnt working? I know these coordinates are correct and the extents and everything else is correct, the only problme is this vector code.
<br> <br><br><br>