Circle
<Circle />
component is a simplified Polygon for circles. for more detail, see official documentation.
Basic Example
Props
Props | Type | Description |
---|---|---|
center | google.maps.LatLng | google.maps.LatLngLiteral | The center of the Circle. |
radius | number | The radius in meters on the Earth’s surface. |
clickable | boolean | Indicates whether this Circle handles mouse events. |
draggable | boolean | if flag is set to true , the user can drag Circle over the map. |
editable | boolean | if flag is set to true , the user can edit this circle by dragging the control points shown at the center and around the circumference of the circle. |
fillColor | string | The fill color. All CSS3 colors are supported except for extended named colors. |
fillOpacity | number | The fill opacity between 0.0 and 1.0 |
strokeColor | string | The stroke color. All CSS3 colors are supported except for extended named colors. |
strokeOpacity | number | The stroke opacity between 0.0 and 1.0. |
strokePosition | google.maps.StrokePosition | The stroke position. |
strokeWeight | number | The stroke width in pixels. |
visible | boolean | Whether this polygon is visible on the map. |
zIndex | number | zIndex for Circle |
onCenterChanged | (circle: google.maps.Circle) => void | callback for center_changed event. Please refer to the official documentation. |
onClick | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for click event. Please refer to the official documentation. |
onDblClick | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for dblclick event. Please refer to the official documentation. |
onDrag | (circle: google.maps.Circle, event: google.maps.MapMouseEvent) => void | callback for drag event. Please refer to the official documentation. |
onDragEnd | (circle: google.maps.Circle, event: google.maps.MapMouseEvent) => void | callback for dragend event. Please refer to the official documentation. |
onDragStart | (circle: google.maps.Circle, event: google.maps.MapMouseEvent) => void | callback for dragstart event. Please refer to the official documentation. |
onMouseDown | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for mousedown event. Please refer to the official documentation. |
onMouseMove | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for mousemove event. Please refer to the official documentation. |
onMouseOut | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for mouseout event. Please refer to the official documentation. |
onMouseOver | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for mouseover event. Please refer to the official documentation. |
onMouseUp | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for mouseup event. Please refer to the official documentation. |
onRadiusChanged | (circle: google.maps.Circle, event: google.maps.PolyMouseEvent) => void | callback for radius_changed event. Please refer to the official documentation. |