Is this not the way to do this?

var layer = new OpenLayers.Layer.Vector( name ); 
Map.addLayer(layer); 

 layer.events.register("loadend", layer, function (e) {
 alert("in");
         var objFs =  layer.features;
         for(var i=0;i<objFs.length;i++)
         {
                 alert(objFs[i])
         }
 });
 
I never see a single alert but I do see my features appear on the map.
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/need-to-know-when-a-feature-is-loaded-tp5368233p5368233.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to