Skip to content

Commit abc2405

Browse files
SYAHJUN11huangjunru
and
huangjunru
authored
Fixed 英尺和米的换算 (#2153)
Co-authored-by: huangjunru <huangjr@teleware.cn>
1 parent 9c90643 commit abc2405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/map/tool/AreaTool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class AreaTool extends DistanceTool {
8686
content += area < 1E6 ? area.toFixed(decimals) + units[0] : (area / 1E6).toFixed(decimals) + units[1];
8787
}
8888
if (this.options['imperial']) {
89-
area *= 3.2808399;
89+
area *= Math.pow(3.2808399, 2);
9090
if (content.length > 0) {
9191
content += '\n';
9292
}

0 commit comments

Comments
 (0)