[OpenLayers-Users] Attributes feature layer

Justin Stern jstern81 at gmail.com
Tue Sep 2 09:01:07 EDT 2008


You can loop through the attributes (methods and members) of any
object in Javascript with something like the following:

for(var k in obj) // do something with obj[k]

Hope this helps

On Tue, Sep 2, 2008 at 7:34 AM, Bas Couwenberg <bascouwenberg at gmail.com> wrote:
> Hello,
>
> is it possbile to loop through the attributes of a feature without knowing
> the attribute names? I have tried this with the toSource() function but this
> one isn't supported in IE.
>
> Best regards,
>
> Bas
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>



More information about the Users mailing list