Skip to main content

GmapRectangle

Rectangle component

[See](source code) ,[See](official docs) ,[See](official reference)

Props

Prop nameDescriptionTypeValuesDefault
boundsThe bounds.
@value object
@type LatLngBounds|LatLngBoundsLiteral
@see Rectangle bounds
object-undefined
clickableIndicates whether this Polygon handles mouse events. Defaults to true.
@value true, false
@see Rectangle draggable
boolean-false
draggableIf set to true, the user can drag this rectangle over the map. Defaults to false.
@value boolean
@see Rectangle draggable
boolean-false
editableIf 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.
@value boolean
@see Rectangle editable
boolean-false
fillColorThe fill color. All CSS3 colors are supported except for extended named colors.
@value '#000'
@see Rectangle editable
string-''
fillOpacityThe fill opacity between 0.0 and 1.0
@value 1
@see Rectangle editable
number-1
strokeColorThe stroke color. All CSS3 colors are supported except for extended named colors.
@value '#000'
@see Rectangle editable
string-''
strokeOpacityThe stroke opacity between 0.0 and 1.0.
@value 1
@see Rectangle editable
number-1
strokePositionThe stroke position. Defaults to CENTER.
@value 1
@see Rectangle editable
@see StrokePosition constant
number-0
strokeWeightThe stroke width in pixels.
@value 1
@see Rectangle editable
number-1
visibleWhether this polyline is visible on the map. Defaults to true.
@value 1
@see Rectangle editable
boolean-true
optionsMore options that you can pass to the component
@value boolean
object-undefined