Anybody know if there is a possibility of using JSTS library with OL3, to create a circle for selecting marker in a map.

Actually i succeed creating a polygon which can select markers and return the name of the markers, but when i try to do the same with a circle it's not working. I can't find anywhere something helpful or an equivalent function of "PolyIntersectsPoly"

1 Answer 1


You can switch your draw circle to a proper polygon using the ol.geom.Polygon.fromCircle api doc here. In that way jsts can understand the polygon and perform the intersection.

Check the fiddle here to see it in action.


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.