Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.