dojox/geo/openlayers/Point (version 1.10)

dojox/geo/openlayers/Geometry

Summary

A Point geometry handles description of points to be rendered in a GfxLayer

Usage

var foo = new Point(coords);
dojox/geo/openlayers/Geometry
Parameter Type Description
coords Object

Coordinates of the geometry. {x:x, y:y} object for a point geometry, array of {x:x, y:y} objects for line string geometry, array of geometries for collection geometry.

See the dojox/geo/openlayers/Point reference documentation for more information.

Property Summary

  • coordinatesThe coordinates of the geometry, Object like {x, y} or Array.
  • shapeThe associated shape when rendered

Method Summary

  • getPoint() Gets the point defining this geometry.
  • setPoint(p) Sets the point for this geometry.

Properties

coordinates

The coordinates of the geometry, Object like {x, y} or Array.

shape

The associated shape when rendered

Methods

getPoint()

Gets the point defining this geometry.

Returns:any | undefined

The point defining this geometry.

setPoint(p)

Sets the point for this geometry.

Parameter Type Description
p Object

The point geometry expressed as a {x, y} object.

Error in the documentation? Can’t find what you are looking for? Let us know!