Skip to content

Commit

Permalink
Merge pull request #107 from cr3a7ure/master
Browse files Browse the repository at this point in the history
feat(centimeters): Display decimals on meters
Comment: I'll accept your PR, but I'll change number of decimals to 1 since 2 is too detailed for most people's usecases
  • Loading branch information
ppete2 authored Nov 7, 2023
2 parents e246630 + b585d3b commit 3413729
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Leaflet.PolylineMeasure.js
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@
if (!this.options.useSubunits) {
dist = (dist/1000).toFixed(3);
} else {
dist = (dist).toFixed(0);
dist = (dist).toFixed(2);
unit = this.options.unitControlLabel.metres;
}
}
Expand Down

0 comments on commit 3413729

Please sign in to comment.