I have a standard OpenLayers features with geometry and containing some additional data. Like this:
...
data: [3 ,8]
id: 5
isCluster: true
lat: -14.018995915348285
lon: -113.59550725071185
...
where isCluster indicates that it is a cluster and data that there is 2 elements in it. All computations are made on server. I just want to set some style to the feautre. Like in this example (http://acuriousanimal.com/code/animatedCluster/, code here in Git). How I can say to style to select appropriate rule dependidng of data.length property?
In the above mentioned example it is done in this way:
filter: new OpenLayers.Filter.Comparison({
type: OpenLayers.Filter.Comparison.LESS_THAN,
property: "count",
value: 15
}),
What I need to write in property field? Or there is another way?