geometry.json.rectangle
Extends IGeometryJson.
An object that defines the JSON representation of the "Rectangle" geometry.
Constructor
geometry.json.rectangle()
Example:
var geometryJson = {
type: "Rectangle",
coordinates: [[1, 2], [3, 5]]
};
Fields
Name |
Type |
Description |
Number[][]|null |
Coordinates of two opposite corners of the rectangle. |
|
String |
ID of the "Rectangle" geometry type. It must always take the value "Rectangle". |
Fields details
coordinates
{Number[][]|null} coordinates
Coordinates of two opposite corners of the rectangle.
type
{String} type
ID of the "Rectangle" geometry type. It must always take the value "Rectangle".