10

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?

1 Answer 1

5

Have you checked the dev examples ?

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

2
  • 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! Oct 17, 2012 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, 2012 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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