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

ulao S_K_U_N_X at yahoo.com
Tue Aug 3 09:46:37 EDT 2010



You may want to listen to "featureadded" or "featuresadded" events instead.
> 

Got this from email, and used 

layer.events.on({
							 "featureadded": function(event) {
							 alert("in" + layer.features[layer.features.length-1].id);

							 }, scope: layer
						} ); 

Seems to do the trick

-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/need-to-know-when-a-feature-is-loaded-tp5368234p5368405.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list