How to show a 10km radius surrounded by the selected polygon?
Hey guys, I'm still a beginner in working with google maps and ReactJS.
I have a property that is rendered on the map. This property is a set of several polygons, all of these polygons together form the property (farm).
When I click on a particular polygon, I get all the coordinates of that polygon that was clicked:
I would like to know, is it possible to show a 10km radius surrounded by the selected polygon?
From what I've researched, it is possible to show a radius through a single point, that is, a single latitude, and a single longitude. In my case, a polygon can have hundreds of latitutes and hundreds of longitutes. As you can see in the image above.
Can you tell me how do I configure a 10km radius based on the polygon that was selected?
My code got big, so I put my code into codesandbox
Thank you in advance.