I am having trouble finding working examples in OpenLayers 5.3 where conic sections and/or sectors can be drawn.
Does anyone have any working code or can point to the correct classes to use?
Here's some examples of shapes I am looking to draw
I am able to make a basic version of the shape by doing this (though I'm sure there's a way more efficient way):
const outer = fromCircle(new Circle(map.getView().getCenter(), myRadius), 128); const half = Math.ceil(outer.getCoordinates().length / 2); outer.setCoordinates([outer.getCoordinates().splice(0, half)]); const inner = fromCircle(new Circle(map.getView().getCenter(), myRadius / 10), 128), outer.appendLinearRing(new LinearRing(inner.getCoordinates())); const myFeature = new Feature(outer);