From 6bb98324a4b2b33f45ca63ffc70e73f9d6a31390 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 3 Oct 2024 13:40:19 +0200 Subject: [PATCH] Drop unused geodesic prop from MeasurementSupport --- doc/plugins.md | 4 ---- package.json | 2 +- plugins/map/MeasurementSupport.jsx | 7 ------- 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/doc/plugins.md b/doc/plugins.md index 4e42b9425..63f0f2718 100644 --- a/doc/plugins.md +++ b/doc/plugins.md @@ -869,10 +869,6 @@ MeasurementSupport ---------------------------------------------------------------- Measurement support for the map component. -| Property | Type | Description | Default value | -|----------|------|-------------|---------------| -| options | `{`
`  geodesic: bool,`
`}` | Options | `undefined` | - OverviewMap ---------------------------------------------------------------- Overview map support for the map component. diff --git a/package.json b/package.json index 44e4ba1ef..935f667fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "qwc2", - "version": "2024.09.30-master", + "version": "2024.10.03-master", "description": "QGIS Web Client 2 core", "author": "Sourcepole AG", "license": "BSD-2-Clause", diff --git a/plugins/map/MeasurementSupport.jsx b/plugins/map/MeasurementSupport.jsx index 9fc6b89b4..f08970f83 100644 --- a/plugins/map/MeasurementSupport.jsx +++ b/plugins/map/MeasurementSupport.jsx @@ -29,15 +29,8 @@ class MeasurementSupport extends React.Component { map: PropTypes.object, mapCrs: PropTypes.string, measurement: PropTypes.object, - /** Options */ - options: PropTypes.shape({ - geodesic: PropTypes.bool - }), projection: PropTypes.string }; - static defaultOpts = { - geodesic: true - }; constructor(props) { super(props); this.pickPositionCallbackTimeout = null;