Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces
2.1.52 (release candidate)
collection
interactivityModel
Interfaces

geometry.json.rectangle

Extends IGeometryJson.

An object that defines the JSON representation of the "Rectangle" geometry.

Constructor | Fields

Constructor

geometry.json.rectangle()

Example:

var geometryJson = {
    type: "Rectangle",
    coordinates: [[1, 2], [3, 5]]
};

Fields

NameTypeDescription
coordinatesNumber[][]|null

Coordinates of two opposite corners of the rectangle.

typeString

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".