I have to draw a polygon on a vector layer on a simple OpenLayers OSM map (WebMercator). What I know:
- the center (lat/lon) of this polygon
- the lengths (in meters) of each side.
I can pre-calculate the mercator coordinates of each vertice at a given position (for example lat/lon 0,0) and save them on a DB.
To do so, I'm using libraries I cannot use in my application backend.
But what I need is to move this polygon around the world keeping the right dimensions in meters: the user needs to view on the map the real size of that object.
So, is there any way to reproject the moved object in the new location? Or at least to create a new geometry each time in the new position by simply know the sides lengths?