Format a geographic coordinate with the hemisphere, degrees, minutes, and seconds.
Example without specifying fractional digits:
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringHDMS(coord);// out is now '47° 58′ 60″ N 7° 50′ 60″ E' Copy
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringHDMS(coord);// out is now '47° 58′ 60″ N 7° 50′ 60″ E'
Example explicitly specifying 1 fractional digit:
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringHDMS(coord, 1);// out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E' Copy
var coord = [7.85, 47.983333];var out = ol.coordinate.toStringHDMS(coord, 1);// out is now '47° 58′ 60.0″ N 7° 50′ 60.0″ E'
Optional
Coordinate.
The number of digits to include after the decimal point. Default is 0.
0
Hemisphere, degrees, minutes and seconds.
stable
Generated using TypeDoc
Format a geographic coordinate with the hemisphere, degrees, minutes, and seconds.
Example without specifying fractional digits:
Example explicitly specifying 1 fractional digit: