I want to plot a circular Polygon feature that covers 200 hectares on an OpenLayers map. The projection of the map and data is set to EPSG:3857.
I believe the solution lies in this code (source), but how do I adapt it for my needs? I’m struggling to wrap my head around it.
new ol.geom.Circle(centerLongitudeLatitude,200*1000/ol.proj.getPointResolution('EPSG:3857', 1, centerLongitudeLatitude))
And this is how I am drawing the circle:
const geometry = myFeature.getGeometry();
const circle = new Circle(geometry.getCoordinates(), myFeature.get("SIZE_HECTARES"));
myFeature.setGeometry(fromCircle(circle));