Polygon / PolygonF
ThePolygon component draws a closed shape consisting of a series of connected coordinates on the map. Both Polygon and PolygonF are available - they are functionally identical.
Props
Polygon options object.
The ordered sequence of coordinates that designates a closed loop.
paths
google.maps.MVCArray<google.maps.LatLng> | google.maps.MVCArray<google.maps.MVCArray<google.maps.LatLng>> | google.maps.LatLng[] | google.maps.LatLng[][] | google.maps.LatLngLiteral[] | google.maps.LatLngLiteral[][]
The paths property may be used to define complex shapes with holes.
Whether the polygon can be dragged.
Whether the polygon is editable by users.
Whether the polygon is visible.
Event Handlers
Fired when the polygon is clicked.
Fired when the polygon is double-clicked.
Fired repeatedly while the polygon is being dragged.
Fired when dragging the polygon ends.
Fired when the user starts dragging the polygon.
Fired when mouse button is pressed on the polygon.
Fired when the mouse moves over the polygon.
Fired when the mouse leaves the polygon area.
Fired when the mouse enters the polygon area.
Fired when mouse button is released on the polygon.
Fired when the polygon is right-clicked.
Fired when the polygon’s path is edited (vertex inserted, moved, or removed).
Lifecycle Callbacks
Called when the polygon instance has loaded.
Called when the component unmounts.