google.maps.RectangleOptions
interface
RectangleOptions object used to define the properties that can be set on a Rectangle.
| Properties | |
|---|---|
bounds |
Type:
LatLngBounds|LatLngBoundsLiteral optionalThe bounds. |
clickable |
Type:
boolean optionalIndicates whether this Rectangle handles mouse events. Defaults to true. |
draggable |
Type:
boolean optionalIf set to true, the user can drag this rectangle over the map. Defaults to false. |
editable |
Type:
boolean optionalIf 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 optionalThe fill color. All CSS3 colors are supported except for extended named colors. |
fillOpacity |
Type:
number optionalThe fill opacity between 0.0 and 1.0 |
map |
Type:
Map optionalMap on which to display Rectangle. |
strokeColor |
Type:
string optionalThe stroke color. All CSS3 colors are supported except for extended named colors. |
strokeOpacity |
Type:
number optionalThe stroke opacity between 0.0 and 1.0 |
strokePosition |
Type:
StrokePosition optionalThe stroke position. Defaults to CENTER. This property is not supported on Internet Explorer 8 and earlier. |
strokeWeight |
Type:
number optionalThe stroke width in pixels. |
visible |
Type:
boolean optionalWhether this rectangle is visible on the map. Defaults to true. |
zIndex |
Type:
number optionalThe zIndex compared to other polys. |