qwc2 2025.11.18 → 2025.11.26
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/actions/windows.js +3 -1
- package/components/AppMenu.js +141 -204
- package/components/AttributeTableWidget.js +5 -1
- package/components/FeatureAttributesWindow.js +1 -2
- package/components/FullscreenSwitcher.js +3 -0
- package/components/Icon.js +6 -0
- package/components/ImportLayer.js +3 -9
- package/components/LayerInfoWindow.js +1 -2
- package/components/MapButton.js +2 -0
- package/components/NumericInputWindow.js +1 -2
- package/components/PickFeature.js +1 -1
- package/components/PluginsContainer.js +48 -6
- package/components/ResizeableWindow.js +18 -9
- package/components/SearchBox.js +117 -124
- package/components/ServiceInfoWindow.js +1 -2
- package/components/ThemeLayersListWindow.js +22 -11
- package/components/ThemeList.js +7 -2
- package/components/WindowManager.js +14 -2
- package/components/map/layers/VectorLayer.js +4 -2
- package/components/map3d/HeightProfile3D.js +0 -1
- package/components/map3d/Map3D.js +36 -35
- package/components/map3d/View3DSwitcher.js +2 -1
- package/components/map3d/drawtool/NumericInput3D.js +1 -2
- package/components/map3d/layers/GeoTIFFLayer3D.js +2 -1
- package/components/map3d/layers/VectorLayer3D.js +12 -2
- package/components/map3d/layers/WFSLayer3D.js +17 -1
- package/components/style/App.css +4 -0
- package/components/style/AppMenu.css +33 -48
- package/components/style/DefaultColorScheme.css +1 -0
- package/components/style/PickFeature.css +0 -6
- package/components/style/ResizeableWindow.css +0 -4
- package/components/style/SearchBox.css +0 -21
- package/components/style/WindowManager.css +6 -0
- package/components/widgets/ColorButton.js +7 -2
- package/components/widgets/ComboBox.js +18 -16
- package/components/widgets/EditableSelect.js +5 -10
- package/components/widgets/LayerCatalogWidget.js +66 -16
- package/components/widgets/MenuButton.js +16 -15
- package/components/widgets/PopupMenu.js +153 -13
- package/components/widgets/ToggleSwitch.js +5 -2
- package/components/widgets/style/ComboBox.css +7 -20
- package/components/widgets/style/EditableSelect.css +0 -2
- package/components/widgets/style/MenuButton.css +1 -17
- package/components/widgets/style/PopupMenu.css +20 -0
- package/package.json +2 -2
- package/plugins/AttributeTable.js +0 -1
- package/plugins/BackgroundSwitcher.js +104 -8
- package/plugins/Cyclomedia.js +1 -2
- package/plugins/FeatureForm.js +3 -6
- package/plugins/GeometryDigitizer.js +1 -2
- package/plugins/HeightProfile.js +2 -5
- package/plugins/Identify.js +2 -5
- package/plugins/LayerCatalog.js +2 -13
- package/plugins/LayerTree.js +22 -13
- package/plugins/MapLegend.js +1 -2
- package/plugins/ObjectList.js +0 -1
- package/plugins/Panoramax.js +1 -2
- package/plugins/Print.js +1 -2
- package/plugins/Routing.js +1 -2
- package/plugins/TimeManager.js +2 -5
- package/plugins/ValueTool.js +1 -2
- package/plugins/View3D.js +0 -1
- package/plugins/map/MeasurementSupport.js +2 -2
- package/plugins/map3d/Identify3D.js +1 -2
- package/plugins/map3d/Measure3D.js +21 -12
- package/plugins/style/BackgroundSwitcher.css +2 -1
- package/plugins/style/LayerTree.css +3 -18
- package/reducers/windows.js +2 -1
- package/static/translations/bg-BG.json +1 -0
- package/static/translations/ca-ES.json +29 -28
- package/static/translations/cs-CZ.json +1 -0
- package/static/translations/de-CH.json +1 -0
- package/static/translations/de-DE.json +1 -0
- package/static/translations/en-US.json +1 -0
- package/static/translations/es-ES.json +34 -33
- package/static/translations/fi-FI.json +1 -0
- package/static/translations/fr-FR.json +2 -1
- package/static/translations/hu-HU.json +1 -0
- package/static/translations/it-IT.json +1 -0
- package/static/translations/ja-JP.json +1 -0
- package/static/translations/nl-NL.json +1 -0
- package/static/translations/no-NO.json +1 -0
- package/static/translations/pl-PL.json +1 -0
- package/static/translations/pt-BR.json +1 -0
- package/static/translations/pt-PT.json +1 -0
- package/static/translations/ro-RO.json +1 -0
- package/static/translations/ru-RU.json +1 -0
- package/static/translations/sv-SE.json +1 -0
- package/static/translations/tr-TR.json +1 -0
- package/static/translations/tsconfig.json +1 -0
- package/static/translations/uk-UA.json +1 -0
- package/utils/MapUtils.js +6 -0
- package/utils/MiscUtils.js +12 -0
- package/utils/ThemeUtils.js +2 -1
package/utils/MapUtils.js
CHANGED
|
@@ -209,6 +209,12 @@ var MapUtils = {
|
|
|
209
209
|
var positionFormat = ConfigUtils.getConfigProp("urlPositionFormat");
|
|
210
210
|
var positionCrs = ConfigUtils.getConfigProp("urlPositionCrs") || state.projection;
|
|
211
211
|
var prec = CoordinatesUtils.getPrecision(positionCrs);
|
|
212
|
+
// Don't set params for empty map
|
|
213
|
+
if (state.bbox.bounds.every(function (x) {
|
|
214
|
+
return x === 0;
|
|
215
|
+
})) {
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
212
218
|
if (positionFormat === "centerAndZoom") {
|
|
213
219
|
var center = CoordinatesUtils.reproject(state.center, state.projection, positionCrs);
|
|
214
220
|
var scale = Math.round(MapUtils.computeForZoom(state.scales, state.zoom));
|
package/utils/MiscUtils.js
CHANGED
|
@@ -85,10 +85,22 @@ var MiscUtils = {
|
|
|
85
85
|
},
|
|
86
86
|
killEvent: function killEvent(ev) {
|
|
87
87
|
if (ev.cancelable) {
|
|
88
|
+
var _ev$nativeEvent, _ev$nativeEvent$stopI;
|
|
88
89
|
ev.stopPropagation();
|
|
90
|
+
(_ev$nativeEvent = ev.nativeEvent) === null || _ev$nativeEvent === void 0 || (_ev$nativeEvent$stopI = _ev$nativeEvent.stopImmediatePropagation) === null || _ev$nativeEvent$stopI === void 0 || _ev$nativeEvent$stopI.call(_ev$nativeEvent);
|
|
89
91
|
ev.preventDefault();
|
|
90
92
|
}
|
|
91
93
|
},
|
|
94
|
+
checkKeyActivate: function checkKeyActivate(ev) {
|
|
95
|
+
var onEsc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
96
|
+
if (ev.code === "Space" || ev.code === "Enter") {
|
|
97
|
+
MiscUtils.killEvent(ev);
|
|
98
|
+
ev.currentTarget.click();
|
|
99
|
+
} else if (ev.code === "Escape" && onEsc) {
|
|
100
|
+
MiscUtils.killEvent(ev);
|
|
101
|
+
onEsc();
|
|
102
|
+
}
|
|
103
|
+
},
|
|
92
104
|
blendColors: function blendColors(color1, color2, ratio) {
|
|
93
105
|
color1 = [parseInt(color1[1] + color1[2], 16), parseInt(color1[3] + color1[4], 16), parseInt(color1[5] + color1[6], 16)];
|
|
94
106
|
color2 = [parseInt(color2[1] + color2[2], 16), parseInt(color2[3] + color2[4], 16), parseInt(color2[5] + color2[6], 16)];
|
package/utils/ThemeUtils.js
CHANGED
|
@@ -137,6 +137,7 @@ var ThemeUtils = {
|
|
|
137
137
|
var sublayerNames = LayerUtils.getSublayerNames({
|
|
138
138
|
sublayers: subLayers !== null && subLayers !== void 0 ? subLayers : theme.sublayers
|
|
139
139
|
});
|
|
140
|
+
var commonTranslations = StandardApp.store.getState().locale.messagesTree.maptranslations || {};
|
|
140
141
|
var baseParams = urlParts.query;
|
|
141
142
|
var layer = {
|
|
142
143
|
type: "wms",
|
|
@@ -175,7 +176,7 @@ var ThemeUtils = {
|
|
|
175
176
|
LayerUtils.completeExternalLayer(res[cur.internalLayer], LayerUtils.searchSubLayer(theme, 'name', cur.internalLayer));
|
|
176
177
|
return res;
|
|
177
178
|
}, {})),
|
|
178
|
-
translations: theme.translations,
|
|
179
|
+
translations: deepmerge(commonTranslations, theme.translations),
|
|
179
180
|
editConfig: theme.editConfig,
|
|
180
181
|
wms_name: theme.wms_name
|
|
181
182
|
};
|