[OpenLayers-Users] need to know when a feature is loaded?

ulao S_K_U_N_X at yahoo.com
Tue Aug 3 09:05:28 EDT 2010


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.



More information about the Users mailing list