0

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.

1 Answer 1

3

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/

1

Your Answer

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

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