qwc2 2026.5.10 → 2026.5.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qwc2",
3
- "version": "2026.05.10",
3
+ "version": "2026.05.11",
4
4
  "description": "QGIS Web Client",
5
5
  "author": "Sourcepole AG",
6
6
  "license": "BSD-2-Clause",
@@ -146,8 +146,11 @@ var MapInfoTooltip = /*#__PURE__*/function (_React$Component) {
146
146
  return null;
147
147
  }
148
148
  var info = [];
149
- var projections = [this.props.map.displayCrs];
150
- if (!projections.includes(this.props.map.projection)) {
149
+ var projections = [];
150
+ if (this.props.includeDisplayCrs) {
151
+ projections.push(this.props.map.displayCrs);
152
+ }
153
+ if (this.props.includeMapCrs && !projections.includes(this.props.map.projection)) {
151
154
  projections.push(this.props.map.projection);
152
155
  }
153
156
  if (this.props.includeWGS84 && !projections.includes("EPSG:4326")) {
@@ -284,7 +287,11 @@ _defineProperty(MapInfoTooltip, "propTypes", {
284
287
  /** The number of decimal places to display for elevation values. */
285
288
  elevationPrecision: PropTypes.number,
286
289
  enabled: PropTypes.bool,
287
- /** Whether to display WGS84 coordinates in addition to map CRS coordinates. */
290
+ /** Whether to display coordinates in the display CRS. */
291
+ includeDisplayCrs: PropTypes.bool,
292
+ /** Whether to display coordinates in map CRS. */
293
+ includeMapCrs: PropTypes.bool,
294
+ /** Whether to display coordinates in WGS84. */
288
295
  includeWGS84: PropTypes.bool,
289
296
  map: PropTypes.object,
290
297
  /** Additional plugin components for the map info tooltip. */
@@ -293,6 +300,8 @@ _defineProperty(MapInfoTooltip, "propTypes", {
293
300
  });
294
301
  _defineProperty(MapInfoTooltip, "defaultProps", {
295
302
  elevationPrecision: 0,
303
+ includeDisplayCrs: true,
304
+ includeMapCrs: true,
296
305
  includeWGS84: true,
297
306
  plugins: []
298
307
  });