qwc2 2025.12.15 → 2025.12.17

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.
Files changed (50) hide show
  1. package/components/IdentifyViewer.js +89 -35
  2. package/components/ResizeableWindow.js +8 -0
  3. package/components/SearchBox.js +12 -5
  4. package/components/SideBar.js +4 -0
  5. package/components/style/IdentifyViewer.css +7 -5
  6. package/components/widgets/EditableSelect.js +2 -1
  7. package/components/widgets/LayerCatalogWidget.js +25 -14
  8. package/components/widgets/MenuButton.js +7 -2
  9. package/components/widgets/NavBar.js +4 -2
  10. package/components/widgets/PopupMenu.js +44 -13
  11. package/components/widgets/SearchWidget.js +39 -50
  12. package/components/widgets/style/SearchWidget.css +3 -19
  13. package/package.json +1 -1
  14. package/plugins/HeightProfile.js +4 -1
  15. package/plugins/Identify.js +4 -0
  16. package/plugins/LayerTree.js +5 -1
  17. package/plugins/Measure.js +5 -1
  18. package/plugins/Print.js +1 -1
  19. package/plugins/TopBar.js +2 -0
  20. package/plugins/map/MeasurementSupport.js +1 -0
  21. package/plugins/map/RedliningSupport.js +7 -5
  22. package/reducers/layers.js +18 -36
  23. package/reducers/measurement.js +2 -1
  24. package/scripts/wmts_config_generator.py +1 -1
  25. package/static/translations/bg-BG.json +6 -1
  26. package/static/translations/ca-ES.json +6 -1
  27. package/static/translations/cs-CZ.json +6 -1
  28. package/static/translations/de-CH.json +6 -1
  29. package/static/translations/de-DE.json +6 -1
  30. package/static/translations/en-US.json +6 -1
  31. package/static/translations/es-ES.json +6 -1
  32. package/static/translations/fi-FI.json +6 -1
  33. package/static/translations/fr-FR.json +7 -2
  34. package/static/translations/hu-HU.json +6 -1
  35. package/static/translations/it-IT.json +6 -1
  36. package/static/translations/ja-JP.json +6 -1
  37. package/static/translations/nl-NL.json +6 -1
  38. package/static/translations/no-NO.json +6 -1
  39. package/static/translations/pl-PL.json +6 -1
  40. package/static/translations/pt-BR.json +6 -1
  41. package/static/translations/pt-PT.json +6 -1
  42. package/static/translations/ro-RO.json +6 -1
  43. package/static/translations/ru-RU.json +6 -1
  44. package/static/translations/sv-SE.json +6 -1
  45. package/static/translations/tr-TR.json +6 -1
  46. package/static/translations/tsconfig.json +5 -0
  47. package/static/translations/uk-UA.json +6 -1
  48. package/utils/FeatureStyles.js +5 -2
  49. package/utils/MiscUtils.js +2 -1
  50. package/utils/VectorLayerUtils.js +4 -2
@@ -174,6 +174,7 @@ var defaultStyle = function defaultStyle(feature, options) {
174
174
  }
175
175
  }
176
176
  if (feature.getGeometry().getType() === "LineString" && opts.headmarker in END_MARKERS) {
177
+ var _opts$markerscale;
177
178
  var _p = feature.getGeometry().getCoordinates()[0];
178
179
  var _p2 = feature.getGeometry().getCoordinates()[1];
179
180
  var rotation = 0.5 * Math.PI + Math.atan2(_p[0] - _p2[0], _p[1] - _p2[1]);
@@ -184,11 +185,12 @@ var defaultStyle = function defaultStyle(feature, options) {
184
185
  anchorYUnits: 'fraction',
185
186
  color: opts.strokeColor,
186
187
  rotation: END_MARKERS[opts.headmarker].baserotation / 180 * Math.PI + rotation,
187
- scale: 0.125 * (1 + opts.strokeWidth) // Also update in VectorLayerUtils.generateMarkerGeometry
188
+ scale: 0.125 * (1 + opts.strokeWidth) * ((_opts$markerscale = opts.markerscale) !== null && _opts$markerscale !== void 0 ? _opts$markerscale : 1) // Also update in VectorLayerUtils.generateMarkerGeometry
188
189
  }))
