[OpenLayers-Users] features vanish on zoom

ulao S_K_U_N_X at yahoo.com
Mon Jul 26 08:54:54 EDT 2010


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.



More information about the Users mailing list