Format a coordinate as a comma delimited string.
Example without specifying fractional digits:
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringXY(coord);// out is now '8, 48' Copy
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringXY(coord);// out is now '8, 48'
Example explicitly specifying 1 fractional digit:
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringXY(coord, 1);// out is now '7.8, 48.0' Copy
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringXY(coord, 1);// out is now '7.8, 48.0'
Optional
Coordinate.
The number of digits to include after the decimal point. Default is 0.
0
XY.
stable
Generated using TypeDoc
Format a coordinate as a comma delimited string.
Example without specifying fractional digits:
Example explicitly specifying 1 fractional digit: