2

In this leaflet example. When hovered over a cluster marker, it shows the bounding area of the clustered features which is known as convex hull.

Is there a way to reproduce it with OpenLayers?

1
  • 1
    The example is impressive, but I'm afraid there's no such tool available in openlayers. You have to implement the algorithm by yourself.
    – mfdev
    Sep 12, 2013 at 14:17

3 Answers 3

3

For anyone who ends up here, there is an OL extension which mimics the same functionality as Leaflet. https://github.com/Viglino/ol-ext

For demo example see: https://viglino.github.io/ol-ext/examples/geom/map.convexhull.html

1
  • ol-ext extension from example does not work in IE11, since it uses ES6 syntax.
    – TomazicM
    Feb 8, 2019 at 15:48
2

No, there are no tools yet for this purpose.

1

Computing a Convex Hull is possible in OpenLayers by using the external JSTS library. Although I haven't tried its implementation for convex hull, I have used it to create buffer/union etc.

For more please go to this url also here you will find its implementation.

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.