qwc2 2026.6.27 → 2026.7.1

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.
@@ -31,10 +31,10 @@ styleExpressionParser.functions.color = function (name) {
31
31
  })), [alpha]);
32
32
  };
33
33
  styleExpressionParser.functions.rgb = function (r, g, b) {
34
- return [r / 255, g / 255, g / 255, 1];
34
+ return [r / 255, g / 255, b / 255, 1];
35
35
  };
36
36
  styleExpressionParser.functions.rgba = function (r, g, b, a) {
37
- return [r / 255, g / 255, g / 255, a];
37
+ return [r / 255, g / 255, b / 255, a];
38
38
  };
39
39
  styleExpressionParser.functions.hsl = function (h, s, l) {
40
40
  return [].concat(_toConsumableArray(MiscUtils.hslToRgb(h, s, l)), [1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qwc2",
3
- "version": "2026.06.27",
3
+ "version": "2026.07.01",
4
4
  "description": "QGIS Web Client",
5
5
  "author": "Sourcepole AG",
6
6
  "license": "BSD-2-Clause",
@@ -380,7 +380,10 @@ var Identify = /*#__PURE__*/function (_React$Component) {
380
380
  }
381
381
  }
382
382
  if (this.props.enabled) {
383
- if (this.state.mode === "Point") {
383
+ if (this.props.identifySearchResults && this.props.currentSearchResult && this.props.currentSearchResult !== prevProps.currentSearchResult) {
384
+ var res = this.props.currentSearchResult;
385
+ this.identifyPoint(CoordinatesUtils.reproject([res.x, res.y], res.crs, this.props.map.projection));
386
+ } else if (this.state.mode === "Point") {
384
387
  var clickPoint = this.queryPoint(prevProps);
385
388
  this.identifyPoint(clickPoint);
386
389
  } else if (this.state.mode === "Region") {
@@ -496,6 +499,7 @@ _defineProperty(Identify, "propTypes", {
496
499
  clearResultsOnClose: PropTypes.bool,
497
500
  click: PropTypes.object,
498
501
  currentIdentifyTool: PropTypes.string,
502
+ currentSearchResult: PropTypes.object,
499
503
  currentTask: PropTypes.string,
500
504
  /** Optional list of custom exporters to offer along with the built-in exporters. See js/IdentifyExtensions.js for details. This prop can be specified in the appConfig.js cfg section. */
501
505
  customExporters: PropTypes.array,
@@ -519,8 +523,10 @@ _defineProperty(Identify, "propTypes", {
519
523
  initiallyDocked: PropTypes.bool,
520
524
  side: PropTypes.string
521
525
  }),
522
- /** Whether to highlight all results if no result is hovered */
526
+ /** Whether to highlight all results if no result is hovered. */
523
527
  highlightAllResults: PropTypes.bool,
528
+ /** Whether to trigger an identify when selecting a search result. */
529
+ identifySearchResults: PropTypes.bool,
524
530
  iframeDialogsInitiallyDocked: PropTypes.bool,
525
531
  /** The initial radius units of the identify dialog in radius mode. One of 'm', 'ft', 'km', 'mi'. */
526
532
  initialRadiusUnits: PropTypes.string,
@@ -584,6 +590,7 @@ export default connect(function (state) {
584
590
  click: state.map.click || {
585
591
  modifiers: {}
586
592
  },
593
+ currentSearchResult: state.search.currentResult,
587
594
  enabled: enabled,
588
595
  layerFilterGeom: (_state$layers$filter = state.layers.filter) === null || _state$layers$filter === void 0 ? void 0 : _state$layers$filter.filterGeom,
589
596
  layers: state.layers.flat,