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
package/plugins/Print.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
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); }
|
|
2
|
-
function
|
|
2
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
3
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
3
4
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
4
5
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
5
6
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
@@ -782,8 +783,8 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
782
783
|
});
|
|
783
784
|
});
|
|
784
785
|
_defineProperty(_this, "translateLayoutName", function (item) {
|
|
785
|
-
var _ref9,
|
|
786
|
-
return (_ref9 = (
|
|
786
|
+
var _ref9, _ref0, _this$props$theme$tra, _this$props$theme$tra2, _this$props$theme$tra3;
|
|
787
|
+
return (_ref9 = (_ref0 = (_this$props$theme$tra = (_this$props$theme$tra2 = _this.props.theme.translations) === null || _this$props$theme$tra2 === void 0 || (_this$props$theme$tra2 = _this$props$theme$tra2.layouts) === null || _this$props$theme$tra2 === void 0 ? void 0 : _this$props$theme$tra2[item.title]) !== null && _this$props$theme$tra !== void 0 ? _this$props$theme$tra : (_this$props$theme$tra3 = _this.props.theme.translations) === null || _this$props$theme$tra3 === void 0 || (_this$props$theme$tra3 = _this$props$theme$tra3.layouts) === null || _this$props$theme$tra3 === void 0 ? void 0 : _this$props$theme$tra3[item.name]) !== null && _ref0 !== void 0 ? _ref0 : item.title) !== null && _ref9 !== void 0 ? _ref9 : item.name;
|
|
787
788
|
});
|
|
788
789
|
_this.printForm = null;
|
|
789
790
|
_this.state.grid = props.gridInitiallyEnabled;
|
|
@@ -887,24 +888,24 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
887
888
|
}, {
|
|
888
889
|
key: "batchPrint",
|
|
889
890
|
value: function () {
|
|
890
|
-
var _batchPrint = _asyncToGenerator(/*#__PURE__*/
|
|
891
|
+
var _batchPrint = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(pages, fileName) {
|
|
891
892
|
var _this4 = this;
|
|
892
893
|
var promises, docs, files, file, fileURL, _iterator, _step, _file;
|
|
893
|
-
return
|
|
894
|
-
while (1) switch (_context.
|
|
894
|
+
return _regenerator().w(function (_context) {
|
|
895
|
+
while (1) switch (_context.n) {
|
|
895
896
|
case 0:
|
|
896
897
|
// Print pages on server
|
|
897
898
|
promises = pages.map(function (formData) {
|
|
898
899
|
return _this4.printRequest(formData);
|
|
899
900
|
}); // Collect printing results
|
|
900
|
-
_context.
|
|
901
|
+
_context.n = 1;
|
|
901
902
|
return Promise.all(promises);
|
|
902
|
-
case
|
|
903
|
-
docs = _context.
|
|
904
|
-
_context.
|
|
903
|
+
case 1:
|
|
904
|
+
docs = _context.v;
|
|
905
|
+
_context.n = 2;
|
|
905
906
|
return this.collectFiles(docs, fileName);
|
|
906
|
-
case
|
|
907
|
-
files = _context.
|
|
907
|
+
case 2:
|
|
908
|
+
files = _context.v;
|
|
908
909
|
// Download or display files
|
|
909
910
|
if (this.props.inlinePrintOutput && files.length === 1) {
|
|
910
911
|
file = files.pop();
|
|
@@ -927,9 +928,8 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
927
928
|
_iterator.f();
|
|
928
929
|
}
|
|
929
930
|
}
|
|
930
|
-
case
|
|
931
|
-
|
|
932
|
-
return _context.stop();
|
|
931
|
+
case 3:
|
|
932
|
+
return _context.a(2);
|
|
933
933
|
}
|
|
934
934
|
}, _callee, this);
|
|
935
935
|
}));
|
|
@@ -941,10 +941,10 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
941
941
|
}, {
|
|
942
942
|
key: "printRequest",
|
|
943
943
|
value: function () {
|
|
944
|
-
var _printRequest = _asyncToGenerator(/*#__PURE__*/
|
|
944
|
+
var _printRequest = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(formData) {
|
|
945
945
|
var data, config, response, contentType;
|
|
946
|
-
return
|
|
947
|
-
while (1) switch (_context2.
|
|
946
|
+
return _regenerator().w(function (_context2) {
|
|
947
|
+
while (1) switch (_context2.n) {
|
|
948
948
|
case 0:
|
|
949
949
|
data = Object.entries(formData).map(function (pair) {
|
|
950
950
|
return pair.map(function (entry) {
|
|
@@ -957,19 +957,16 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
957
957
|
},
|
|
958
958
|
responseType: 'arraybuffer'
|
|
959
959
|
};
|
|
960
|
-
_context2.
|
|
960
|
+
_context2.n = 1;
|
|
961
961
|
return axios.post(this.props.theme.printUrl, data, config);
|
|
962
|
-
case
|
|
963
|
-
response = _context2.
|
|
962
|
+
case 1:
|
|
963
|
+
response = _context2.v;
|
|
964
964
|
contentType = response.headers['content-type'];
|
|
965
|
-
return _context2.
|
|
965
|
+
return _context2.a(2, {
|
|
966
966
|
name: formData.name,
|
|
967
967
|
data: response.data,
|
|
968
968
|
contentType: contentType
|
|
969
969
|
});
|
|
970
|
-
case 7:
|
|
971
|
-
case "end":
|
|
972
|
-
return _context2.stop();
|
|
973
970
|
}
|
|
974
971
|
}, _callee2, this);
|
|
975
972
|
}));
|
|
@@ -981,45 +978,45 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
981
978
|
}, {
|
|
982
979
|
key: "collectFiles",
|
|
983
980
|
value: function () {
|
|
984
|
-
var _collectFiles = _asyncToGenerator(/*#__PURE__*/
|
|
981
|
+
var _collectFiles = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(docs, fileName) {
|
|
985
982
|
var _this5 = this;
|
|
986
983
|
var data, content, _data, _content;
|
|
987
|
-
return
|
|
988
|
-
while (1) switch (_context3.
|
|
984
|
+
return _regenerator().w(function (_context3) {
|
|
985
|
+
while (1) switch (_context3.n) {
|
|
989
986
|
case 0:
|
|
990
987
|
if (!(docs.length > 1 && this.state.downloadMode === 'onepdf')) {
|
|
991
|
-
_context3.
|
|
988
|
+
_context3.n = 2;
|
|
992
989
|
break;
|
|
993
990
|
}
|
|
994
|
-
_context3.
|
|
991
|
+
_context3.n = 1;
|
|
995
992
|
return this.collectOnePdf(docs);
|
|
996
|
-
case
|
|
997
|
-
data = _context3.
|
|
993
|
+
case 1:
|
|
994
|
+
data = _context3.v;
|
|
998
995
|
content = new Blob([data], {
|
|
999
996
|
type: 'application/pdf'
|
|
1000
997
|
});
|
|
1001
|
-
return _context3.
|
|
998
|
+
return _context3.a(2, [{
|
|
1002
999
|
content: content,
|
|
1003
1000
|
fileName: fileName + '.pdf'
|
|
1004
1001
|
}]);
|
|
1005
|
-
case
|
|
1002
|
+
case 2:
|
|
1006
1003
|
if (!(docs.length > 1 && this.state.downloadMode === 'onezip')) {
|
|
1007
|
-
_context3.
|
|
1004
|
+
_context3.n = 4;
|
|
1008
1005
|
break;
|
|
1009
1006
|
}
|
|
1010
|
-
_context3.
|
|
1007
|
+
_context3.n = 3;
|
|
1011
1008
|
return this.collectOneZip(docs, fileName);
|
|
1012
|
-
case
|
|
1013
|
-
_data = _context3.
|
|
1009
|
+
case 3:
|
|
1010
|
+
_data = _context3.v;
|
|
1014
1011
|
_content = new Blob([_data], {
|
|
1015
1012
|
type: 'application/zip'
|
|
1016
1013
|
});
|
|
1017
|
-
return _context3.
|
|
1014
|
+
return _context3.a(2, [{
|
|
1018
1015
|
content: _content,
|
|
1019
1016
|
fileName: fileName + '.zip'
|
|
1020
1017
|
}]);
|
|
1021
|
-
case
|
|
1022
|
-
return _context3.
|
|
1018
|
+
case 4:
|
|
1019
|
+
return _context3.a(2, docs.map(function (doc) {
|
|
1023
1020
|
var content = new Blob([doc.data], {
|
|
1024
1021
|
type: doc.contentType
|
|
1025
1022
|
});
|
|
@@ -1030,9 +1027,6 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
1030
1027
|
fileName: fileName + appendix + '.' + ext
|
|
1031
1028
|
};
|
|
1032
1029
|
}));
|
|
1033
|
-
case 13:
|
|
1034
|
-
case "end":
|
|
1035
|
-
return _context3.stop();
|
|
1036
1030
|
}
|
|
1037
1031
|
}, _callee3, this);
|
|
1038
1032
|
}));
|
|
@@ -1044,37 +1038,37 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
1044
1038
|
}, {
|
|
1045
1039
|
key: "collectOnePdf",
|
|
1046
1040
|
value: function () {
|
|
1047
|
-
var _collectOnePdf = _asyncToGenerator(/*#__PURE__*/
|
|
1048
|
-
var _yield$import, PDFDocument, mergedDoc, _iterator2, _step2, doc, pdfBytes, copiedPages, _iterator3, _step3, page;
|
|
1049
|
-
return
|
|
1050
|
-
while (1) switch (_context4.
|
|
1041
|
+
var _collectOnePdf = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(docs) {
|
|
1042
|
+
var _yield$import, PDFDocument, mergedDoc, _iterator2, _step2, doc, pdfBytes, copiedPages, _iterator3, _step3, page, _t;
|
|
1043
|
+
return _regenerator().w(function (_context4) {
|
|
1044
|
+
while (1) switch (_context4.p = _context4.n) {
|
|
1051
1045
|
case 0:
|
|
1052
|
-
_context4.
|
|
1046
|
+
_context4.n = 1;
|
|
1053
1047
|
return import('pdf-lib');
|
|
1054
|
-
case
|
|
1055
|
-
_yield$import = _context4.
|
|
1048
|
+
case 1:
|
|
1049
|
+
_yield$import = _context4.v;
|
|
1056
1050
|
PDFDocument = _yield$import.PDFDocument;
|
|
1057
|
-
_context4.
|
|
1051
|
+
_context4.n = 2;
|
|
1058
1052
|
return PDFDocument.create();
|
|
1059
|
-
case
|
|
1060
|
-
mergedDoc = _context4.
|
|
1053
|
+
case 2:
|
|
1054
|
+
mergedDoc = _context4.v;
|
|
1061
1055
|
_iterator2 = _createForOfIteratorHelper(docs);
|
|
1062
|
-
_context4.
|
|
1056
|
+
_context4.p = 3;
|
|
1063
1057
|
_iterator2.s();
|
|
1064
|
-
case
|
|
1058
|
+
case 4:
|
|
1065
1059
|
if ((_step2 = _iterator2.n()).done) {
|
|
1066
|
-
_context4.
|
|
1060
|
+
_context4.n = 8;
|
|
1067
1061
|
break;
|
|
1068
1062
|
}
|
|
1069
1063
|
doc = _step2.value;
|
|
1070
|
-
_context4.
|
|
1064
|
+
_context4.n = 5;
|
|
1071
1065
|
return PDFDocument.load(doc.data);
|
|
1072
|
-
case
|
|
1073
|
-
pdfBytes = _context4.
|
|
1074
|
-
_context4.
|
|
1066
|
+
case 5:
|
|
1067
|
+
pdfBytes = _context4.v;
|
|
1068
|
+
_context4.n = 6;
|
|
1075
1069
|
return mergedDoc.copyPages(pdfBytes, pdfBytes.getPageIndices());
|
|
1076
|
-
case
|
|
1077
|
-
copiedPages = _context4.
|
|
1070
|
+
case 6:
|
|
1071
|
+
copiedPages = _context4.v;
|
|
1078
1072
|
_iterator3 = _createForOfIteratorHelper(copiedPages);
|
|
1079
1073
|
try {
|
|
1080
1074
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
@@ -1086,30 +1080,27 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
1086
1080
|
} finally {
|
|
1087
1081
|
_iterator3.f();
|
|
1088
1082
|
}
|
|
1089
|
-
case
|
|
1090
|
-
_context4.
|
|
1083
|
+
case 7:
|
|
1084
|
+
_context4.n = 4;
|
|
1091
1085
|
break;
|
|
1092
|
-
case
|
|
1093
|
-
_context4.
|
|
1086
|
+
case 8:
|
|
1087
|
+
_context4.n = 10;
|
|
1094
1088
|
break;
|
|
1095
|
-
case
|
|
1096
|
-
_context4.
|
|
1097
|
-
|
|
1098
|
-
_iterator2.e(
|
|
1099
|
-
case
|
|
1100
|
-
_context4.
|
|
1089
|
+
case 9:
|
|
1090
|
+
_context4.p = 9;
|
|
1091
|
+
_t = _context4.v;
|
|
1092
|
+
_iterator2.e(_t);
|
|
1093
|
+
case 10:
|
|
1094
|
+
_context4.p = 10;
|
|
1101
1095
|
_iterator2.f();
|
|
1102
|
-
return _context4.
|
|
1103
|
-
case
|
|
1104
|
-
_context4.
|
|
1096
|
+
return _context4.f(10);
|
|
1097
|
+
case 11:
|
|
1098
|
+
_context4.n = 12;
|
|
1105
1099
|
return mergedDoc.save();
|
|
1106
|
-
case
|
|
1107
|
-
return _context4.
|
|
1108
|
-
case 33:
|
|
1109
|
-
case "end":
|
|
1110
|
-
return _context4.stop();
|
|
1100
|
+
case 12:
|
|
1101
|
+
return _context4.a(2, _context4.v);
|
|
1111
1102
|
}
|
|
1112
|
-
}, _callee4, null, [[
|
|
1103
|
+
}, _callee4, null, [[3, 9, 10, 11]]);
|
|
1113
1104
|
}));
|
|
1114
1105
|
function collectOnePdf(_x6) {
|
|
1115
1106
|
return _collectOnePdf.apply(this, arguments);
|
|
@@ -1119,10 +1110,10 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
1119
1110
|
}, {
|
|
1120
1111
|
key: "collectOneZip",
|
|
1121
1112
|
value: function () {
|
|
1122
|
-
var _collectOneZip = _asyncToGenerator(/*#__PURE__*/
|
|
1113
|
+
var _collectOneZip = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(docs, fileName) {
|
|
1123
1114
|
var mergedDoc, _iterator4, _step4, doc, file, ext, appendix;
|
|
1124
|
-
return
|
|
1125
|
-
while (1) switch (_context5.
|
|
1115
|
+
return _regenerator().w(function (_context5) {
|
|
1116
|
+
while (1) switch (_context5.n) {
|
|
1126
1117
|
case 0:
|
|
1127
1118
|
mergedDoc = new JSZip();
|
|
1128
1119
|
_iterator4 = _createForOfIteratorHelper(docs);
|
|
@@ -1141,15 +1132,12 @@ var Print = /*#__PURE__*/function (_React$Component) {
|
|
|
1141
1132
|
} finally {
|
|
1142
1133
|
_iterator4.f();
|
|
1143
1134
|
}
|
|
1144
|
-
_context5.
|
|
1135
|
+
_context5.n = 1;
|
|
1145
1136
|
return mergedDoc.generateAsync({
|
|
1146
1137
|
type: 'arraybuffer'
|
|
1147
1138
|
});
|
|
1148
|
-
case
|
|
1149
|
-
return _context5.
|
|
1150
|
-
case 6:
|
|
1151
|
-
case "end":
|
|
1152
|
-
return _context5.stop();
|
|
1139
|
+
case 1:
|
|
1140
|
+
return _context5.a(2, _context5.v);
|
|
1153
1141
|
}
|
|
1154
1142
|
}, _callee5, this);
|
|
1155
1143
|
}));
|
package/plugins/Routing.js
CHANGED
package/plugins/Share.js
CHANGED
|
@@ -25,12 +25,12 @@ import { connect } from 'react-redux';
|
|
|
25
25
|
import isEmpty from 'lodash.isempty';
|
|
26
26
|
import PropTypes from 'prop-types';
|
|
27
27
|
import url from 'url';
|
|
28
|
-
import {
|
|
28
|
+
import { ViewMode } from '../actions/display';
|
|
29
29
|
import { addMarker, removeMarker } from '../actions/layers';
|
|
30
|
-
import SideBar from '../components/SideBar';
|
|
31
30
|
import ShareLink from '../components/share/ShareLink';
|
|
32
31
|
import ShareQRCode from '../components/share/ShareQRCode';
|
|
33
32
|
import ShareSocials from '../components/share/ShareSocials';
|
|
33
|
+
import SideBar from '../components/SideBar';
|
|
34
34
|
import ToggleSwitch from '../components/widgets/ToggleSwitch';
|
|
35
35
|
import ConfigUtils from '../utils/ConfigUtils';
|
|
36
36
|
import CoordinatesUtils from '../utils/CoordinatesUtils';
|
|
@@ -84,7 +84,7 @@ var Share = /*#__PURE__*/function (_React$Component) {
|
|
|
84
84
|
shareUrl: shareUrl
|
|
85
85
|
}) : null;
|
|
86
86
|
var username = ConfigUtils.getConfigProp("username");
|
|
87
|
-
return /*#__PURE__*/React.createElement("div", null, _this.props.
|
|
87
|
+
return /*#__PURE__*/React.createElement("div", null, _this.props.viewMode !== ViewMode._3DFullscreen && ConfigUtils.havePlugin("StartupMarker") ? /*#__PURE__*/React.createElement("div", {
|
|
88
88
|
className: "share-option-pin"
|
|
89
89
|
}, /*#__PURE__*/React.createElement("span", null, LocaleUtils.tr("share.showpin")), /*#__PURE__*/React.createElement(ToggleSwitch, {
|
|
90
90
|
active: _this.state.pin,
|
|
@@ -186,7 +186,7 @@ _defineProperty(Share, "propTypes", {
|
|
|
186
186
|
showSocials: PropTypes.oneOfType([PropTypes.bool, PropTypes.arrayOf(PropTypes.string)]),
|
|
187
187
|
/** The side of the application on which to display the sidebar. */
|
|
188
188
|
side: PropTypes.string,
|
|
189
|
-
|
|
189
|
+
viewMode: PropTypes.number
|
|
190
190
|
});
|
|
191
191
|
_defineProperty(Share, "defaultProps", {
|
|
192
192
|
showSocials: true,
|
|
@@ -198,7 +198,7 @@ export default connect(function (state) {
|
|
|
198
198
|
return {
|
|
199
199
|
currentTask: state.task.id,
|
|
200
200
|
map: state.map,
|
|
201
|
-
|
|
201
|
+
viewMode: state.display.viewMode
|
|
202
202
|
};
|
|
203
203
|
}, {
|
|
204
204
|
addMarker: addMarker,
|
package/plugins/TimeManager.js
CHANGED
|
@@ -54,10 +54,10 @@ import ButtonBar from '../components/widgets/ButtonBar';
|
|
|
54
54
|
import NumberInput from '../components/widgets/NumberInput';
|
|
55
55
|
import ToggleSwitch from '../components/widgets/ToggleSwitch';
|
|
56
56
|
import IdentifyUtils from '../utils/IdentifyUtils';
|
|
57
|
+
import markerIcon from '../utils/img/marker-icon.png';
|
|
57
58
|
import LayerUtils from '../utils/LayerUtils';
|
|
58
59
|
import LocaleUtils from '../utils/LocaleUtils';
|
|
59
60
|
import VectorLayerUtils from '../utils/VectorLayerUtils';
|
|
60
|
-
import markerIcon from '../utils/img/marker-icon.png';
|
|
61
61
|
import './style/TimeManager.css';
|
|
62
62
|
dayjs.extend(utc);
|
|
63
63
|
var DateUnitLabels = {
|
|
@@ -74,7 +74,6 @@ var DateUnitLabels = {
|
|
|
74
74
|
var qgisDateFormat = new Format({
|
|
75
75
|
// $dateExpr $hour $minute $second $millisecond $zone $offset
|
|
76
76
|
matcher: /^(.*?)[\s,-]*([01]\d|2[0-3]):([0-5]\d)(?::([0-5]\d|60)(?:[.,](\d{9}|\d{6}|\d{1,3}))?)?[\s,-]*\(?(UTC)?[\s,-]*([+-]0\d?:?(?:[0-5]\d)?)?[\s,-]*\)?$/i,
|
|
77
|
-
// eslint-disable-next-line
|
|
78
77
|
handler: function handler(_ref) {
|
|
79
78
|
var _ref2 = _slicedToArray(_ref, 8),
|
|
80
79
|
match = _ref2[0],
|