[OpenLayers-Users] Confused about items on a map.
ulao
S_K_U_N_X at yahoo.com
Thu Jul 15 10:48:05 EDT 2010
ok very good.
Still not getting the result I'd expect with this code.
[code]
var linearRing = new OpenLayers.Geometry.LinearRing(points);
var obj = new OpenLayers.Geometry.Polygon([linearRing]);
var polygonFeature = new OpenLayers.Feature.Vector( obj );
shapeLayer.addFeatures(polygonFeature)
return polygonFeature;
[/code]
I know the object gets put on the map(shapeLayer), as I can see it but the
returned value.fid is null? Also according to some of what I read
"MapTools.shapeLayer.addFeatures(polygonFeature)" should return an array of
what was added, but its always undefined.
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Confused-about-items-on-a-map-tp5297445p5297735.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list