From 119a4b12585b8e5af339a68b72b35e922813160b Mon Sep 17 00:00:00 2001 From: stamogis Date: Wed, 18 Dec 2024 10:21:56 +0100 Subject: [PATCH] Fix function call for point measuring --- plugins/Measure.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Measure.jsx b/plugins/Measure.jsx index 886393abb..ec428533c 100644 --- a/plugins/Measure.jsx +++ b/plugins/Measure.jsx @@ -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'; @@ -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 = (
{text}