OpenLayers. Geometry. Point

Point geometry class.

Inherits from

Summary
Point geometry class.
{float}
{float}
Construct a point geometry.
{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point
Create a new Bounds based on the lon/lat
{String} Shortened String representation of Point object.
Moves a point in place

Properties

x

{float}

y

{float}

Functions

OpenLayers. Geometry. Point

Construct a point geometry.

Parameters

x{float}
y{float}

Return

{OpenLayers.Geometry.Point}

clone

clone: function(obj)

Return

{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point

calculateBounds

calculateBounds: function ()

Create a new Bounds based on the lon/lat

distanceTo

distanceTo: function(point)

Parameters

point{OpenLayers.Geometry.Point}

equals

equals:function(geom)

Parameters

xy{OpenLayers.Geometry}

Return

{Boolean} Boolean value indicating whether the passed-in {OpenLayers.Geometry} object has the same components as this note that if ll passed in is null, returns false

toShortString

toShortString: function()

Return

{String} Shortened String representation of Point object.  (ex.  <i>”5, 42”</i>)

move

move: function(x,
y)

Moves a point in place

Parameters

x{Float}
y{Float}
clone: function(obj)
{OpenLayers.Geometry.Point} An exact clone of this OpenLayers.Geometry.Point
Construct a point geometry.
calculateBounds: function ()
Create a new Bounds based on the lon/lat
distanceTo: function(point)
equals:function(geom)
toShortString: function()
{String} Shortened String representation of Point object.
move: function(x,
y)
Moves a point in place
A Geometry is a description of a geographic object.