Documentation
Reference
2.1.55 (current version)
collection
interactivityModel
Interfaces

geometry.Point

Extends IPointGeometry.

The "Point" geometry.

See Placemark

Constructor | Fields | Events | Methods

Constructor

geometry.Point([position[, options]])

Parameters:

ParameterDefault valueDescription
position null

Type: Number[]

Coordinates of a point.

options

Type: Object

Geometry options.

options.pixelRendering "jumpy"

Type: String

Method for calculating pixel coordinates of the shape in cycled projections. This option accepts one of the following values:

  • jumpy - The shape is placed as close as possible to the center of the map viewport, and can "jump" when the map is being moved.
  • static - The shape is always located in the initial world and does not move when the map is moved.

options.projection

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

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

optionsIOptionManager

Options manager.

Inherited from ICustomizable.

Events

NameDescription
change

Changed coordinates. Instance of the Event class. Names of fields that are available via the Event#get method:

  • oldCoordinates - Old coordinates
  • newCoordinates - New coordinates.

Inherited from IPointGeometryAccess.

mapchange

Map reference changed. Instance of the Event class. Names of fields that are available via the Event#get method:

  • oldMap - Old map.
  • newMap - New map.

Inherited from IGeometry.

optionschange

Change to the object options.

Inherited from ICustomizable.

pixelgeometrychange

The pixel geometry changed. Instance of the Event class. Names of fields that are available via the Event#get method:

Inherited from IGeometry.

Methods

NameReturnsDescription
getBounds()

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.

getCoordinates()

Number[]|null

Returns coordinates of a point.

Inherited from IPointGeometryAccess.

getMap()

Map|null

Returns the current map.

Inherited from IGeometry.

getPixelGeometry([options])

IPixelGeometry

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.

setCoordinates(coordinates)

IPointGeometryAccess

Sets coordinates of a point.

Inherited from IPointGeometryAccess.

setMap(map)

Sets the map.

Inherited from IGeometry.