[OpenLayers-Users] working with features

Gilberto Ramos sdjbm17 at gmail.com
Fri Jul 16 14:43:48 EDT 2010


To make sure your features are already loaded when you call them, code within
the 'loadend' event function:

function functionName(event) {
    for (var i = 0; i < layer.features.length; i++){
        var featureGeom = layer.features[i].geometry;
        alert(featureGeom);
    }
}

layer.events.register("loadend", this, functionName);


You might have an idea with the example what you should do!

Gilberto Ramos

-----
"For God so loved the world, that he gave his only begotten Son, that
whosoever believeth in him should not perish, but have everlasting life.
For God sent not his Son into the world to condemn the world; but that the
world through him might be saved.
He that believeth on him is not condemned: but he that believeth not is
condemned already, because he hath not believed in the name of the only
begotten Son of God." John 3:16-18
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/working-with-features-tp5301904p5303255.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list