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?

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.

  • 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 Boyles 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 clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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