How get the attributes list from a feature in OpenLayers 3

المشرف العام

Administrator
طاقم الإدارة
I'm getting a Vector layer from a WMS server, but I dont know which field are include it.

In previous version feature object had a attributes collection but I can't find it now.

Is there a way of cicle for feature attributes?

Right now I can use Feature.get('Name') and can get the value. But only if I know 'Name' is an attribute.

Now imagine I do find a [Name] field or something similar.

Is possible do a getFeaturesByAttribute('Name', strName);

Also available in previous version. But cant find it on open layer 3.



أكثر...
 
أعلى