Ok it only seems do be LineString, not polygons. I have this code in my
function now. Am I doing the linestring right?



var linearRing = new OpenLayers.Geometry.LinearRing(points);
         if (type == "polygon" || type == "Polygon") var obj = new
OpenLayers.Geometry.Polygon([linearRing]);
         if (type == "poly" || type == "Poly") var obj = new
OpenLayers.Geometry.LineString(points);
     var polygonFeature = new OpenLayers.Feature.Vector( obj );
...



-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/features-vanish-on-zoom-tp5330701p5337811.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to