qwc2 2025.12.19 → 2025.12.24
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/display.js +6 -6
- package/actions/theme.js +4 -19
- package/components/AppMenu.js +1 -1
- package/components/AttributeForm.js +7 -7
- package/components/AttributeTableWidget.js +2 -2
- package/components/AutoEditForm.js +6 -3
- package/components/EditComboField.js +1 -4
- package/components/IdentifyViewer.js +33 -34
- package/components/ImportLayer.js +78 -79
- package/components/PluginsContainer.js +2 -2
- package/components/ResizeableWindow.js +8 -1
- package/components/SearchBox.js +2 -2
- package/components/SideBar.js +1 -0
- package/components/StandardApp.js +1 -2
- package/components/ThemeLayersListWindow.js +10 -1
- package/components/{map3d/View3DSwitcher.js → ViewSwitcher.js} +74 -29
- package/components/map/OlMap.js +1 -1
- package/components/map3d/Map3D.js +50 -48
- package/components/map3d/MapControls3D.js +4 -1
- package/components/map3d/drawtool/EditTool3D.js +1 -1
- package/components/map3d/layers/WFSLayer3D.js +1 -1
- package/components/share/ShareQRCode.js +1 -1
- package/components/style/ViewSwitcher.css +36 -0
- package/components/widgets/ColorButton.js +2 -2
- package/components/widgets/CopyButton.js +1 -1
- package/components/widgets/LayerCatalogWidget.js +4 -4
- package/libs/openlayers.js +11 -11
- package/package.json +54 -55
- package/plugins/API.js +4 -4
- package/plugins/FeatureForm.js +2 -2
- package/plugins/FeatureSearch.js +12 -12
- package/plugins/GeometryDigitizer.js +2 -3
- package/plugins/Map.js +11 -4
- package/plugins/MapFilter.js +12 -12
- package/plugins/MapTip.js +1 -1
- package/plugins/ObliqueView.js +31 -12
- package/plugins/Print.js +79 -91
- package/plugins/Routing.js +1 -1
- package/plugins/Share.js +5 -5
- package/plugins/TimeManager.js +1 -2
- package/plugins/View3D.js +135 -123
- package/plugins/map/RedliningSupport.js +1 -1
- package/plugins/map3d/Draw3D.js +4 -4
- package/plugins/map3d/ExportObjects3D.js +1 -1
- package/plugins/map3d/HideObjects3D.js +7 -7
- package/plugins/map3d/Identify3D.js +1 -1
- package/plugins/map3d/LayerTree3D.js +1 -1
- package/plugins/map3d/MapExport3D.js +25 -25
- package/plugins/map3d/Measure3D.js +1 -1
- package/plugins/map3d/TopBar3D.js +7 -7
- package/plugins/style/ObliqueView.css +21 -9
- package/reducers/display.js +2 -2
- package/reducers/layers.js +11 -11
- package/scripts/gen-plugin-docs.js +11 -4
- package/scripts/makeIconkit.js +2 -2
- package/scripts/themesConfig.js +5 -5
- package/scripts/updateTranslations.js +2 -2
- package/utils/CoordinatesUtils.js +1 -1
- package/utils/EditingUtils.js +4 -4
- package/utils/FeatureStyles.js +1 -1
- package/utils/LayerUtils.js +73 -74
- package/utils/MiscUtils.js +10 -3
- package/utils/PermaLinkUtils.js +68 -71
- package/utils/SearchProviders.js +2 -2
- package/utils/ServiceLayerUtils.js +12 -12
- package/utils/ThemeUtils.js +1 -1
- package/utils/VectorLayerUtils.js +3 -3
- package/components/map3d/style/View3DSwitcher.css +0 -19
|
@@ -35,8 +35,8 @@ import ol from 'openlayers';
|
|
|
35
35
|
import pointInPolygon from 'point-in-polygon';
|
|
36
36
|
import PropTypes from 'prop-types';
|
|
37
37
|
import { CurvePath, LineCurve, Vector2, Vector3 } from 'three';
|
|
38
|
-
import TaskBar from '../../components/TaskBar';
|
|
39
38
|
import HeightProfile3D from '../../components/map3d/HeightProfile3D';
|
|
39
|
+
import TaskBar from '../../components/TaskBar';
|
|
40
40
|
import ButtonBar from '../../components/widgets/ButtonBar';
|
|
41
41
|
import CopyButton from '../../components/widgets/CopyButton';
|
|
42
42
|
import ConfigUtils from '../../utils/ConfigUtils';
|
|
@@ -27,13 +27,13 @@ import { connect } from 'react-redux';
|
|
|
27
27
|
import classNames from 'classnames';
|
|
28
28
|
import isEmpty from 'lodash.isempty';
|
|
29
29
|
import PropTypes from 'prop-types';
|
|
30
|
-
import { toggleFullscreen,
|
|
30
|
+
import { toggleFullscreen, ViewMode } from '../../actions/display';
|
|
31
31
|
import { openExternalUrl, setTopbarHeight } from '../../actions/windows';
|
|
32
32
|
import AppMenu from '../../components/AppMenu';
|
|
33
33
|
import FullscreenSwitcher from '../../components/FullscreenSwitcher';
|
|
34
|
+
import SearchField3D from '../../components/map3d/SearchField3D';
|
|
34
35
|
import { Swipeable } from '../../components/Swipeable';
|
|
35
36
|
import Toolbar from '../../components/Toolbar';
|
|
36
|
-
import SearchField3D from '../../components/map3d/SearchField3D';
|
|
37
37
|
import ConfigUtils from '../../utils/ConfigUtils';
|
|
38
38
|
import LocaleUtils from '../../utils/LocaleUtils';
|
|
39
39
|
import ThemeUtils from '../../utils/ThemeUtils';
|
|
@@ -55,7 +55,7 @@ var TopBar3D = /*#__PURE__*/function (_React$Component) {
|
|
|
55
55
|
});
|
|
56
56
|
_defineProperty(_this, "filter2DItems", function (item) {
|
|
57
57
|
var pluginConf = ConfigUtils.getPluginConfig(item.key);
|
|
58
|
-
return isEmpty(pluginConf) || _this.props.
|
|
58
|
+
return isEmpty(pluginConf) || _this.props.viewMode === ViewMode._3DFullscreen && pluginConf.availableIn3D;
|
|
59
59
|
});
|
|
60
60
|
_defineProperty(_this, "storeHeight", function (el) {
|
|
61
61
|
if (el) {
|
|
@@ -100,7 +100,7 @@ var TopBar3D = /*#__PURE__*/function (_React$Component) {
|
|
|
100
100
|
}, {
|
|
101
101
|
key: "componentDidUpdate",
|
|
102
102
|
value: function componentDidUpdate(prevProps) {
|
|
103
|
-
if (this.props.currentTheme !== prevProps.currentTheme || this.props.
|
|
103
|
+
if (this.props.currentTheme !== prevProps.currentTheme || this.props.viewMode !== prevProps.viewMode) {
|
|
104
104
|
this.setState({
|
|
105
105
|
allowedToolbarItems: ThemeUtils.allowedItems(this.props.toolbarItems, this.props.currentTheme, this.filter2DItems),
|
|
106
106
|
allowedMenuItems: ThemeUtils.allowedItems(this.props.menuItems, this.props.currentTheme, this.filter2DItems)
|
|
@@ -167,7 +167,7 @@ var TopBar3D = /*#__PURE__*/function (_React$Component) {
|
|
|
167
167
|
menuItems: this.state.allowedMenuItems,
|
|
168
168
|
openExternalUrl: this.openUrl,
|
|
169
169
|
showFilterField: config.appMenuFilterField
|
|
170
|
-
}), this.props.
|
|
170
|
+
}), this.props.viewMode === ViewMode._3DFullscreen ? /*#__PURE__*/React.createElement(FullscreenSwitcher, null) : null));
|
|
171
171
|
}
|
|
172
172
|
}]);
|
|
173
173
|
}(React.Component);
|
|
@@ -193,7 +193,7 @@ _defineProperty(TopBar3D, "propTypes", {
|
|
|
193
193
|
* You can also include entries for 2D plugins which are compatible with the 3D view (i.e. `ThemeSwitcher`, `Share`, etc.),
|
|
194
194
|
* these will be displayed only in fullsceen 3D mode. */
|
|
195
195
|
toolbarItems: PropTypes.array,
|
|
196
|
-
|
|
196
|
+
viewMode: PropTypes.number
|
|
197
197
|
});
|
|
198
198
|
_defineProperty(TopBar3D, "defaultProps", {
|
|
199
199
|
searchOptions: {
|
|
@@ -204,7 +204,7 @@ export default connect(function (state) {
|
|
|
204
204
|
return {
|
|
205
205
|
currentTheme: state.theme.current,
|
|
206
206
|
fullscreen: state.display.fullscreen,
|
|
207
|
-
|
|
207
|
+
viewMode: state.display.viewMode
|
|
208
208
|
};
|
|
209
209
|
}, {
|
|
210
210
|
setTopbarHeight: setTopbarHeight,
|
|
@@ -31,18 +31,25 @@ div.obliqueview-nav-rotate {
|
|
|
31
31
|
align-items: center;
|
|
32
32
|
justify-content: center;
|
|
33
33
|
flex-wrap: wrap;
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
36
|
-
border-radius: 3em;
|
|
37
|
-
color: var(--map-button-text-color);
|
|
38
|
-
background-color: var(--map-button-bg-color);
|
|
39
|
-
box-shadow: 0px 5px 10px rgba(136, 136, 136, 0.5);
|
|
34
|
+
width: 6em;
|
|
35
|
+
height: 6em;
|
|
40
36
|
margin-bottom: 0.5em;
|
|
41
37
|
transition: transform 0.5s;
|
|
42
38
|
}
|
|
43
39
|
|
|
44
40
|
div.obliqueview-nav-rotate > span {
|
|
45
|
-
flex: 0 0
|
|
41
|
+
flex: 0 0 2em;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
div.obliqueview-nav-circle {
|
|
45
|
+
position: absolute;
|
|
46
|
+
left: .75em;
|
|
47
|
+
top: .75em;
|
|
48
|
+
right: .75em;
|
|
49
|
+
bottom: .75em;
|
|
50
|
+
border: 4px solid var(--map-button-bg-color);
|
|
51
|
+
z-index: -1;
|
|
52
|
+
border-radius: 4.5em;
|
|
46
53
|
}
|
|
47
54
|
|
|
48
55
|
span.obliqueview-nav-dir {
|
|
@@ -52,12 +59,17 @@ span.obliqueview-nav-dir {
|
|
|
52
59
|
font-weight: bold;
|
|
53
60
|
cursor: pointer;
|
|
54
61
|
transition: transform 0.5s;
|
|
62
|
+
border-radius: 6px;
|
|
63
|
+
color: var(--map-button-text-color);
|
|
64
|
+
background-color: var(--map-button-bg-color);
|
|
65
|
+
box-shadow: 0px 5px 10px rgba(136, 136, 136, 0.5);
|
|
66
|
+
line-height: 2em;
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
div.obliqueview-nav-zoom {
|
|
58
70
|
position: absolute;
|
|
59
|
-
right:
|
|
60
|
-
top:
|
|
71
|
+
right: 1.5em;
|
|
72
|
+
top: 8em;
|
|
61
73
|
width: 2em;
|
|
62
74
|
display: flex;
|
|
63
75
|
align-items: center;
|
package/reducers/display.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
15
15
|
import { TOGGLE_FULLSCREEN, SET_VIEW_3D_MODE } from '../actions/display';
|
|
16
16
|
var defaultState = {
|
|
17
17
|
fullscreen: false,
|
|
18
|
-
|
|
18
|
+
viewMode: 0
|
|
19
19
|
};
|
|
20
20
|
export default function toggleFullscreen() {
|
|
21
21
|
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : defaultState;
|
|
@@ -30,7 +30,7 @@ export default function toggleFullscreen() {
|
|
|
30
30
|
case SET_VIEW_3D_MODE:
|
|
31
31
|
{
|
|
32
32
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
33
|
-
|
|
33
|
+
viewMode: action.mode
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
default:
|
package/reducers/layers.js
CHANGED
|
@@ -390,7 +390,7 @@ export default function layers() {
|
|
|
390
390
|
}
|
|
391
391
|
case REORDER_LAYER:
|
|
392
392
|
{
|
|
393
|
-
var
|
|
393
|
+
var _newLayers0 = LayerUtils.reorderLayer(state.flat, action.layer, action.sublayerpath, action.direction, action.preventSplittingGroups).map(function (layer) {
|
|
394
394
|
if (layer.type === "wms") {
|
|
395
395
|
return _objectSpread(_objectSpread({}, layer), LayerUtils.buildWMSLayerParams(layer, state.filter));
|
|
396
396
|
} else {
|
|
@@ -398,24 +398,24 @@ export default function layers() {
|
|
|
398
398
|
}
|
|
399
399
|
});
|
|
400
400
|
UrlParams.updateParams({
|
|
401
|
-
l: LayerUtils.buildWMSLayerUrlParam(
|
|
401
|
+
l: LayerUtils.buildWMSLayerUrlParam(_newLayers0)
|
|
402
402
|
});
|
|
403
403
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
404
|
-
flat:
|
|
404
|
+
flat: _newLayers0
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
407
|
case REPLACE_PLACEHOLDER_LAYER:
|
|
408
408
|
{
|
|
409
|
-
var
|
|
409
|
+
var _newLayers1 = LayerUtils.replacePlaceholderLayer(state.flat, action.id, action.layer, state.filter);
|
|
410
410
|
UrlParams.updateParams({
|
|
411
|
-
l: LayerUtils.buildWMSLayerUrlParam(
|
|
411
|
+
l: LayerUtils.buildWMSLayerUrlParam(_newLayers1)
|
|
412
412
|
});
|
|
413
413
|
var _newEditConfigs3 = state.editConfigs;
|
|
414
414
|
if (action.layer.editConfig && action.layer.wms_name) {
|
|
415
415
|
_newEditConfigs3 = _objectSpread(_objectSpread({}, _newEditConfigs3), {}, _defineProperty({}, action.layer.wms_name, _objectSpread(_objectSpread({}, _newEditConfigs3[action.layer.wms_name]), action.layer.editConfig)));
|
|
416
416
|
}
|
|
417
417
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
418
|
-
flat:
|
|
418
|
+
flat: _newLayers1,
|
|
419
419
|
editConfigs: _newEditConfigs3
|
|
420
420
|
});
|
|
421
421
|
}
|
|
@@ -432,20 +432,20 @@ export default function layers() {
|
|
|
432
432
|
filterGeom: action.filterGeom,
|
|
433
433
|
timeRange: action.timeRange
|
|
434
434
|
};
|
|
435
|
-
var
|
|
435
|
+
var _newLayers10 = state.flat.map(function (layer) {
|
|
436
436
|
if (layer.type === "wms") {
|
|
437
437
|
return _objectSpread(_objectSpread({}, layer), LayerUtils.buildWMSLayerParams(layer, filter));
|
|
438
438
|
}
|
|
439
439
|
return layer;
|
|
440
440
|
});
|
|
441
441
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
442
|
-
flat:
|
|
442
|
+
flat: _newLayers10,
|
|
443
443
|
filter: filter
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
case SET_THEME_LAYERS_VISIBILITY_PRESET:
|
|
447
447
|
{
|
|
448
|
-
var
|
|
448
|
+
var _newLayers11 = state.flat.map(function (layer) {
|
|
449
449
|
if (layer.role === LayerRole.THEME) {
|
|
450
450
|
var _newLayer2 = LayerUtils.applyVisibilityPreset(layer, action.preset);
|
|
451
451
|
return _objectSpread(_objectSpread({}, _newLayer2), LayerUtils.buildWMSLayerParams(_newLayer2, state.filter));
|
|
@@ -454,10 +454,10 @@ export default function layers() {
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
UrlParams.updateParams({
|
|
457
|
-
l: LayerUtils.buildWMSLayerUrlParam(
|
|
457
|
+
l: LayerUtils.buildWMSLayerUrlParam(_newLayers11)
|
|
458
458
|
});
|
|
459
459
|
return _objectSpread(_objectSpread({}, state), {}, {
|
|
460
|
-
flat:
|
|
460
|
+
flat: _newLayers11
|
|
461
461
|
});
|
|
462
462
|
}
|
|
463
463
|
default:
|
|
@@ -13,16 +13,19 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
13
13
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
14
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
15
15
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
|
+
var reactDocs = require("react-docgen");
|
|
16
17
|
var fs = require("fs");
|
|
17
18
|
var path = require("path");
|
|
18
|
-
var
|
|
19
|
+
var findAllDefinitionsResolver = new reactDocs.builtinResolvers.FindAllDefinitionsResolver();
|
|
19
20
|
var qwcPluginDir = __dirname + '/../plugins';
|
|
20
21
|
var pluginData = [];
|
|
21
22
|
fs.readdirSync(qwcPluginDir).forEach(function (entry) {
|
|
22
23
|
if (entry.endsWith(".jsx")) {
|
|
23
24
|
var file = path.resolve(qwcPluginDir, entry);
|
|
24
25
|
var contents = fs.readFileSync(file);
|
|
25
|
-
pluginData.push(reactDocs.parse(contents,
|
|
26
|
+
pluginData.push(reactDocs.parse(contents, {
|
|
27
|
+
resolver: findAllDefinitionsResolver
|
|
28
|
+
}));
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
pluginData = pluginData.flat();
|
|
@@ -31,7 +34,9 @@ fs.readdirSync(qwcPluginDir + "/map").forEach(function (entry) {
|
|
|
31
34
|
if (entry.endsWith(".jsx")) {
|
|
32
35
|
var file = path.resolve(qwcPluginDir, "map", entry);
|
|
33
36
|
var contents = fs.readFileSync(file);
|
|
34
|
-
mapToolPluginData.push(reactDocs.parse(contents,
|
|
37
|
+
mapToolPluginData.push(reactDocs.parse(contents, {
|
|
38
|
+
resolver: findAllDefinitionsResolver
|
|
39
|
+
}));
|
|
35
40
|
}
|
|
36
41
|
});
|
|
37
42
|
mapToolPluginData = mapToolPluginData.flat();
|
|
@@ -40,7 +45,9 @@ fs.readdirSync(qwcPluginDir + "/map3d").forEach(function (entry) {
|
|
|
40
45
|
if (entry.endsWith(".jsx")) {
|
|
41
46
|
var file = path.resolve(qwcPluginDir, "map3d", entry);
|
|
42
47
|
var contents = fs.readFileSync(file);
|
|
43
|
-
plugin3dData.push(reactDocs.parse(contents,
|
|
48
|
+
plugin3dData.push(reactDocs.parse(contents, {
|
|
49
|
+
resolver: findAllDefinitionsResolver
|
|
50
|
+
}));
|
|
44
51
|
}
|
|
45
52
|
});
|
|
46
53
|
plugin3dData = plugin3dData.flat();
|
package/scripts/makeIconkit.js
CHANGED
|
@@ -4,14 +4,14 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
4
4
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
5
5
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
6
6
|
var webfontsGenerator = require('@furkot/webfonts-generator');
|
|
7
|
+
var fs = require('fs');
|
|
7
8
|
var glob = require('glob');
|
|
8
9
|
var mkdirp = require('mkdirp');
|
|
9
|
-
var fs = require('fs');
|
|
10
10
|
var path = require('path');
|
|
11
11
|
var readJSON = function readJSON(filename) {
|
|
12
12
|
try {
|
|
13
13
|
return JSON.parse(fs.readFileSync(process.cwd() + filename, "utf8"));
|
|
14
|
-
} catch (
|
|
14
|
+
} catch (_unused) {
|
|
15
15
|
return {};
|
|
16
16
|
}
|
|
17
17
|
};
|
package/scripts/themesConfig.js
CHANGED
|
@@ -20,16 +20,16 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
20
20
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
21
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
22
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
23
|
-
var urlUtil = require('url');
|
|
24
23
|
var axios = require('axios');
|
|
24
|
+
var urlUtil = require('url');
|
|
25
25
|
var XMLParser = require('fast-xml-parser').XMLParser;
|
|
26
26
|
var fs = require('fs');
|
|
27
|
-
var path = require('path');
|
|
28
|
-
var objectPath = require('object-path');
|
|
29
27
|
var isEmpty = require('lodash.isempty');
|
|
28
|
+
var objectPath = require('object-path');
|
|
29
|
+
var path = require('path');
|
|
30
30
|
var uuidv4 = require('uuid').v1;
|
|
31
|
-
var os = require('os');
|
|
32
31
|
var dns = require('dns');
|
|
32
|
+
var os = require('os');
|
|
33
33
|
var _dns$promises = dns.promises,
|
|
34
34
|
lookup = _dns$promises.lookup,
|
|
35
35
|
lookupService = _dns$promises.lookupService;
|
|
@@ -456,7 +456,7 @@ function getTheme(config, configItem, result, resultItem, proxy) {
|
|
|
456
456
|
}).PrimaryKey.PrimaryKeyAttribute;
|
|
457
457
|
printTemplate.atlasCoverageLayer = atlasLayer;
|
|
458
458
|
printTemplate.atlas_pk = pk;
|
|
459
|
-
} catch (
|
|
459
|
+
} catch (_unused) {
|
|
460
460
|
/* eslint-disable-next-line */
|
|
461
461
|
console.warn("Failed to determine primary key for atlas layer " + atlasLayer);
|
|
462
462
|
}
|
|
@@ -16,13 +16,13 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
16
16
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
17
17
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
18
18
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
19
|
-
var fs = require('fs');
|
|
20
19
|
var merge = require('deepmerge');
|
|
20
|
+
var fs = require('fs');
|
|
21
21
|
var objectPath = require('object-path');
|
|
22
22
|
var readJSON = function readJSON(path) {
|
|
23
23
|
try {
|
|
24
24
|
return JSON.parse(fs.readFileSync(process.cwd() + path, "utf8"));
|
|
25
|
-
} catch (
|
|
25
|
+
} catch (_unused) {
|
|
26
26
|
return {};
|
|
27
27
|
}
|
|
28
28
|
};
|
package/utils/EditingUtils.js
CHANGED
|
@@ -31,9 +31,9 @@ import toposort from 'toposort';
|
|
|
31
31
|
import { v5 as uuidv5 } from 'uuid';
|
|
32
32
|
import StandardApp from '../components/StandardApp';
|
|
33
33
|
import ConfigUtils from './ConfigUtils';
|
|
34
|
+
import grammar from './expr_grammar/grammar';
|
|
34
35
|
import LocaleUtils from './LocaleUtils';
|
|
35
36
|
import MiscUtils from './MiscUtils';
|
|
36
|
-
import grammar from './expr_grammar/grammar';
|
|
37
37
|
var UUID_NS = '5ae5531d-8e21-4456-b45d-77e9840a5bb7';
|
|
38
38
|
export var FeatureCache = /*#__PURE__*/_createClass(function FeatureCache() {
|
|
39
39
|
_classCallCheck(this, FeatureCache);
|
|
@@ -189,7 +189,7 @@ export function parseExpression(expr, feature, editConfig, editIface, mapPrefix,
|
|
|
189
189
|
try {
|
|
190
190
|
parser.feed(expr.replace(/\n/, ' '));
|
|
191
191
|
result = parser.results[0];
|
|
192
|
-
} catch (
|
|
192
|
+
} catch (_unused) {
|
|
193
193
|
/* eslint-disable-next-line */
|
|
194
194
|
console.warn("Failed to evaluate expression " + expr.replace(/\n/, ' '));
|
|
195
195
|
}
|
|
@@ -242,7 +242,7 @@ export function parseExpressionsAsync(fieldExpressions, feature, editConfig, edi
|
|
|
242
242
|
// NOTE: include intermediate results in next context feature
|
|
243
243
|
newfeature.properties[field] = parser.results[0];
|
|
244
244
|
return _objectSpread(_objectSpread({}, res), {}, _defineProperty({}, field, parser.results[0]));
|
|
245
|
-
} catch (
|
|
245
|
+
} catch (_unused2) {
|
|
246
246
|
/* eslint-disable-next-line */
|
|
247
247
|
console.warn("Failed to evaluate expression " + expression.replace(/\n/, ' '));
|
|
248
248
|
return res;
|
|
@@ -332,7 +332,7 @@ export function computeExpressionFields(editConfig, feature, editIface, mapCrs,
|
|
|
332
332
|
return res;
|
|
333
333
|
}
|
|
334
334
|
}, []);
|
|
335
|
-
} catch (
|
|
335
|
+
} catch (_unused3) {
|
|
336
336
|
/* eslint-disable-next-line */
|
|
337
337
|
console.warn("Failed to sort expressions, they probably contain cyclic dependencies");
|
|
338
338
|
fieldExpressions = Object.entries(fieldExpressions).map(function (_ref4) {
|
package/utils/FeatureStyles.js
CHANGED
|
@@ -16,10 +16,10 @@ import ol from 'openlayers';
|
|
|
16
16
|
import minus from '../icons/minus.svg';
|
|
17
17
|
import plus from '../icons/plus.svg';
|
|
18
18
|
import ConfigUtils from './ConfigUtils';
|
|
19
|
-
import ResourceRegistry from './ResourceRegistry';
|
|
20
19
|
import arrowhead from './img/arrowhead.svg';
|
|
21
20
|
import markerIcon from './img/marker-icon.png';
|
|
22
21
|
import measurehead from './img/measurehead.svg';
|
|
22
|
+
import ResourceRegistry from './ResourceRegistry';
|
|
23
23
|
ResourceRegistry.addResource('arrowhead', arrowhead);
|
|
24
24
|
ResourceRegistry.addResource('measurehead', measurehead);
|
|
25
25
|
ResourceRegistry.addResource('marker', markerIcon);
|