geometry.Point
Extends IPointGeometry.
The "Point" geometry.
See Placemark
Constructor | Fields | Events | Methods
Constructor
geometry.Point([position[, options]])
Parameters:
Parameter |
Default value |
Description |
null |
Type: Number[] Coordinates of a point. |
|
— |
Type: Object Geometry options. |
|
"jumpy" |
Type: String Method for calculating pixel coordinates of the shape in cycled projections. This option accepts one of the following values:
|
|
— |
Type: IProjection Projection. |
Example:
// Creating an instance of the point geometry (specifying coordinates).
var pointGeometry = new ymaps.geometry.Point([30, 50]);
// Instantiating the geo object and passing our geometry to the constructor.
var placemark = new ymaps.GeoObject({ geometry: pointGeometry });
// Changing the vertexes via the geo object's "geometry" property.
placemark.geometry.setCoordinates([20, 40]);
// Or directly.
pointGeometry.setCoordinates([20, 40]);
// You can also access pointGeometry via placemark.geometry
Fields
Name |
Type |
Description |
Event manager. Inherited from IEventEmitter. |
||
Options manager. Inherited from ICustomizable. |
Events
Name |
Description |
Changed coordinates. Instance of the Event class. Names of fields that are available via the Event.get method:
Inherited from IPointGeometryAccess. |
|
Map reference changed. Instance of the Event class. Names of fields that are available via the Event.get method:
Inherited from IGeometry. |
|
Change to the object options. Inherited from ICustomizable. |
|
The pixel geometry changed. Instance of the Event class. Names of fields that are available via the Event.get method:
Inherited from IGeometry. |
Methods
Name |
Returns |
Description |
Number[][]|null |
Returns coordinates of the two opposite corners of the area that surrounds the geometry. The first item in the array is the southwest corner of the area; the second item is the northeast corner. Inherited from IGeometry. |
|
Number[]|null |
Returns coordinates of a point. Inherited from IPointGeometryAccess. |
|
getMap() |
Map|null |
Returns the current map. Inherited from IGeometry. |
Returns the pixel geometry corresponding to the given geometry, its options, and the map state. Inherited from IGeometry. |
||
getType() |
String |
Returns the "Point" string. Inherited from IPointGeometry. |
Sets coordinates of a point. Inherited from IPointGeometryAccess. |
||
Sets the map. Inherited from IGeometry. |