Skip to content

Commit

Permalink
Fix function call for point measuring
Browse files Browse the repository at this point in the history
  • Loading branch information
stamogis authored and manisandro committed Dec 18, 2024
1 parent 70e55cf commit 119a4b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Measure.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import TaskBar from '../components/TaskBar';
import ButtonBar from '../components/widgets/ButtonBar';
import CopyButton from '../components/widgets/CopyButton';
import displayCrsSelector from '../selectors/displaycrs';
import CoordinatesUtils from '../utils/CoordinatesUtils';
import LocaleUtils from '../utils/LocaleUtils';
import MeasureUtils from '../utils/MeasureUtils';

Expand Down Expand Up @@ -83,7 +84,7 @@ class Measure extends React.Component {
let resultBody = null;
if (this.props.measureState.geomType === "Point") {
const coo = this.props.measureState.coordinates || [0, 0];
const text = MeasureUtils.getFormattedCoordinate(coo, this.props.mapcrs, this.props.displaycrs);
const text = CoordinatesUtils.getFormattedCoordinate(coo, this.props.mapcrs, this.props.displaycrs);
resultBody = (
<div className="measure-body">
<span className="measure-result">{text}</span>
Expand Down

0 comments on commit 119a4b1

Please sign in to comment.