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.

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.

Thanks

share|improve this question

1 Answer 1

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:

http://dev.openlayers.org/releases/OpenLayers-2.12/examples/

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 stackoverflow.com/q/15300467/1166727 –  tony gil Mar 8 '13 at 23:11

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.