google-maps-documentation

RectangleOptions interface

google.maps.RectangleOptions interface

RectangleOptions object used to define the properties that can be set on a Rectangle.

Properties
bounds
The bounds.
clickable
Type:  boolean optional
Indicates whether this Rectangle handles mouse events. Defaults to true.
draggable
Type:  boolean optional
If set to true, the user can drag this rectangle over the map. Defaults to false.
editable
Type:  boolean optional
If set to true, the user can edit this rectangle by dragging the control points shown at the corners and on each edge. Defaults to false.
fillColor
Type:  string optional
The fill color. All CSS3 colors are supported except for extended named colors.
fillOpacity
Type:  number optional
The fill opacity between 0.0 and 1.0
map
Type:  Map optional
Map on which to display Rectangle.
strokeColor
Type:  string optional
The stroke color. All CSS3 colors are supported except for extended named colors.
strokeOpacity
Type:  number optional
The stroke opacity between 0.0 and 1.0
strokePosition
Type:  StrokePosition optional
The stroke position. Defaults to CENTER. This property is not supported on Internet Explorer 8 and earlier.
strokeWeight
Type:  number optional
The stroke width in pixels.
visible
Type:  boolean optional
Whether this rectangle is visible on the map. Defaults to true.
zIndex
Type:  number optional
The zIndex compared to other polys.