Skip to content

Commit

Permalink
fix: add comment for the decimal precision parameter
Browse files Browse the repository at this point in the history
BREAKING CHANGE: change default decimal precision to 10^6
  • Loading branch information
bdachary committed Sep 13, 2023
1 parent eadd2ff commit 868cd7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/MeasureUtil/MeasureUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class MeasureUtil {
* @param {OlMap} map An OlMap.
* @param {boolean} geodesic Is the measurement geodesic (default is true).
* @param {number} radius Sphere radius. By default, the radius of the earth
* is used (Clarke 1866 Authalic Sphere, 6371008.8).
* @param {number} decimalPrecision Set the decimal precision before rounding
* length value on non-geodesic map (default value 6)
* is used (Clarke 1866 Authalic Sphere, 6371008.8).
* @param {number} decimalPrecision Set the decimal precision on length value
* for non-geodesic map (default value 6)
*
* @return {number} The length of line in meters.
*/
Expand Down

0 comments on commit 868cd7b

Please sign in to comment.