---
title: rectangle-shape
---

  # GmapRectangle

  
  > Rectangle component
  
  
  
  
  
  [See]([source code](/guide/rectangle.html#source-code))
,[See]([official docs](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#Rectangle))

  

  
## Props

  | Prop name     | Description | Type      | Values      | Default     |
  | ------------- | ----------- | --------- | ----------- | ----------- |
  | bounds | The bounds.<br/>`@value` object<br/>`@type` LatLngBounds\|LatLngBoundsLiteral<br/>`@see` [Rectangle bounds](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#RectangleOptions.bounds) | object | - | undefined |
| draggable | If set to true, the user can drag this rectangle over the map. Defaults to false.<br/>`@value` boolean<br/>`@see` [Rectangle draggable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#RectangleOptions.draggable) | boolean | - | false |
| editable | 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.<br/>`@value` boolean<br/>`@see` [Rectangle editable](https://developers.google.com/maps/documentation/javascript/reference/polygon?hl=es#RectangleOptions.editable) | boolean | - | false |
| options | More options that you can pass to the component<br/>`@value` boolean | object | - | undefined |

  
  
  
  
  ---


  
  