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 precisionnumber= <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 arrayArray The array with coordinates. axisstring the axis info. - Source:
- coordinate.js, line 99
Returns:
The coordinate created.- Type
- ol.Coordinate
-
<static> toStringHDMS
-
Parameters:
Name Type Description coordinateol.Coordinate | undefined Coordinate. - Source:
- coordinate.js, line 67
Returns:
Hemisphere, degrees, minutes and seconds.- Type
- string
-
<static> toStringXY
-
Parameters:
Name Type Argument Description coordinateol.Coordinate | undefined Coordinate. precisionnumber= <optional>
(Optional) Precision. - Source:
- coordinate.js, line 82
Returns:
XY.- Type
- string