Take the 2-minute tour ×
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 an OpenLayers map with point clustering, but I want to apply a much finer granularity to the data represented in the map. Specifically, I want to stratify the clusters according to an attribute on the feature (we'll call it 'category').

So, say I have five categories: effectively I need to cluster points only with other points from the same category. I suppose this could be accomplished with five different layers, but this quickly becomes cumbersome as the number of categories gets large (I have 50+ at the moment).

Has anyone seen anything like this with OpenLayers?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Have you checked the dev examples ?

I'm pretty sure you could 'group' them by an attribute. The last example has good info.

share|improve this answer
1  
Funny, I had picked through the first two and somehow dismissed the third. This is exactly what I'm looking for. Thanks a lot! –  Tony Oct 17 '12 at 16:26
    
No problem at all, I knew I had just seen it going through them for other things, I stumbled upon it using the search function on that page. very handy. –  Glenn Plas Oct 17 '12 at 19:47

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.