Rectangle.js

Rectangle()


constructor
Inherits from Polygon

Rectangle class is responsible for drawing rectangle geometry on the map using the VectorLayer

Parameter Type Description
bounds Array The list of coordinates used to draw the rectangle
options Object Polygon's options

setBounds()


method

Sets new bounds to the rectangle

Parameter Type Description
bounds Array The list of coordinates used to draw the rectangle