Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to cluster KML features in OpenLayers, and are there any samples?

I can find separate samples for clusters and KML but nothing which handles both together.


share|improve this question
up vote 3 down vote accepted

It's definitely possible. Add your KML file as layer type = Vector, protocol = HTTP, format = KML, and add a Fixed and a Cluster strategy to your list of strategies[]. Assuming you have code to work from since you mentioned you've seen examples of both. If not, look at samples here:

share|improve this answer
thanks, I'll give that a go. – Stephen Lead Jul 4 '12 at 1:30
Vadim is correct, it works perfectly well. UPVOTED! see this question for further explanations – tony gil Mar 8 '13 at 23:11

Your Answer


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.