Skip to content

Instantly share code, notes, and snippets.

@letswritetw
Created June 10, 2019 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letswritetw/27a709ef1374be81be4b36dbbd642c32 to your computer and use it in GitHub Desktop.
Save letswritetw/27a709ef1374be81be4b36dbbd642c32 to your computer and use it in GitHub Desktop.
google-map-api
let cityCircle = new google.maps.Circle({
strokeColor: '#f1c40f', // 線條顏色
strokeOpacity: 1, // 線條透明度
strokeWeight: 5, // 線條粗度
fillColor: '#f1c40f', // 圓形裡填滿的顏色
fillOpacity: 0.35, // 圓形裡,填滿顏色的透明度
map: map,
// 中心點
center: {
lat: 34.9506901,
lng: 135.7468915
},
// 半徑
radius: 8500
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment