You can use the Circle object to display it;
new google.maps.Circle({ map : map, center : new google.maps.LatLng(lat,lng), strokeColor:'#00FFCC', strokeWeight:2, fillOpacity:0, radius:radiusm });
And we apply the Pythagorean theorem to the coordinates: but in this case make it a “real” circle, since the ratio between 1 ° latitude and longitude varies at different latitudes, you should at least configure them like this:
var kmRadius = 100; //(radius of 100 km) var lat_gap = kmRadius/111.1; var lng_gap = lat_gap / Math.cos(lat / (Math.PI/180));
source share