Class: ol.Coordinate

ol.Coordinate

new Coordinate

Two dimensional coordinate which does not know its projection.
Parameters:
Name Type Description
x number X.
y number Y.
Source:
  • coordinate.js, line 23

Extends

  • goog.math.Vec2

Members

<static, constant> ZERO :ol.Coordinate

Source:
  • coordinate.js, line 33

Methods

<static> createStringXY

Parameters:
Name Type Argument Description
precision number= <optional>
(Optional) Precision.
Source:
  • coordinate.js, line 40
Returns:
Coordinate format.
Type
ol.CoordinateFormatType

<static> fromProjectedArray

Create an ol.Coordinate from an Array and take into account axis order.
Parameters:
Name Type Description
array Array The array with coordinates.
axis string the axis info.
Source:
  • coordinate.js, line 99
Returns:
The coordinate created.
Type
ol.Coordinate

<static> toStringHDMS

Parameters:
Name Type Description
coordinate ol.Coordinate | undefined Coordinate.
Source:
  • coordinate.js, line 67
Returns:
Hemisphere, degrees, minutes and seconds.
Type
string

<static> toStringXY

Parameters:
Name Type Argument Description
coordinate ol.Coordinate | undefined Coordinate.
precision number= <optional>
(Optional) Precision.
Source:
  • coordinate.js, line 82
Returns:
XY.
Type
string