Using OpenLayers 5.3.3
- Draw a circle
Get the extent of the circle in the
const extent = event.feature.getGeometry().getExtent();
The try to determine the features in the extent using
The collection of features returned include features that are outside the boundaries of the circle.
The same behavior occurs for an irregularly shaped polygon. However, for a drawn box it appears to work correctly.
Why is the
forEachFeatureInExtent not correctly returning the features in the specified extent? What has to be done differently for a circle or irregularly shaped polygon?