189
190
  }));
190
191
  }
191
192
  if (feature.getGeometry().getType() === "LineString" && opts.tailmarker in END_MARKERS) {
193
+ var _opts$markerscale2;
192
194
  var l = feature.getGeometry().getCoordinates().length;
193
195
  var _p3 = feature.getGeometry().getCoordinates()[l - 1];
194
196
  var _p4 = feature.getGeometry().getCoordinates()[l - 2];
@@ -200,7 +202,7 @@ var defaultStyle = function defaultStyle(feature, options) {
200
202
  anchorYUnits: 'fraction',
201
203
  color: opts.strokeColor,
202
204
  rotation: END_MARKERS[opts.tailmarker].baserotation / 180 * Math.PI + _rotation,
203
- scale: 0.125 * (1 + opts.strokeWidth) // Also update in VectorLayerUtils.generateMarkerGeometry
205
+ scale: 0.125 * (1 + opts.strokeWidth) * ((_opts$markerscale2 = opts.markerscale) !== null && _opts$markerscale2 !== void 0 ? _opts$markerscale2 : 1) // Also update in VectorLayerUtils.generateMarkerGeometry
204
206
  }))
205
207
  }));
206
208
  }
@@ -295,6 +297,7 @@ export default {
295
297
  fillColor: opts.measureFillColor,
296
298
  headmarker: opts.headmarker,
297
299
  tailmarker: opts.tailmarker,
300
+ markerscale: opts.markerscale,
298
301
  strokeDash: []
299
302
  };
300
303
  return defaultStyle(feature, styleOptions);
@@ -93,7 +93,8 @@ var MiscUtils = {
93
93
  },
94
94
  checkKeyActivate: function checkKeyActivate(ev) {
95
95
  var onEsc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
96
- if (ev.code === "Space" || ev.code === "Enter") {
96
+ var spaceActivate = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
97
+ if (spaceActivate && ev.code === "Space" || ev.code === "Enter") {
97
98
  MiscUtils.killEvent(ev);
98
99
  ev.currentTarget.click();
99
100
  } else if (ev.code === "Escape" && onEsc) {
@@ -95,12 +95,14 @@ var VectorLayerUtils = {
95
95
  var properties = feature.properties || {};
96
96
  var geometry = VectorLayerUtils.reprojectGeometry(feature.geometry, feature.crs || printCrs, printCrs);
97
97
  if (feature.geometry.type === "LineString") {
98
+ var _styleOptions$markers;
99
+ var markerScale = (_styleOptions$markers = styleOptions.markerscale) !== null && _styleOptions$markers !== void 0 ? _styleOptions$markers : 1;
98
100
  // Generate arrow heads
99
101
  if (styleOptions.headmarker) {
100
- VectorLayerUtils.generateMarkerGeometry(params, styleOptions.headmarker, false, feature, layer, dpi, printScale, printCrs, scaleFactor);
102
+ VectorLayerUtils.generateMarkerGeometry(params, styleOptions.headmarker, false, feature, layer, dpi, printScale, printCrs, scaleFactor * markerScale);
101
103
  }
102
104
  if (styleOptions.tailmarker) {
103
- VectorLayerUtils.generateMarkerGeometry(params, styleOptions.tailmarker, true, feature, layer, dpi, printScale, printCrs, scaleFactor);
105
+ VectorLayerUtils.generateMarkerGeometry(params, styleOptions.tailmarker, true, feature, layer, dpi, printScale, printCrs, scaleFactor * markerScale);
104
106
  }
105
107
  }
106
108
  if (feature.geometry.type === "LineString" && !isEmpty(properties.segment_labels)) {