Javascript 如何在谷歌地图上画一个圆

Javascript 如何在谷歌地图上画一个圆,javascript,jquery,google-maps,google-maps-api-3,Javascript,Jquery,Google Maps,Google Maps Api 3,如果用户有纬度、经度和半径,如何在谷歌地图上的某个位置而不是中心画一个圆? ! 听起来,如果你有你想要的纵横比和半径,那么你可以在地图上的某个地方定义一个点,然后在该点上绑定一个圆 听起来,如果你有你想要的纵横比和半径,那么你可以在地图上的某个地方定义一个点,然后在该点上绑定一个圆 第一个谷歌结果:第一个谷歌结果: google.maps.CircleOptions // Create marker var marker = new google.maps.Marker({ map: m

如果用户有纬度、经度和半径,如何在谷歌地图上的某个位置而不是中心画一个圆?

!

听起来,如果你有你想要的纵横比和半径,那么你可以在地图上的某个地方定义一个点,然后在该点上绑定一个圆

听起来,如果你有你想要的纵横比和半径,那么你可以在地图上的某个地方定义一个点,然后在该点上绑定一个圆

第一个谷歌结果:第一个谷歌结果:
google.maps.CircleOptions
// Create marker 
var marker = new google.maps.Marker({
  map: map,
  position: new google.maps.LatLng(53, -2.5),
  title: 'Some location'
});

// Add circle overlay and bind to marker
var circle = new google.maps.Circle({
  map: map,
  radius: 16093,    // 10 miles in metres
  fillColor: '#AA0000'
});

circle.bindTo('center', marker, 'position');