[OpenLayers-Users] Cannot cycle through vector layer features

goliah bianchimro at gmail.com
Wed Jan 28 11:06:47 EST 2009


Dear all,

I want to cycle through a vector layer (GML in my case) features.
The layer loads and it's drawn, but i cannot access the features at all

example:

var overlay; //global variable

overlay = new OpenLayers.Layer.GML("GML", 'file.gml');

var l = overlay.features.length;   // this is ALWAYS 0!

The strange thing is that, using firebug and watching the expression
"overlay.features.length" gives me the right number of features.

Any idea?
Thanks
Mauro


-- 
View this message in context: http://n2.nabble.com/Cannot-cycle-through-vector-layer-features-tp2233009p2233009.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list