[OpenLayers-Users] Features Attribute

Luciano - Uol l.s.borges at uol.com.br
Thu Sep 25 11:16:37 EDT 2008


Hi All,

What is the features attribute?

I've this code:
  polygonLayer.events.register('featureadded',
                                polygonLayer,
                                function(){
                                  var x = 
this.features[this.features.length-1].id;
                                  alert(x);
                                }
                                );

I'd like to get the area from the polygon that i had draw.

Luciano.



More information about the Users mailing list