Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

Rectangle

Save as filesEdit on JSFiddle

A rectangle can be created in two ways: using the GeoObject class indicating the "Rectangle" geometry type, or using an auxiliary Rectangle class.

When creating a rectangle, you must specify the coordinates of two opposite vertices. You may also specify its properties (for example, the contents of its balloon or hint) and options (such as fill color).

Rectangles can be combined in a collection.

Пишете на JavaScript? У нас есть вакансии
Mon Oct 31 2022 13:07:25 GMT+0300 (Moscow Standard Time)