@nextgis/ngw-map 4.0.0-alpha.0 → 4.0.0-alpha.2
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/lib/ngw-map.cjs.js +1 -1
- package/lib/ngw-map.esm-browser.js +661 -583
- package/lib/ngw-map.esm-browser.js.map +1 -1
- package/lib/ngw-map.esm-browser.prod.js +1 -1
- package/lib/ngw-map.esm-browser.prod.js.map +1 -1
- package/lib/ngw-map.esm-bundler.js +1 -1
- package/lib/ngw-map.global.js +663 -582
- package/lib/ngw-map.global.js.map +1 -1
- package/lib/ngw-map.global.prod.js +1 -1
- package/lib/ngw-map.global.prod.js.map +1 -1
- package/package.json +8 -8
package/lib/ngw-map.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version: 4.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 4.0.0-alpha.2; author: NextGIS */
|
|
2
2
|
var NgwMap = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -382,19 +382,19 @@ var NgwMap = (function (exports) {
|
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
var __defProp$
|
|
386
|
-
var __getOwnPropSymbols$
|
|
387
|
-
var __hasOwnProp$
|
|
388
|
-
var __propIsEnum$
|
|
389
|
-
var __defNormalProp$
|
|
390
|
-
var __spreadValues$
|
|
385
|
+
var __defProp$T = Object.defineProperty;
|
|
386
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
|
387
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
|
388
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
|
389
|
+
var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __spreadValues$A = (a, b) => {
|
|
391
391
|
for (var prop in b || (b = {}))
|
|
392
|
-
if (__hasOwnProp$
|
|
393
|
-
__defNormalProp$
|
|
394
|
-
if (__getOwnPropSymbols$
|
|
395
|
-
for (var prop of __getOwnPropSymbols$
|
|
396
|
-
if (__propIsEnum$
|
|
397
|
-
__defNormalProp$
|
|
392
|
+
if (__hasOwnProp$B.call(b, prop))
|
|
393
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
394
|
+
if (__getOwnPropSymbols$B)
|
|
395
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
|
396
|
+
if (__propIsEnum$B.call(b, prop))
|
|
397
|
+
__defNormalProp$T(a, prop, b[prop]);
|
|
398
398
|
}
|
|
399
399
|
return a;
|
|
400
400
|
};
|
|
@@ -457,7 +457,7 @@ var NgwMap = (function (exports) {
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
if (url) {
|
|
460
|
-
return connector.makeQuery(url, params, __spreadValues$
|
|
460
|
+
return connector.makeQuery(url, params, __spreadValues$A({
|
|
461
461
|
cacheName: name
|
|
462
462
|
}, requestOptions));
|
|
463
463
|
} else {
|
|
@@ -469,9 +469,9 @@ var NgwMap = (function (exports) {
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
|
|
472
|
-
var __defProp$
|
|
473
|
-
var __defNormalProp$
|
|
474
|
-
var __publicField$A = (obj, key, value) => __defNormalProp$
|
|
472
|
+
var __defProp$S = Object.defineProperty;
|
|
473
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
474
|
+
var __publicField$A = (obj, key, value) => __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
475
475
|
const _Cache = class _Cache {
|
|
476
476
|
constructor(options = {}) {
|
|
477
477
|
__publicField$A(this, "cache", []);
|
|
@@ -1083,7 +1083,7 @@ var NgwMap = (function (exports) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
1085
|
var pkg = {
|
|
1086
|
-
version: "
|
|
1086
|
+
version: "4.0.0-alpha.2"};
|
|
1087
1087
|
|
|
1088
1088
|
class AbortError extends Error {
|
|
1089
1089
|
constructor(message = "AbortError") {
|
|
@@ -1092,9 +1092,9 @@ var NgwMap = (function (exports) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
}
|
|
1094
1094
|
|
|
1095
|
-
var __defProp$
|
|
1096
|
-
var __defNormalProp$
|
|
1097
|
-
var __publicField$z = (obj, key, value) => __defNormalProp$
|
|
1095
|
+
var __defProp$R = Object.defineProperty;
|
|
1096
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1097
|
+
var __publicField$z = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1098
1098
|
class NgwError extends Error {
|
|
1099
1099
|
constructor(er) {
|
|
1100
1100
|
super();
|
|
@@ -1111,9 +1111,9 @@ var NgwMap = (function (exports) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
1113
|
|
|
1114
|
-
var __defProp$
|
|
1115
|
-
var __defNormalProp$
|
|
1116
|
-
var __publicField$y = (obj, key, value) => __defNormalProp$
|
|
1114
|
+
var __defProp$Q = Object.defineProperty;
|
|
1115
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1116
|
+
var __publicField$y = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1117
1117
|
class InsufficientPermissionsError extends NgwError {
|
|
1118
1118
|
constructor(obj) {
|
|
1119
1119
|
super(obj);
|
|
@@ -1123,9 +1123,9 @@ var NgwMap = (function (exports) {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
1125
|
|
|
1126
|
-
var __defProp$
|
|
1127
|
-
var __defNormalProp$
|
|
1128
|
-
var __publicField$x = (obj, key, value) => __defNormalProp$
|
|
1126
|
+
var __defProp$P = Object.defineProperty;
|
|
1127
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1128
|
+
var __publicField$x = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1129
1129
|
let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
|
|
1130
1130
|
constructor(obj) {
|
|
1131
1131
|
super(obj);
|
|
@@ -1168,9 +1168,9 @@ var NgwMap = (function (exports) {
|
|
|
1168
1168
|
return false;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
|
-
var __defProp$
|
|
1172
|
-
var __defNormalProp$
|
|
1173
|
-
var __publicField$w = (obj, key, value) => __defNormalProp$
|
|
1171
|
+
var __defProp$O = Object.defineProperty;
|
|
1172
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1173
|
+
var __publicField$w = (obj, key, value) => __defNormalProp$O(obj, key + "" , value);
|
|
1174
1174
|
class NetworkError extends Error {
|
|
1175
1175
|
constructor(url) {
|
|
1176
1176
|
super();
|
|
@@ -1181,9 +1181,9 @@ var NgwMap = (function (exports) {
|
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
1183
|
|
|
1184
|
-
var __defProp$
|
|
1185
|
-
var __defNormalProp$
|
|
1186
|
-
var __publicField$v = (obj, key, value) => __defNormalProp$
|
|
1184
|
+
var __defProp$N = Object.defineProperty;
|
|
1185
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1186
|
+
var __publicField$v = (obj, key, value) => __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1187
1187
|
class ResourceNotFoundError extends NgwError {
|
|
1188
1188
|
constructor(obj) {
|
|
1189
1189
|
super(obj);
|
|
@@ -1205,9 +1205,9 @@ var NgwMap = (function (exports) {
|
|
|
1205
1205
|
isError: isError
|
|
1206
1206
|
});
|
|
1207
1207
|
|
|
1208
|
-
var __defProp$
|
|
1209
|
-
var __defNormalProp$
|
|
1210
|
-
var __publicField$u = (obj, key, value) => __defNormalProp$
|
|
1208
|
+
var __defProp$M = Object.defineProperty;
|
|
1209
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1210
|
+
var __publicField$u = (obj, key, value) => __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1211
1211
|
class BaseAPIError extends Error {
|
|
1212
1212
|
constructor(message) {
|
|
1213
1213
|
super(message || "Something went wrong.");
|
|
@@ -1269,30 +1269,30 @@ var NgwMap = (function (exports) {
|
|
|
1269
1269
|
}
|
|
1270
1270
|
}
|
|
1271
1271
|
|
|
1272
|
-
var __defProp$
|
|
1273
|
-
var __getOwnPropSymbols$
|
|
1274
|
-
var __hasOwnProp$
|
|
1275
|
-
var __propIsEnum$
|
|
1276
|
-
var __defNormalProp$
|
|
1277
|
-
var __spreadValues$
|
|
1272
|
+
var __defProp$L = Object.defineProperty;
|
|
1273
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
1274
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
1275
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
1276
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1277
|
+
var __spreadValues$z = (a, b) => {
|
|
1278
1278
|
for (var prop in b || (b = {}))
|
|
1279
|
-
if (__hasOwnProp$
|
|
1280
|
-
__defNormalProp$
|
|
1281
|
-
if (__getOwnPropSymbols$
|
|
1282
|
-
for (var prop of __getOwnPropSymbols$
|
|
1283
|
-
if (__propIsEnum$
|
|
1284
|
-
__defNormalProp$
|
|
1279
|
+
if (__hasOwnProp$A.call(b, prop))
|
|
1280
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
1281
|
+
if (__getOwnPropSymbols$A)
|
|
1282
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
1283
|
+
if (__propIsEnum$A.call(b, prop))
|
|
1284
|
+
__defNormalProp$L(a, prop, b[prop]);
|
|
1285
1285
|
}
|
|
1286
1286
|
return a;
|
|
1287
1287
|
};
|
|
1288
1288
|
var __objRest$7 = (source, exclude) => {
|
|
1289
1289
|
var target = {};
|
|
1290
1290
|
for (var prop in source)
|
|
1291
|
-
if (__hasOwnProp$
|
|
1291
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1292
1292
|
target[prop] = source[prop];
|
|
1293
|
-
if (source != null && __getOwnPropSymbols$
|
|
1294
|
-
for (var prop of __getOwnPropSymbols$
|
|
1295
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1293
|
+
if (source != null && __getOwnPropSymbols$A)
|
|
1294
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
|
1295
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
|
1296
1296
|
target[prop] = source[prop];
|
|
1297
1297
|
}
|
|
1298
1298
|
return target;
|
|
@@ -1430,7 +1430,7 @@ var NgwMap = (function (exports) {
|
|
|
1430
1430
|
credentials: "same-origin",
|
|
1431
1431
|
headers: {}
|
|
1432
1432
|
};
|
|
1433
|
-
const _a = __spreadValues$
|
|
1433
|
+
const _a = __spreadValues$z(__spreadValues$z({}, defaults), options), {
|
|
1434
1434
|
withCredentials,
|
|
1435
1435
|
responseType,
|
|
1436
1436
|
cacheProps,
|
|
@@ -1510,7 +1510,7 @@ var NgwMap = (function (exports) {
|
|
|
1510
1510
|
if (cacheEngine) {
|
|
1511
1511
|
if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
|
|
1512
1512
|
if (cache !== false) {
|
|
1513
|
-
const props = cacheProps ? cacheProps : __spreadValues$
|
|
1513
|
+
const props = cacheProps ? cacheProps : __spreadValues$z({}, objectRemoveEmpty({
|
|
1514
1514
|
withCredentials,
|
|
1515
1515
|
responseType
|
|
1516
1516
|
}));
|
|
@@ -1530,33 +1530,33 @@ var NgwMap = (function (exports) {
|
|
|
1530
1530
|
});
|
|
1531
1531
|
}
|
|
1532
1532
|
|
|
1533
|
-
var __defProp$
|
|
1534
|
-
var __defProps$
|
|
1535
|
-
var __getOwnPropDescs$
|
|
1536
|
-
var __getOwnPropSymbols$
|
|
1537
|
-
var __hasOwnProp$
|
|
1538
|
-
var __propIsEnum$
|
|
1539
|
-
var __defNormalProp$
|
|
1540
|
-
var __spreadValues$
|
|
1533
|
+
var __defProp$K = Object.defineProperty;
|
|
1534
|
+
var __defProps$l = Object.defineProperties;
|
|
1535
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
|
1536
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1537
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1538
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1539
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1540
|
+
var __spreadValues$y = (a, b) => {
|
|
1541
1541
|
for (var prop in b || (b = {}))
|
|
1542
|
-
if (__hasOwnProp$
|
|
1543
|
-
__defNormalProp$
|
|
1544
|
-
if (__getOwnPropSymbols$
|
|
1545
|
-
for (var prop of __getOwnPropSymbols$
|
|
1546
|
-
if (__propIsEnum$
|
|
1547
|
-
__defNormalProp$
|
|
1542
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1543
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1544
|
+
if (__getOwnPropSymbols$z)
|
|
1545
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1546
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1547
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1548
1548
|
}
|
|
1549
1549
|
return a;
|
|
1550
1550
|
};
|
|
1551
|
-
var __spreadProps$
|
|
1551
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
|
1552
1552
|
var __objRest$6 = (source, exclude) => {
|
|
1553
1553
|
var target = {};
|
|
1554
1554
|
for (var prop in source)
|
|
1555
|
-
if (__hasOwnProp$
|
|
1555
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1556
1556
|
target[prop] = source[prop];
|
|
1557
|
-
if (source != null && __getOwnPropSymbols$
|
|
1558
|
-
for (var prop of __getOwnPropSymbols$
|
|
1559
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1557
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1558
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1559
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1560
1560
|
target[prop] = source[prop];
|
|
1561
1561
|
}
|
|
1562
1562
|
return target;
|
|
@@ -1640,10 +1640,10 @@ var NgwMap = (function (exports) {
|
|
|
1640
1640
|
routeData,
|
|
1641
1641
|
...rest
|
|
1642
1642
|
);
|
|
1643
|
-
const headers = objectRemoveEmpty(__spreadValues$
|
|
1643
|
+
const headers = objectRemoveEmpty(__spreadValues$y(__spreadValues$y({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
|
|
1644
1644
|
return request(
|
|
1645
1645
|
template,
|
|
1646
|
-
__spreadProps$
|
|
1646
|
+
__spreadProps$l(__spreadValues$y({
|
|
1647
1647
|
headers
|
|
1648
1648
|
}, restOpt), {
|
|
1649
1649
|
method
|
|
@@ -1767,38 +1767,38 @@ var NgwMap = (function (exports) {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
|
|
1770
|
-
var __defProp$
|
|
1771
|
-
var __defProps$
|
|
1772
|
-
var __getOwnPropDescs$
|
|
1773
|
-
var __getOwnPropSymbols$
|
|
1774
|
-
var __hasOwnProp$
|
|
1775
|
-
var __propIsEnum$
|
|
1776
|
-
var __defNormalProp$
|
|
1777
|
-
var __spreadValues$
|
|
1770
|
+
var __defProp$J = Object.defineProperty;
|
|
1771
|
+
var __defProps$k = Object.defineProperties;
|
|
1772
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
1773
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1774
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1775
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1776
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1777
|
+
var __spreadValues$x = (a, b) => {
|
|
1778
1778
|
for (var prop in b || (b = {}))
|
|
1779
|
-
if (__hasOwnProp$
|
|
1780
|
-
__defNormalProp$
|
|
1781
|
-
if (__getOwnPropSymbols$
|
|
1782
|
-
for (var prop of __getOwnPropSymbols$
|
|
1783
|
-
if (__propIsEnum$
|
|
1784
|
-
__defNormalProp$
|
|
1779
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
1780
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1781
|
+
if (__getOwnPropSymbols$y)
|
|
1782
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1783
|
+
if (__propIsEnum$y.call(b, prop))
|
|
1784
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1785
1785
|
}
|
|
1786
1786
|
return a;
|
|
1787
1787
|
};
|
|
1788
|
-
var __spreadProps$
|
|
1788
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
1789
1789
|
var __objRest$5 = (source, exclude) => {
|
|
1790
1790
|
var target = {};
|
|
1791
1791
|
for (var prop in source)
|
|
1792
|
-
if (__hasOwnProp$
|
|
1792
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1793
1793
|
target[prop] = source[prop];
|
|
1794
|
-
if (source != null && __getOwnPropSymbols$
|
|
1795
|
-
for (var prop of __getOwnPropSymbols$
|
|
1796
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1794
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1795
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1796
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1797
1797
|
target[prop] = source[prop];
|
|
1798
1798
|
}
|
|
1799
1799
|
return target;
|
|
1800
1800
|
};
|
|
1801
|
-
var __publicField$t = (obj, key, value) => __defNormalProp$
|
|
1801
|
+
var __publicField$t = (obj, key, value) => __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1802
1802
|
var __async$t = (__this, __arguments, generator) => {
|
|
1803
1803
|
return new Promise((resolve, reject) => {
|
|
1804
1804
|
var fulfilled = (value) => {
|
|
@@ -1934,7 +1934,7 @@ var NgwMap = (function (exports) {
|
|
|
1934
1934
|
if (credentials) {
|
|
1935
1935
|
this.options.auth = credentials;
|
|
1936
1936
|
}
|
|
1937
|
-
const options_ = __spreadValues$
|
|
1937
|
+
const options_ = __spreadValues$x({
|
|
1938
1938
|
headers: this.getAuthorizationHeaders(credentials),
|
|
1939
1939
|
cache: true
|
|
1940
1940
|
}, options);
|
|
@@ -1975,7 +1975,7 @@ var NgwMap = (function (exports) {
|
|
|
1975
1975
|
this.activeRequests = {};
|
|
1976
1976
|
}
|
|
1977
1977
|
getActiveApiRequests() {
|
|
1978
|
-
return __spreadValues$
|
|
1978
|
+
return __spreadValues$x({}, this.activeRequests);
|
|
1979
1979
|
}
|
|
1980
1980
|
route(name, ...rest) {
|
|
1981
1981
|
return route(name, this, ...rest);
|
|
@@ -1998,7 +1998,7 @@ var NgwMap = (function (exports) {
|
|
|
1998
1998
|
url = template(url, restParams);
|
|
1999
1999
|
}
|
|
2000
2000
|
url = encodeURI(fixUrlStr(url));
|
|
2001
|
-
options = __spreadValues$
|
|
2001
|
+
options = __spreadValues$x({ withCredentials: this.withCredentials }, options);
|
|
2002
2002
|
const {
|
|
2003
2003
|
cache,
|
|
2004
2004
|
signal: externalSignal,
|
|
@@ -2030,7 +2030,7 @@ var NgwMap = (function (exports) {
|
|
|
2030
2030
|
}
|
|
2031
2031
|
});
|
|
2032
2032
|
if (method === "GET" && cache !== false) {
|
|
2033
|
-
const cacheOptions = cacheProps ? cacheProps : __spreadProps$
|
|
2033
|
+
const cacheOptions = cacheProps ? cacheProps : __spreadProps$k(__spreadValues$x({}, objectRemoveEmpty({
|
|
2034
2034
|
headers,
|
|
2035
2035
|
withCredentials,
|
|
2036
2036
|
responseType,
|
|
@@ -2053,7 +2053,7 @@ var NgwMap = (function (exports) {
|
|
|
2053
2053
|
var _a;
|
|
2054
2054
|
if (this.user) {
|
|
2055
2055
|
options = options || {};
|
|
2056
|
-
options.headers = __spreadValues$
|
|
2056
|
+
options.headers = __spreadValues$x(__spreadValues$x({}, this.getAuthorizationHeaders()), options.headers);
|
|
2057
2057
|
}
|
|
2058
2058
|
if (this.requestTransform) {
|
|
2059
2059
|
const [transUrl, transOptions] = this.requestTransform(url, options);
|
|
@@ -2142,26 +2142,26 @@ var NgwMap = (function (exports) {
|
|
|
2142
2142
|
return query;
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
-
var __defProp$
|
|
2146
|
-
var __defProps$
|
|
2147
|
-
var __getOwnPropDescs$
|
|
2148
|
-
var __getOwnPropSymbols$
|
|
2149
|
-
var __hasOwnProp$
|
|
2150
|
-
var __propIsEnum$
|
|
2151
|
-
var __defNormalProp$
|
|
2152
|
-
var __spreadValues$
|
|
2145
|
+
var __defProp$I = Object.defineProperty;
|
|
2146
|
+
var __defProps$j = Object.defineProperties;
|
|
2147
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
2148
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
2149
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
2150
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
2151
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2152
|
+
var __spreadValues$w = (a, b) => {
|
|
2153
2153
|
for (var prop in b || (b = {}))
|
|
2154
|
-
if (__hasOwnProp$
|
|
2155
|
-
__defNormalProp$
|
|
2156
|
-
if (__getOwnPropSymbols$
|
|
2157
|
-
for (var prop of __getOwnPropSymbols$
|
|
2158
|
-
if (__propIsEnum$
|
|
2159
|
-
__defNormalProp$
|
|
2154
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
2155
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
2156
|
+
if (__getOwnPropSymbols$x)
|
|
2157
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
2158
|
+
if (__propIsEnum$x.call(b, prop))
|
|
2159
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
2160
2160
|
}
|
|
2161
2161
|
return a;
|
|
2162
2162
|
};
|
|
2163
|
-
var __spreadProps$
|
|
2164
|
-
var __publicField$s = (obj, key, value) => __defNormalProp$
|
|
2163
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
2164
|
+
var __publicField$s = (obj, key, value) => __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2165
2165
|
var __async$s = (__this, __arguments, generator) => {
|
|
2166
2166
|
return new Promise((resolve, reject) => {
|
|
2167
2167
|
var fulfilled = (value) => {
|
|
@@ -2203,7 +2203,7 @@ var NgwMap = (function (exports) {
|
|
|
2203
2203
|
* Fetching resource would be cached to speed up next call
|
|
2204
2204
|
*/
|
|
2205
2205
|
getOne(resource, requestOptions) {
|
|
2206
|
-
const opt = __spreadValues$
|
|
2206
|
+
const opt = __spreadValues$w({}, requestOptions);
|
|
2207
2207
|
if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
|
|
2208
2208
|
if (resource.id !== void 0) {
|
|
2209
2209
|
resource.id;
|
|
@@ -2280,8 +2280,8 @@ var NgwMap = (function (exports) {
|
|
|
2280
2280
|
} else {
|
|
2281
2281
|
Object.assign(query, resourceToQuery(resource));
|
|
2282
2282
|
}
|
|
2283
|
-
return this.connector.route("resource.search").get(__spreadProps$
|
|
2284
|
-
query: __spreadValues$
|
|
2283
|
+
return this.connector.route("resource.search").get(__spreadProps$j(__spreadValues$w({}, requestOptions), {
|
|
2284
|
+
query: __spreadValues$w({
|
|
2285
2285
|
serialization: "full"
|
|
2286
2286
|
}, query)
|
|
2287
2287
|
})).then((resources) => {
|
|
@@ -2343,7 +2343,7 @@ var NgwMap = (function (exports) {
|
|
|
2343
2343
|
} else {
|
|
2344
2344
|
parent = parentDef;
|
|
2345
2345
|
}
|
|
2346
|
-
const items = yield this.connector.route("resource.collection").get(__spreadProps$
|
|
2346
|
+
const items = yield this.connector.route("resource.collection").get(__spreadProps$j(__spreadValues$w({}, requestOptions), {
|
|
2347
2347
|
query: {
|
|
2348
2348
|
parent
|
|
2349
2349
|
}
|
|
@@ -2424,9 +2424,9 @@ var NgwMap = (function (exports) {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
}
|
|
2426
2426
|
|
|
2427
|
-
var __defProp$
|
|
2428
|
-
var __defNormalProp$
|
|
2429
|
-
var __publicField$r = (obj, key, value) => __defNormalProp$
|
|
2427
|
+
var __defProp$H = Object.defineProperty;
|
|
2428
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2429
|
+
var __publicField$r = (obj, key, value) => __defNormalProp$H(obj, key + "" , value);
|
|
2430
2430
|
class NgwConnectorExtended extends NgwConnector {
|
|
2431
2431
|
constructor(options) {
|
|
2432
2432
|
super(options);
|
|
@@ -2640,25 +2640,25 @@ var NgwMap = (function (exports) {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
}
|
|
2642
2642
|
|
|
2643
|
-
var __defProp$
|
|
2644
|
-
var __defProps$
|
|
2645
|
-
var __getOwnPropDescs$
|
|
2646
|
-
var __getOwnPropSymbols$
|
|
2647
|
-
var __hasOwnProp$
|
|
2648
|
-
var __propIsEnum$
|
|
2649
|
-
var __defNormalProp$
|
|
2650
|
-
var __spreadValues$
|
|
2643
|
+
var __defProp$G = Object.defineProperty;
|
|
2644
|
+
var __defProps$i = Object.defineProperties;
|
|
2645
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2646
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
2647
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
2648
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
2649
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2650
|
+
var __spreadValues$v = (a, b) => {
|
|
2651
2651
|
for (var prop in b || (b = {}))
|
|
2652
|
-
if (__hasOwnProp$
|
|
2653
|
-
__defNormalProp$
|
|
2654
|
-
if (__getOwnPropSymbols$
|
|
2655
|
-
for (var prop of __getOwnPropSymbols$
|
|
2656
|
-
if (__propIsEnum$
|
|
2657
|
-
__defNormalProp$
|
|
2652
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
2653
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2654
|
+
if (__getOwnPropSymbols$w)
|
|
2655
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
2656
|
+
if (__propIsEnum$w.call(b, prop))
|
|
2657
|
+
__defNormalProp$G(a, prop, b[prop]);
|
|
2658
2658
|
}
|
|
2659
2659
|
return a;
|
|
2660
2660
|
};
|
|
2661
|
-
var __spreadProps$
|
|
2661
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2662
2662
|
function getNgwWebmapExtent(webmap) {
|
|
2663
2663
|
const bottom = webmap["extent_bottom"];
|
|
2664
2664
|
const left = webmap["extent_left"];
|
|
@@ -2725,14 +2725,14 @@ var NgwMap = (function (exports) {
|
|
|
2725
2725
|
if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
|
|
2726
2726
|
return connector.getResource(resource.parent.id, options).then((res) => {
|
|
2727
2727
|
if (res) {
|
|
2728
|
-
return fetchNgwLayerExtent(__spreadProps$
|
|
2728
|
+
return fetchNgwLayerExtent(__spreadProps$i(__spreadValues$v({}, options), {
|
|
2729
2729
|
resourceId: res.resource.id,
|
|
2730
2730
|
connector
|
|
2731
2731
|
}));
|
|
2732
2732
|
}
|
|
2733
2733
|
});
|
|
2734
2734
|
} else {
|
|
2735
|
-
return fetchNgwLayerExtent(__spreadProps$
|
|
2735
|
+
return fetchNgwLayerExtent(__spreadProps$i(__spreadValues$v({}, options), {
|
|
2736
2736
|
resourceId: resource.id,
|
|
2737
2737
|
connector
|
|
2738
2738
|
}));
|
|
@@ -2740,9 +2740,9 @@ var NgwMap = (function (exports) {
|
|
|
2740
2740
|
}
|
|
2741
2741
|
}
|
|
2742
2742
|
|
|
2743
|
-
var __defProp$
|
|
2744
|
-
var __defNormalProp$
|
|
2745
|
-
var __publicField$q = (obj, key, value) => __defNormalProp$
|
|
2743
|
+
var __defProp$F = Object.defineProperty;
|
|
2744
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2745
|
+
var __publicField$q = (obj, key, value) => __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2746
2746
|
var __async$r = (__this, __arguments, generator) => {
|
|
2747
2747
|
return new Promise((resolve, reject) => {
|
|
2748
2748
|
var fulfilled = (value) => {
|
|
@@ -2838,23 +2838,23 @@ var NgwMap = (function (exports) {
|
|
|
2838
2838
|
});
|
|
2839
2839
|
}
|
|
2840
2840
|
|
|
2841
|
-
var __defProp$
|
|
2842
|
-
var __getOwnPropSymbols$
|
|
2843
|
-
var __hasOwnProp$
|
|
2844
|
-
var __propIsEnum$
|
|
2845
|
-
var __defNormalProp$
|
|
2846
|
-
var __spreadValues$
|
|
2841
|
+
var __defProp$E = Object.defineProperty;
|
|
2842
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
2843
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
2844
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
2845
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2846
|
+
var __spreadValues$u = (a, b) => {
|
|
2847
2847
|
for (var prop in b || (b = {}))
|
|
2848
|
-
if (__hasOwnProp$
|
|
2849
|
-
__defNormalProp$
|
|
2850
|
-
if (__getOwnPropSymbols$
|
|
2851
|
-
for (var prop of __getOwnPropSymbols$
|
|
2852
|
-
if (__propIsEnum$
|
|
2853
|
-
__defNormalProp$
|
|
2848
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
2849
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2850
|
+
if (__getOwnPropSymbols$v)
|
|
2851
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
2852
|
+
if (__propIsEnum$v.call(b, prop))
|
|
2853
|
+
__defNormalProp$E(a, prop, b[prop]);
|
|
2854
2854
|
}
|
|
2855
2855
|
return a;
|
|
2856
2856
|
};
|
|
2857
|
-
var __publicField$p = (obj, key, value) => __defNormalProp$
|
|
2857
|
+
var __publicField$p = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2858
2858
|
var __async$p = (__this, __arguments, generator) => {
|
|
2859
2859
|
return new Promise((resolve, reject) => {
|
|
2860
2860
|
var fulfilled = (value) => {
|
|
@@ -2929,7 +2929,7 @@ var NgwMap = (function (exports) {
|
|
|
2929
2929
|
this._creatingInProgress = true;
|
|
2930
2930
|
const Adapter = yield createAdapter(this);
|
|
2931
2931
|
if (Adapter) {
|
|
2932
|
-
const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$
|
|
2932
|
+
const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$u({}, adapterOptions));
|
|
2933
2933
|
const realLayer = yield adapter.addLayer({
|
|
2934
2934
|
order: this.options.order,
|
|
2935
2935
|
headers: this.options.headers,
|
|
@@ -3013,19 +3013,19 @@ var NgwMap = (function (exports) {
|
|
|
3013
3013
|
});
|
|
3014
3014
|
}
|
|
3015
3015
|
|
|
3016
|
-
var __defProp$
|
|
3017
|
-
var __getOwnPropSymbols$
|
|
3018
|
-
var __hasOwnProp$
|
|
3019
|
-
var __propIsEnum$
|
|
3020
|
-
var __defNormalProp$
|
|
3021
|
-
var __spreadValues$
|
|
3016
|
+
var __defProp$D = Object.defineProperty;
|
|
3017
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
3018
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
3019
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
3020
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3021
|
+
var __spreadValues$t = (a, b) => {
|
|
3022
3022
|
for (var prop in b || (b = {}))
|
|
3023
|
-
if (__hasOwnProp$
|
|
3024
|
-
__defNormalProp$
|
|
3025
|
-
if (__getOwnPropSymbols$
|
|
3026
|
-
for (var prop of __getOwnPropSymbols$
|
|
3027
|
-
if (__propIsEnum$
|
|
3028
|
-
__defNormalProp$
|
|
3023
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
3024
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
3025
|
+
if (__getOwnPropSymbols$u)
|
|
3026
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
3027
|
+
if (__propIsEnum$u.call(b, prop))
|
|
3028
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
3029
3029
|
}
|
|
3030
3030
|
return a;
|
|
3031
3031
|
};
|
|
@@ -3072,7 +3072,7 @@ var NgwMap = (function (exports) {
|
|
|
3072
3072
|
return false;
|
|
3073
3073
|
}
|
|
3074
3074
|
function featureFilter(feature, filters) {
|
|
3075
|
-
const properties = __spreadValues$
|
|
3075
|
+
const properties = __spreadValues$t({}, feature.properties);
|
|
3076
3076
|
if (properties) {
|
|
3077
3077
|
properties.$id = feature.id;
|
|
3078
3078
|
return propertiesFilter(properties, filters);
|
|
@@ -3107,25 +3107,25 @@ var NgwMap = (function (exports) {
|
|
|
3107
3107
|
return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
|
|
3108
3108
|
}
|
|
3109
3109
|
|
|
3110
|
-
var __defProp$
|
|
3111
|
-
var __defProps$
|
|
3112
|
-
var __getOwnPropDescs$
|
|
3113
|
-
var __getOwnPropSymbols$
|
|
3114
|
-
var __hasOwnProp$
|
|
3115
|
-
var __propIsEnum$
|
|
3116
|
-
var __defNormalProp$
|
|
3117
|
-
var __spreadValues$
|
|
3118
|
-
for (var prop in b || (b = {}))
|
|
3119
|
-
if (__hasOwnProp$
|
|
3120
|
-
__defNormalProp$
|
|
3121
|
-
if (__getOwnPropSymbols$
|
|
3122
|
-
for (var prop of __getOwnPropSymbols$
|
|
3123
|
-
if (__propIsEnum$
|
|
3124
|
-
__defNormalProp$
|
|
3110
|
+
var __defProp$C = Object.defineProperty;
|
|
3111
|
+
var __defProps$h = Object.defineProperties;
|
|
3112
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
3113
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
3114
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
3115
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
3116
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3117
|
+
var __spreadValues$s = (a, b) => {
|
|
3118
|
+
for (var prop in b || (b = {}))
|
|
3119
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
3120
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3121
|
+
if (__getOwnPropSymbols$t)
|
|
3122
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
3123
|
+
if (__propIsEnum$t.call(b, prop))
|
|
3124
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3125
3125
|
}
|
|
3126
3126
|
return a;
|
|
3127
3127
|
};
|
|
3128
|
-
var __spreadProps$
|
|
3128
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
3129
3129
|
var __async$n = (__this, __arguments, generator) => {
|
|
3130
3130
|
return new Promise((resolve, reject) => {
|
|
3131
3131
|
var fulfilled = (value) => {
|
|
@@ -3237,12 +3237,12 @@ var NgwMap = (function (exports) {
|
|
|
3237
3237
|
for (const f of filters_) {
|
|
3238
3238
|
if (isPropertyFilter$1(f)) {
|
|
3239
3239
|
_queries.push(
|
|
3240
|
-
fetchNgwLayerItemsRequest(__spreadProps$
|
|
3240
|
+
fetchNgwLayerItemsRequest(__spreadProps$h(__spreadValues$s({}, opt), {
|
|
3241
3241
|
paramList: [..._parentAllParams, ...paramList, createParam(f)]
|
|
3242
3242
|
}))
|
|
3243
3243
|
);
|
|
3244
3244
|
} else {
|
|
3245
|
-
getQueries(__spreadProps$
|
|
3245
|
+
getQueries(__spreadProps$h(__spreadValues$s({}, opt), { filters: f }), _queries, [..._parentAllParams]);
|
|
3246
3246
|
}
|
|
3247
3247
|
}
|
|
3248
3248
|
} else if (logic === "all") {
|
|
@@ -3257,14 +3257,14 @@ var NgwMap = (function (exports) {
|
|
|
3257
3257
|
}
|
|
3258
3258
|
if (propertiesFilterList.length) {
|
|
3259
3259
|
for (const x of propertiesFilterList) {
|
|
3260
|
-
getQueries(__spreadProps$
|
|
3260
|
+
getQueries(__spreadProps$h(__spreadValues$s({}, opt), { filters: x }), _queries, [
|
|
3261
3261
|
..._parentAllParams,
|
|
3262
3262
|
...filters2
|
|
3263
3263
|
]);
|
|
3264
3264
|
}
|
|
3265
3265
|
} else {
|
|
3266
3266
|
_queries.push(
|
|
3267
|
-
fetchNgwLayerItemsRequest(__spreadProps$
|
|
3267
|
+
fetchNgwLayerItemsRequest(__spreadProps$h(__spreadValues$s({}, opt), {
|
|
3268
3268
|
paramList: [..._parentAllParams, ...paramList, ...filters2]
|
|
3269
3269
|
}))
|
|
3270
3270
|
);
|
|
@@ -3280,7 +3280,7 @@ var NgwMap = (function (exports) {
|
|
|
3280
3280
|
return `POLYGON((${polygon.join(", ")}))`;
|
|
3281
3281
|
}
|
|
3282
3282
|
function fetchNgwLayerItemsRequest(options) {
|
|
3283
|
-
const params = __spreadValues$
|
|
3283
|
+
const params = __spreadValues$s({}, FEATURE_REQUEST_PARAMS);
|
|
3284
3284
|
const {
|
|
3285
3285
|
limit,
|
|
3286
3286
|
query,
|
|
@@ -3316,7 +3316,7 @@ var NgwMap = (function (exports) {
|
|
|
3316
3316
|
if (paramList) {
|
|
3317
3317
|
Object.assign(params, paramListToQuery(paramList));
|
|
3318
3318
|
}
|
|
3319
|
-
return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$
|
|
3319
|
+
return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$s(__spreadValues$s({}, params), query), cache, signal });
|
|
3320
3320
|
}
|
|
3321
3321
|
|
|
3322
3322
|
function prepareNgwFieldsToPropertiesFilter(fields) {
|
|
@@ -3345,25 +3345,25 @@ var NgwMap = (function (exports) {
|
|
|
3345
3345
|
return fields;
|
|
3346
3346
|
}
|
|
3347
3347
|
|
|
3348
|
-
var __defProp$
|
|
3349
|
-
var __defProps$
|
|
3350
|
-
var __getOwnPropDescs$
|
|
3351
|
-
var __getOwnPropSymbols$
|
|
3352
|
-
var __hasOwnProp$
|
|
3353
|
-
var __propIsEnum$
|
|
3354
|
-
var __defNormalProp$
|
|
3355
|
-
var __spreadValues$
|
|
3348
|
+
var __defProp$B = Object.defineProperty;
|
|
3349
|
+
var __defProps$g = Object.defineProperties;
|
|
3350
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3351
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
3352
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
3353
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
3354
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3355
|
+
var __spreadValues$r = (a, b) => {
|
|
3356
3356
|
for (var prop in b || (b = {}))
|
|
3357
|
-
if (__hasOwnProp$
|
|
3358
|
-
__defNormalProp$
|
|
3359
|
-
if (__getOwnPropSymbols$
|
|
3360
|
-
for (var prop of __getOwnPropSymbols$
|
|
3361
|
-
if (__propIsEnum$
|
|
3362
|
-
__defNormalProp$
|
|
3357
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
3358
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3359
|
+
if (__getOwnPropSymbols$s)
|
|
3360
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
3361
|
+
if (__propIsEnum$s.call(b, prop))
|
|
3362
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3363
3363
|
}
|
|
3364
3364
|
return a;
|
|
3365
3365
|
};
|
|
3366
|
-
var __spreadProps$
|
|
3366
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
3367
3367
|
var __async$m = (__this, __arguments, generator) => {
|
|
3368
3368
|
return new Promise((resolve, reject) => {
|
|
3369
3369
|
var fulfilled = (value) => {
|
|
@@ -3389,13 +3389,13 @@ var NgwMap = (function (exports) {
|
|
|
3389
3389
|
var _a;
|
|
3390
3390
|
const filters = options.filters;
|
|
3391
3391
|
if (filters) {
|
|
3392
|
-
let data = yield createFeatureFieldFilterQueries(__spreadProps$
|
|
3392
|
+
let data = yield createFeatureFieldFilterQueries(__spreadProps$g(__spreadValues$r({}, options), {
|
|
3393
3393
|
filters
|
|
3394
3394
|
}));
|
|
3395
3395
|
const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
|
|
3396
3396
|
if (clientFilterValidate) {
|
|
3397
3397
|
data = data.filter((y) => {
|
|
3398
|
-
const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$
|
|
3398
|
+
const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$g(__spreadValues$r({}, y.fields), {
|
|
3399
3399
|
id: y.id
|
|
3400
3400
|
}));
|
|
3401
3401
|
const result = propertiesFilter(fields, filters);
|
|
@@ -3513,25 +3513,25 @@ var NgwMap = (function (exports) {
|
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
3515
3515
|
|
|
3516
|
-
var __defProp$
|
|
3517
|
-
var __defProps$
|
|
3518
|
-
var __getOwnPropDescs$
|
|
3519
|
-
var __getOwnPropSymbols$
|
|
3520
|
-
var __hasOwnProp$
|
|
3521
|
-
var __propIsEnum$
|
|
3522
|
-
var __defNormalProp$
|
|
3523
|
-
var __spreadValues$
|
|
3516
|
+
var __defProp$A = Object.defineProperty;
|
|
3517
|
+
var __defProps$f = Object.defineProperties;
|
|
3518
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3519
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
3520
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
3521
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
3522
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3523
|
+
var __spreadValues$q = (a, b) => {
|
|
3524
3524
|
for (var prop in b || (b = {}))
|
|
3525
|
-
if (__hasOwnProp$
|
|
3526
|
-
__defNormalProp$
|
|
3527
|
-
if (__getOwnPropSymbols$
|
|
3528
|
-
for (var prop of __getOwnPropSymbols$
|
|
3529
|
-
if (__propIsEnum$
|
|
3530
|
-
__defNormalProp$
|
|
3525
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
3526
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3527
|
+
if (__getOwnPropSymbols$r)
|
|
3528
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
3529
|
+
if (__propIsEnum$r.call(b, prop))
|
|
3530
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3531
3531
|
}
|
|
3532
3532
|
return a;
|
|
3533
3533
|
};
|
|
3534
|
-
var __spreadProps$
|
|
3534
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
3535
3535
|
var __async$l = (__this, __arguments, generator) => {
|
|
3536
3536
|
return new Promise((resolve, reject) => {
|
|
3537
3537
|
var fulfilled = (value) => {
|
|
@@ -3554,48 +3554,48 @@ var NgwMap = (function (exports) {
|
|
|
3554
3554
|
};
|
|
3555
3555
|
function fetchNgwLayerItem(options) {
|
|
3556
3556
|
return __async$l(this, null, function* () {
|
|
3557
|
-
const params = __spreadValues$
|
|
3557
|
+
const params = __spreadValues$q({}, FEATURE_REQUEST_PARAMS);
|
|
3558
3558
|
updateItemRequestParam(params, options);
|
|
3559
3559
|
const resp = yield options.connector.route("feature_layer.feature.item", {
|
|
3560
3560
|
id: Number(options.resourceId),
|
|
3561
3561
|
fid: options.featureId
|
|
3562
|
-
}).get(__spreadProps$
|
|
3562
|
+
}).get(__spreadProps$f(__spreadValues$q({}, options), { query: params }));
|
|
3563
3563
|
const toGeojson = () => __async$l(null, null, function* () {
|
|
3564
3564
|
if (resp.geom) {
|
|
3565
3565
|
return createGeoJsonFeature(resp);
|
|
3566
3566
|
} else {
|
|
3567
|
-
const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$
|
|
3567
|
+
const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$f(__spreadValues$q({}, options), {
|
|
3568
3568
|
geom: true,
|
|
3569
3569
|
fields: null,
|
|
3570
3570
|
extensions: null
|
|
3571
3571
|
}));
|
|
3572
3572
|
const geom = onlyGeomItem.geom;
|
|
3573
|
-
return createGeoJsonFeature(__spreadProps$
|
|
3573
|
+
return createGeoJsonFeature(__spreadProps$f(__spreadValues$q({}, resp), { geom }));
|
|
3574
3574
|
}
|
|
3575
3575
|
});
|
|
3576
|
-
return __spreadProps$
|
|
3576
|
+
return __spreadProps$f(__spreadValues$q({}, resp), {
|
|
3577
3577
|
toGeojson
|
|
3578
3578
|
});
|
|
3579
3579
|
});
|
|
3580
3580
|
}
|
|
3581
3581
|
|
|
3582
|
-
var __defProp$
|
|
3583
|
-
var __getOwnPropSymbols$
|
|
3584
|
-
var __hasOwnProp$
|
|
3585
|
-
var __propIsEnum$
|
|
3586
|
-
var __defNormalProp$
|
|
3587
|
-
var __spreadValues$
|
|
3582
|
+
var __defProp$z = Object.defineProperty;
|
|
3583
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
3584
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
3585
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
3586
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3587
|
+
var __spreadValues$p = (a, b) => {
|
|
3588
3588
|
for (var prop in b || (b = {}))
|
|
3589
|
-
if (__hasOwnProp$
|
|
3590
|
-
__defNormalProp$
|
|
3591
|
-
if (__getOwnPropSymbols$
|
|
3592
|
-
for (var prop of __getOwnPropSymbols$
|
|
3593
|
-
if (__propIsEnum$
|
|
3594
|
-
__defNormalProp$
|
|
3589
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
3590
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3591
|
+
if (__getOwnPropSymbols$q)
|
|
3592
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
3593
|
+
if (__propIsEnum$q.call(b, prop))
|
|
3594
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3595
3595
|
}
|
|
3596
3596
|
return a;
|
|
3597
3597
|
};
|
|
3598
|
-
var __publicField$o = (obj, key, value) => __defNormalProp$
|
|
3598
|
+
var __publicField$o = (obj, key, value) => __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3599
3599
|
class BookmarkItem {
|
|
3600
3600
|
constructor(options) {
|
|
3601
3601
|
this.options = options;
|
|
@@ -3632,7 +3632,7 @@ var NgwMap = (function (exports) {
|
|
|
3632
3632
|
if (this.item.geom) {
|
|
3633
3633
|
return Promise.resolve(createGeoJsonFeature(this.item));
|
|
3634
3634
|
} else {
|
|
3635
|
-
return fetchNgwLayerItem(__spreadValues$
|
|
3635
|
+
return fetchNgwLayerItem(__spreadValues$p({
|
|
3636
3636
|
resourceId: this.resourceId,
|
|
3637
3637
|
featureId: this.item.id,
|
|
3638
3638
|
connector: this.options.connector,
|
|
@@ -3650,9 +3650,9 @@ var NgwMap = (function (exports) {
|
|
|
3650
3650
|
|
|
3651
3651
|
const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
|
|
3652
3652
|
|
|
3653
|
-
var __defProp$
|
|
3654
|
-
var __defNormalProp$
|
|
3655
|
-
var __publicField$n = (obj, key, value) => __defNormalProp$
|
|
3653
|
+
var __defProp$y = Object.defineProperty;
|
|
3654
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3655
|
+
var __publicField$n = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3656
3656
|
class BaseProperty {
|
|
3657
3657
|
constructor(name, item, options) {
|
|
3658
3658
|
__publicField$n(this, "options");
|
|
@@ -3765,26 +3765,26 @@ var NgwMap = (function (exports) {
|
|
|
3765
3765
|
}
|
|
3766
3766
|
}
|
|
3767
3767
|
|
|
3768
|
-
var __defProp$
|
|
3769
|
-
var __getOwnPropSymbols$
|
|
3770
|
-
var __hasOwnProp$
|
|
3771
|
-
var __propIsEnum$
|
|
3772
|
-
var __defNormalProp$
|
|
3773
|
-
var __spreadValues$
|
|
3768
|
+
var __defProp$x = Object.defineProperty;
|
|
3769
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
3770
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
3771
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
3772
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3773
|
+
var __spreadValues$o = (a, b) => {
|
|
3774
3774
|
for (var prop in b || (b = {}))
|
|
3775
|
-
if (__hasOwnProp$
|
|
3776
|
-
__defNormalProp$
|
|
3777
|
-
if (__getOwnPropSymbols$
|
|
3778
|
-
for (var prop of __getOwnPropSymbols$
|
|
3779
|
-
if (__propIsEnum$
|
|
3780
|
-
__defNormalProp$
|
|
3775
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
3776
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
3777
|
+
if (__getOwnPropSymbols$p)
|
|
3778
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
3779
|
+
if (__propIsEnum$p.call(b, prop))
|
|
3780
|
+
__defNormalProp$x(a, prop, b[prop]);
|
|
3781
3781
|
}
|
|
3782
3782
|
return a;
|
|
3783
3783
|
};
|
|
3784
|
-
var __publicField$m = (obj, key, value) => __defNormalProp$
|
|
3784
|
+
var __publicField$m = (obj, key, value) => __defNormalProp$x(obj, key + "" , value);
|
|
3785
3785
|
const _CheckProperty = class _CheckProperty extends BaseProperty {
|
|
3786
3786
|
constructor(name, item, options) {
|
|
3787
|
-
super(name, item, __spreadValues$
|
|
3787
|
+
super(name, item, __spreadValues$o(__spreadValues$o({}, _CheckProperty.options), options));
|
|
3788
3788
|
this.set(this.get());
|
|
3789
3789
|
}
|
|
3790
3790
|
update(value, options) {
|
|
@@ -3865,13 +3865,13 @@ var NgwMap = (function (exports) {
|
|
|
3865
3865
|
_blockChild(item, options) {
|
|
3866
3866
|
const prop = item.properties && item.properties.property(this.name);
|
|
3867
3867
|
if (prop && prop.block) {
|
|
3868
|
-
prop.block(__spreadValues$
|
|
3868
|
+
prop.block(__spreadValues$o({ silent: true }, options || {}));
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
3871
|
_unBlockChild(item, options) {
|
|
3872
3872
|
const prop = item.properties && item.properties.property(this.name);
|
|
3873
3873
|
if (prop && prop.unBlock) {
|
|
3874
|
-
prop.unBlock(__spreadValues$
|
|
3874
|
+
prop.unBlock(__spreadValues$o({ silent: true }, options || {}));
|
|
3875
3875
|
}
|
|
3876
3876
|
}
|
|
3877
3877
|
_propagation(value, options) {
|
|
@@ -3881,7 +3881,7 @@ var NgwMap = (function (exports) {
|
|
|
3881
3881
|
const child = children[fry];
|
|
3882
3882
|
const property = child.properties && child.properties.property(this.name);
|
|
3883
3883
|
if (property) {
|
|
3884
|
-
property.set(value, __spreadValues$
|
|
3884
|
+
property.set(value, __spreadValues$o(__spreadValues$o({}, options), {
|
|
3885
3885
|
propagation: true,
|
|
3886
3886
|
bubble: false
|
|
3887
3887
|
}));
|
|
@@ -3899,23 +3899,23 @@ var NgwMap = (function (exports) {
|
|
|
3899
3899
|
});
|
|
3900
3900
|
let CheckProperty = _CheckProperty;
|
|
3901
3901
|
|
|
3902
|
-
var __defProp$
|
|
3903
|
-
var __getOwnPropSymbols$
|
|
3904
|
-
var __hasOwnProp$
|
|
3905
|
-
var __propIsEnum$
|
|
3906
|
-
var __defNormalProp$
|
|
3907
|
-
var __spreadValues$
|
|
3902
|
+
var __defProp$w = Object.defineProperty;
|
|
3903
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
3904
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
3905
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
3906
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3907
|
+
var __spreadValues$n = (a, b) => {
|
|
3908
3908
|
for (var prop in b || (b = {}))
|
|
3909
|
-
if (__hasOwnProp$
|
|
3910
|
-
__defNormalProp$
|
|
3911
|
-
if (__getOwnPropSymbols$
|
|
3912
|
-
for (var prop of __getOwnPropSymbols$
|
|
3913
|
-
if (__propIsEnum$
|
|
3914
|
-
__defNormalProp$
|
|
3909
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
3910
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
3911
|
+
if (__getOwnPropSymbols$o)
|
|
3912
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
3913
|
+
if (__propIsEnum$o.call(b, prop))
|
|
3914
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
3915
3915
|
}
|
|
3916
3916
|
return a;
|
|
3917
3917
|
};
|
|
3918
|
-
var __publicField$l = (obj, key, value) => __defNormalProp$
|
|
3918
|
+
var __publicField$l = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3919
3919
|
const BOOLEAN_TYPE = "boolean";
|
|
3920
3920
|
const STRING_TYPE = "string";
|
|
3921
3921
|
const _ItemProperties = class _ItemProperties {
|
|
@@ -3963,7 +3963,7 @@ var NgwMap = (function (exports) {
|
|
|
3963
3963
|
_setPropertyHandler(propOpt) {
|
|
3964
3964
|
const Handler = this._getHandler(propOpt);
|
|
3965
3965
|
if (Handler && propOpt.name) {
|
|
3966
|
-
const options = __spreadValues$
|
|
3966
|
+
const options = __spreadValues$n({}, propOpt);
|
|
3967
3967
|
this._properties[propOpt.name] = new Handler(
|
|
3968
3968
|
propOpt.name,
|
|
3969
3969
|
this.item,
|
|
@@ -4093,9 +4093,9 @@ var NgwMap = (function (exports) {
|
|
|
4093
4093
|
return true;
|
|
4094
4094
|
}
|
|
4095
4095
|
|
|
4096
|
-
var __defProp$
|
|
4097
|
-
var __defNormalProp$
|
|
4098
|
-
var __publicField$k = (obj, key, value) => __defNormalProp$
|
|
4096
|
+
var __defProp$v = Object.defineProperty;
|
|
4097
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4098
|
+
var __publicField$k = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4099
4099
|
class TreeHelper {
|
|
4100
4100
|
constructor(item) {
|
|
4101
4101
|
__publicField$k(this, "item");
|
|
@@ -4163,23 +4163,23 @@ var NgwMap = (function (exports) {
|
|
|
4163
4163
|
}
|
|
4164
4164
|
}
|
|
4165
4165
|
|
|
4166
|
-
var __defProp$
|
|
4167
|
-
var __getOwnPropSymbols$
|
|
4168
|
-
var __hasOwnProp$
|
|
4169
|
-
var __propIsEnum$
|
|
4170
|
-
var __defNormalProp$
|
|
4171
|
-
var __spreadValues$
|
|
4166
|
+
var __defProp$u = Object.defineProperty;
|
|
4167
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
4168
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
4169
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
4170
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4171
|
+
var __spreadValues$m = (a, b) => {
|
|
4172
4172
|
for (var prop in b || (b = {}))
|
|
4173
|
-
if (__hasOwnProp$
|
|
4174
|
-
__defNormalProp$
|
|
4175
|
-
if (__getOwnPropSymbols$
|
|
4176
|
-
for (var prop of __getOwnPropSymbols$
|
|
4177
|
-
if (__propIsEnum$
|
|
4178
|
-
__defNormalProp$
|
|
4173
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
4174
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
4175
|
+
if (__getOwnPropSymbols$n)
|
|
4176
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
4177
|
+
if (__propIsEnum$n.call(b, prop))
|
|
4178
|
+
__defNormalProp$u(a, prop, b[prop]);
|
|
4179
4179
|
}
|
|
4180
4180
|
return a;
|
|
4181
4181
|
};
|
|
4182
|
-
var __publicField$j = (obj, key, value) => __defNormalProp$
|
|
4182
|
+
var __publicField$j = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4183
4183
|
let ID$1 = 0;
|
|
4184
4184
|
class Item {
|
|
4185
4185
|
constructor(options) {
|
|
@@ -4188,7 +4188,7 @@ var NgwMap = (function (exports) {
|
|
|
4188
4188
|
__publicField$j(this, "tree");
|
|
4189
4189
|
__publicField$j(this, "id", ID$1);
|
|
4190
4190
|
ID$1 += 1;
|
|
4191
|
-
this.options = __spreadValues$
|
|
4191
|
+
this.options = __spreadValues$m({}, options);
|
|
4192
4192
|
this.tree = new TreeHelper(this);
|
|
4193
4193
|
}
|
|
4194
4194
|
initProperties() {
|
|
@@ -4244,26 +4244,26 @@ var NgwMap = (function (exports) {
|
|
|
4244
4244
|
return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
|
|
4245
4245
|
}
|
|
4246
4246
|
|
|
4247
|
-
var __defProp$
|
|
4248
|
-
var __defProps$
|
|
4249
|
-
var __getOwnPropDescs$
|
|
4250
|
-
var __getOwnPropSymbols$
|
|
4251
|
-
var __hasOwnProp$
|
|
4252
|
-
var __propIsEnum$
|
|
4253
|
-
var __defNormalProp$
|
|
4254
|
-
var __spreadValues$
|
|
4247
|
+
var __defProp$t = Object.defineProperty;
|
|
4248
|
+
var __defProps$e = Object.defineProperties;
|
|
4249
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
4250
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
4251
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
4252
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
4253
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4254
|
+
var __spreadValues$l = (a, b) => {
|
|
4255
4255
|
for (var prop in b || (b = {}))
|
|
4256
|
-
if (__hasOwnProp$
|
|
4257
|
-
__defNormalProp$
|
|
4258
|
-
if (__getOwnPropSymbols$
|
|
4259
|
-
for (var prop of __getOwnPropSymbols$
|
|
4260
|
-
if (__propIsEnum$
|
|
4261
|
-
__defNormalProp$
|
|
4256
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
4257
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
4258
|
+
if (__getOwnPropSymbols$m)
|
|
4259
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
4260
|
+
if (__propIsEnum$m.call(b, prop))
|
|
4261
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
4262
4262
|
}
|
|
4263
4263
|
return a;
|
|
4264
4264
|
};
|
|
4265
|
-
var __spreadProps$
|
|
4266
|
-
var __publicField$i = (obj, key, value) => __defNormalProp$
|
|
4265
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
4266
|
+
var __publicField$i = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4267
4267
|
var __async$k = (__this, __arguments, generator) => {
|
|
4268
4268
|
return new Promise((resolve, reject) => {
|
|
4269
4269
|
var fulfilled = (value) => {
|
|
@@ -4328,14 +4328,14 @@ var NgwMap = (function (exports) {
|
|
|
4328
4328
|
if (this.connector) {
|
|
4329
4329
|
const ngwLegend = yield this.connector.route("render.legend_symbols", {
|
|
4330
4330
|
id: this.resourceId
|
|
4331
|
-
}).get(__spreadValues$
|
|
4331
|
+
}).get(__spreadValues$l({}, options));
|
|
4332
4332
|
this.legend = ngwLegend;
|
|
4333
4333
|
return this.createLegend(ngwLegend);
|
|
4334
4334
|
}
|
|
4335
4335
|
});
|
|
4336
4336
|
}
|
|
4337
4337
|
createLegend(items) {
|
|
4338
|
-
return items.map((params) => __spreadProps$
|
|
4338
|
+
return items.map((params) => __spreadProps$e(__spreadValues$l({}, params), {
|
|
4339
4339
|
/** @deprecated use display_name instead */
|
|
4340
4340
|
name: params.display_name,
|
|
4341
4341
|
/** @deprecated use icon instead */
|
|
@@ -4365,7 +4365,7 @@ var NgwMap = (function (exports) {
|
|
|
4365
4365
|
}
|
|
4366
4366
|
if (this.layer.updateLayer) {
|
|
4367
4367
|
this.layer.updateLayer({
|
|
4368
|
-
params: __spreadValues$
|
|
4368
|
+
params: __spreadValues$l({}, createLayerSymbolParam(this.resourceId, intervals))
|
|
4369
4369
|
});
|
|
4370
4370
|
}
|
|
4371
4371
|
if (intervals.length) {
|
|
@@ -4402,26 +4402,26 @@ var NgwMap = (function (exports) {
|
|
|
4402
4402
|
}
|
|
4403
4403
|
}
|
|
4404
4404
|
|
|
4405
|
-
var __defProp$
|
|
4406
|
-
var __defProps$
|
|
4407
|
-
var __getOwnPropDescs$
|
|
4408
|
-
var __getOwnPropSymbols$
|
|
4409
|
-
var __hasOwnProp$
|
|
4410
|
-
var __propIsEnum$
|
|
4411
|
-
var __defNormalProp$
|
|
4412
|
-
var __spreadValues$
|
|
4405
|
+
var __defProp$s = Object.defineProperty;
|
|
4406
|
+
var __defProps$d = Object.defineProperties;
|
|
4407
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
4408
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
4409
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
4410
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
4411
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4412
|
+
var __spreadValues$k = (a, b) => {
|
|
4413
4413
|
for (var prop in b || (b = {}))
|
|
4414
|
-
if (__hasOwnProp$
|
|
4415
|
-
__defNormalProp$
|
|
4416
|
-
if (__getOwnPropSymbols$
|
|
4417
|
-
for (var prop of __getOwnPropSymbols$
|
|
4418
|
-
if (__propIsEnum$
|
|
4419
|
-
__defNormalProp$
|
|
4414
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
4415
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4416
|
+
if (__getOwnPropSymbols$l)
|
|
4417
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
4418
|
+
if (__propIsEnum$l.call(b, prop))
|
|
4419
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4420
4420
|
}
|
|
4421
4421
|
return a;
|
|
4422
4422
|
};
|
|
4423
|
-
var __spreadProps$
|
|
4424
|
-
var __publicField$h = (obj, key, value) => __defNormalProp$
|
|
4423
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
4424
|
+
var __publicField$h = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4425
4425
|
var __async$j = (__this, __arguments, generator) => {
|
|
4426
4426
|
return new Promise((resolve, reject) => {
|
|
4427
4427
|
var fulfilled = (value) => {
|
|
@@ -4451,7 +4451,7 @@ var NgwMap = (function (exports) {
|
|
|
4451
4451
|
parent,
|
|
4452
4452
|
noInit
|
|
4453
4453
|
}) {
|
|
4454
|
-
super(__spreadValues$
|
|
4454
|
+
super(__spreadValues$k(__spreadValues$k({}, _NgwWebmapItem.options), options));
|
|
4455
4455
|
__publicField$h(this, "item");
|
|
4456
4456
|
__publicField$h(this, "webMap");
|
|
4457
4457
|
__publicField$h(this, "connector");
|
|
@@ -4547,7 +4547,7 @@ var NgwMap = (function (exports) {
|
|
|
4547
4547
|
getItemOptions(item) {
|
|
4548
4548
|
const transparency = item.item_type === "layer" && item.layer_transparency;
|
|
4549
4549
|
const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
|
|
4550
|
-
const options = __spreadProps$
|
|
4550
|
+
const options = __spreadProps$d(__spreadValues$k({
|
|
4551
4551
|
visibility: false,
|
|
4552
4552
|
name: item.display_name
|
|
4553
4553
|
}, this.options), {
|
|
@@ -4567,7 +4567,7 @@ var NgwMap = (function (exports) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
if (item.item_type === "layer") {
|
|
4569
4569
|
const { maxZoom, minZoom } = this._getZoomRange(item);
|
|
4570
|
-
Object.assign(options, __spreadProps$
|
|
4570
|
+
Object.assign(options, __spreadProps$d(__spreadValues$k({
|
|
4571
4571
|
updateWmsParams: item.updateWmsParams
|
|
4572
4572
|
}, options), {
|
|
4573
4573
|
url: item.url,
|
|
@@ -4711,26 +4711,26 @@ var NgwMap = (function (exports) {
|
|
|
4711
4711
|
});
|
|
4712
4712
|
let NgwWebmapItem = _NgwWebmapItem;
|
|
4713
4713
|
|
|
4714
|
-
var __defProp$
|
|
4715
|
-
var __defProps$
|
|
4716
|
-
var __getOwnPropDescs$
|
|
4717
|
-
var __getOwnPropSymbols$
|
|
4718
|
-
var __hasOwnProp$
|
|
4719
|
-
var __propIsEnum$
|
|
4720
|
-
var __defNormalProp$
|
|
4721
|
-
var __spreadValues$
|
|
4714
|
+
var __defProp$r = Object.defineProperty;
|
|
4715
|
+
var __defProps$c = Object.defineProperties;
|
|
4716
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4717
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
4718
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
4719
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
4720
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4721
|
+
var __spreadValues$j = (a, b) => {
|
|
4722
4722
|
for (var prop in b || (b = {}))
|
|
4723
|
-
if (__hasOwnProp$
|
|
4724
|
-
__defNormalProp$
|
|
4725
|
-
if (__getOwnPropSymbols$
|
|
4726
|
-
for (var prop of __getOwnPropSymbols$
|
|
4727
|
-
if (__propIsEnum$
|
|
4728
|
-
__defNormalProp$
|
|
4723
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
4724
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
4725
|
+
if (__getOwnPropSymbols$k)
|
|
4726
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
4727
|
+
if (__propIsEnum$k.call(b, prop))
|
|
4728
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
4729
4729
|
}
|
|
4730
4730
|
return a;
|
|
4731
4731
|
};
|
|
4732
|
-
var __spreadProps$
|
|
4733
|
-
var __publicField$g = (obj, key, value) => __defNormalProp$
|
|
4732
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
4733
|
+
var __publicField$g = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4734
4734
|
var __async$i = (__this, __arguments, generator) => {
|
|
4735
4735
|
return new Promise((resolve, reject) => {
|
|
4736
4736
|
var fulfilled = (value) => {
|
|
@@ -4783,7 +4783,7 @@ var NgwMap = (function (exports) {
|
|
|
4783
4783
|
addLayer(options) {
|
|
4784
4784
|
return __async$i(this, null, function* () {
|
|
4785
4785
|
var _a;
|
|
4786
|
-
this.options = __spreadValues$
|
|
4786
|
+
this.options = __spreadValues$j(__spreadValues$j({}, this.options), options);
|
|
4787
4787
|
this.layer = yield this._getWebMapLayerItem();
|
|
4788
4788
|
const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
|
|
4789
4789
|
if (this.options.useExtentConstrained && this._extent && extentConstrained) {
|
|
@@ -4862,7 +4862,7 @@ var NgwMap = (function (exports) {
|
|
|
4862
4862
|
(x) => x.label_field
|
|
4863
4863
|
);
|
|
4864
4864
|
const keyname = labelField && labelField.keyname;
|
|
4865
|
-
return fetchNgwLayerItems(__spreadValues$
|
|
4865
|
+
return fetchNgwLayerItems(__spreadValues$j({
|
|
4866
4866
|
connector,
|
|
4867
4867
|
resourceId: bookmarkResId,
|
|
4868
4868
|
geom: false,
|
|
@@ -4931,7 +4931,7 @@ var NgwMap = (function (exports) {
|
|
|
4931
4931
|
const connector = this.options.connector;
|
|
4932
4932
|
const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
|
|
4933
4933
|
const withCredentials = connector.withCredentials;
|
|
4934
|
-
const options = __spreadProps$
|
|
4934
|
+
const options = __spreadProps$c(__spreadValues$j({}, this.options), {
|
|
4935
4935
|
withCredentials,
|
|
4936
4936
|
headers,
|
|
4937
4937
|
drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
|
|
@@ -5037,7 +5037,7 @@ var NgwMap = (function (exports) {
|
|
|
5037
5037
|
webMap,
|
|
5038
5038
|
baseUrl: this.options.connector.options.baseUrl || ""
|
|
5039
5039
|
});
|
|
5040
|
-
item = __spreadValues$
|
|
5040
|
+
item = __spreadValues$j(__spreadValues$j({}, layerItem), layerAdapterOptions);
|
|
5041
5041
|
}
|
|
5042
5042
|
}
|
|
5043
5043
|
if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
|
|
@@ -5047,40 +5047,40 @@ var NgwMap = (function (exports) {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
5049
5049
|
|
|
5050
|
-
var __defProp$
|
|
5051
|
-
var __defProps$
|
|
5052
|
-
var __getOwnPropDescs$
|
|
5053
|
-
var __getOwnPropSymbols$
|
|
5054
|
-
var __hasOwnProp$
|
|
5055
|
-
var __propIsEnum$
|
|
5056
|
-
var __defNormalProp$
|
|
5057
|
-
var __spreadValues$
|
|
5050
|
+
var __defProp$q = Object.defineProperty;
|
|
5051
|
+
var __defProps$b = Object.defineProperties;
|
|
5052
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
5053
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
5054
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
5055
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
5056
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5057
|
+
var __spreadValues$i = (a, b) => {
|
|
5058
5058
|
for (var prop in b || (b = {}))
|
|
5059
|
-
if (__hasOwnProp$
|
|
5060
|
-
__defNormalProp$
|
|
5061
|
-
if (__getOwnPropSymbols$
|
|
5062
|
-
for (var prop of __getOwnPropSymbols$
|
|
5063
|
-
if (__propIsEnum$
|
|
5064
|
-
__defNormalProp$
|
|
5059
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
5060
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
5061
|
+
if (__getOwnPropSymbols$j)
|
|
5062
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
5063
|
+
if (__propIsEnum$j.call(b, prop))
|
|
5064
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
5065
5065
|
}
|
|
5066
5066
|
return a;
|
|
5067
5067
|
};
|
|
5068
|
-
var __spreadProps$
|
|
5068
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
5069
5069
|
var __objRest$4 = (source, exclude) => {
|
|
5070
5070
|
var target = {};
|
|
5071
5071
|
for (var prop in source)
|
|
5072
|
-
if (__hasOwnProp$
|
|
5072
|
+
if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5073
5073
|
target[prop] = source[prop];
|
|
5074
|
-
if (source != null && __getOwnPropSymbols$
|
|
5075
|
-
for (var prop of __getOwnPropSymbols$
|
|
5076
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5074
|
+
if (source != null && __getOwnPropSymbols$j)
|
|
5075
|
+
for (var prop of __getOwnPropSymbols$j(source)) {
|
|
5076
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
|
|
5077
5077
|
target[prop] = source[prop];
|
|
5078
5078
|
}
|
|
5079
5079
|
return target;
|
|
5080
5080
|
};
|
|
5081
5081
|
function updateImageParams(params, resourceId) {
|
|
5082
5082
|
const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$4(_a, ["bbox", "width", "height", "nd"]);
|
|
5083
|
-
return __spreadProps$
|
|
5083
|
+
return __spreadProps$b(__spreadValues$i({}, rest), {
|
|
5084
5084
|
resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
|
|
5085
5085
|
extent: bbox,
|
|
5086
5086
|
size: width + "," + height,
|
|
@@ -5115,7 +5115,7 @@ var NgwMap = (function (exports) {
|
|
|
5115
5115
|
function extendNgwWebmapLayerAdapter(opt) {
|
|
5116
5116
|
class A extends NgwWebmapLayerAdapter {
|
|
5117
5117
|
constructor(map, options) {
|
|
5118
|
-
options = __spreadValues$
|
|
5118
|
+
options = __spreadValues$i(__spreadValues$i({}, opt), options);
|
|
5119
5119
|
super(map, options);
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
@@ -5194,35 +5194,35 @@ var NgwMap = (function (exports) {
|
|
|
5194
5194
|
};
|
|
5195
5195
|
}
|
|
5196
5196
|
|
|
5197
|
-
var __defProp$
|
|
5198
|
-
var __getOwnPropSymbols$
|
|
5199
|
-
var __hasOwnProp$
|
|
5200
|
-
var __propIsEnum$
|
|
5201
|
-
var __defNormalProp$
|
|
5202
|
-
var __spreadValues$
|
|
5197
|
+
var __defProp$p = Object.defineProperty;
|
|
5198
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
5199
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
5200
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
5201
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5202
|
+
var __spreadValues$h = (a, b) => {
|
|
5203
5203
|
for (var prop in b || (b = {}))
|
|
5204
|
-
if (__hasOwnProp$
|
|
5205
|
-
__defNormalProp$
|
|
5206
|
-
if (__getOwnPropSymbols$
|
|
5207
|
-
for (var prop of __getOwnPropSymbols$
|
|
5208
|
-
if (__propIsEnum$
|
|
5209
|
-
__defNormalProp$
|
|
5204
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
5205
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
5206
|
+
if (__getOwnPropSymbols$i)
|
|
5207
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
5208
|
+
if (__propIsEnum$i.call(b, prop))
|
|
5209
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
5210
5210
|
}
|
|
5211
5211
|
return a;
|
|
5212
5212
|
};
|
|
5213
5213
|
var __objRest$3 = (source, exclude) => {
|
|
5214
5214
|
var target = {};
|
|
5215
5215
|
for (var prop in source)
|
|
5216
|
-
if (__hasOwnProp$
|
|
5216
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5217
5217
|
target[prop] = source[prop];
|
|
5218
|
-
if (source != null && __getOwnPropSymbols$
|
|
5219
|
-
for (var prop of __getOwnPropSymbols$
|
|
5220
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5218
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
5219
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
5220
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
5221
5221
|
target[prop] = source[prop];
|
|
5222
5222
|
}
|
|
5223
5223
|
return target;
|
|
5224
5224
|
};
|
|
5225
|
-
var __publicField$f = (obj, key, value) => __defNormalProp$
|
|
5225
|
+
var __publicField$f = (obj, key, value) => __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5226
5226
|
var __async$h = (__this, __arguments, generator) => {
|
|
5227
5227
|
return new Promise((resolve, reject) => {
|
|
5228
5228
|
var fulfilled = (value) => {
|
|
@@ -5267,7 +5267,7 @@ var NgwMap = (function (exports) {
|
|
|
5267
5267
|
__publicField$f(this, "options");
|
|
5268
5268
|
__publicField$f(this, "map");
|
|
5269
5269
|
this.map = map;
|
|
5270
|
-
const opt = __spreadValues$
|
|
5270
|
+
const opt = __spreadValues$h(__spreadValues$h({}, createOpt), options);
|
|
5271
5271
|
this.options = opt;
|
|
5272
5272
|
this.options.baselayer = true;
|
|
5273
5273
|
if (opt.qms) {
|
|
@@ -5295,7 +5295,7 @@ var NgwMap = (function (exports) {
|
|
|
5295
5295
|
"hideLayer"
|
|
5296
5296
|
]);
|
|
5297
5297
|
if (type === "TILE") {
|
|
5298
|
-
options = __spreadValues$
|
|
5298
|
+
options = __spreadValues$h(__spreadValues$h({
|
|
5299
5299
|
order: 0,
|
|
5300
5300
|
maxZoom: webMap.options.maxZoom,
|
|
5301
5301
|
minZoom: webMap.options.minZoom
|
|
@@ -5319,30 +5319,30 @@ var NgwMap = (function (exports) {
|
|
|
5319
5319
|
return QmsAdapter;
|
|
5320
5320
|
}
|
|
5321
5321
|
|
|
5322
|
-
var __defProp$
|
|
5323
|
-
var __getOwnPropSymbols$
|
|
5324
|
-
var __hasOwnProp$
|
|
5325
|
-
var __propIsEnum$
|
|
5326
|
-
var __defNormalProp$
|
|
5327
|
-
var __spreadValues$
|
|
5322
|
+
var __defProp$o = Object.defineProperty;
|
|
5323
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
5324
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
5325
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
5326
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5327
|
+
var __spreadValues$g = (a, b) => {
|
|
5328
5328
|
for (var prop in b || (b = {}))
|
|
5329
|
-
if (__hasOwnProp$
|
|
5330
|
-
__defNormalProp$
|
|
5331
|
-
if (__getOwnPropSymbols$
|
|
5332
|
-
for (var prop of __getOwnPropSymbols$
|
|
5333
|
-
if (__propIsEnum$
|
|
5334
|
-
__defNormalProp$
|
|
5329
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
5330
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
5331
|
+
if (__getOwnPropSymbols$h)
|
|
5332
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
5333
|
+
if (__propIsEnum$h.call(b, prop))
|
|
5334
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
5335
5335
|
}
|
|
5336
5336
|
return a;
|
|
5337
5337
|
};
|
|
5338
|
-
var __publicField$e = (obj, key, value) => __defNormalProp$
|
|
5338
|
+
var __publicField$e = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5339
5339
|
class QmsKit {
|
|
5340
5340
|
constructor(options) {
|
|
5341
5341
|
__publicField$e(this, "options", {
|
|
5342
5342
|
url: "https://qms.nextgis.com"
|
|
5343
5343
|
});
|
|
5344
5344
|
__publicField$e(this, "url");
|
|
5345
|
-
this.options = __spreadValues$
|
|
5345
|
+
this.options = __spreadValues$g(__spreadValues$g({}, this.options), options);
|
|
5346
5346
|
this.url = this.options.url;
|
|
5347
5347
|
}
|
|
5348
5348
|
getLayerAdapters() {
|
|
@@ -5361,27 +5361,27 @@ var NgwMap = (function (exports) {
|
|
|
5361
5361
|
createQmsAdapter
|
|
5362
5362
|
});
|
|
5363
5363
|
|
|
5364
|
-
var __defProp$
|
|
5365
|
-
var __defProps$
|
|
5366
|
-
var __getOwnPropDescs$
|
|
5367
|
-
var __getOwnPropSymbols$
|
|
5364
|
+
var __defProp$n = Object.defineProperty;
|
|
5365
|
+
var __defProps$a = Object.defineProperties;
|
|
5366
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
5367
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
5368
5368
|
var __getProtoOf$2 = Object.getPrototypeOf;
|
|
5369
|
-
var __hasOwnProp$
|
|
5370
|
-
var __propIsEnum$
|
|
5369
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
5370
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
5371
5371
|
var __reflectGet$2 = Reflect.get;
|
|
5372
|
-
var __defNormalProp$
|
|
5373
|
-
var __spreadValues$
|
|
5372
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5373
|
+
var __spreadValues$f = (a, b) => {
|
|
5374
5374
|
for (var prop in b || (b = {}))
|
|
5375
|
-
if (__hasOwnProp$
|
|
5376
|
-
__defNormalProp$
|
|
5377
|
-
if (__getOwnPropSymbols$
|
|
5378
|
-
for (var prop of __getOwnPropSymbols$
|
|
5379
|
-
if (__propIsEnum$
|
|
5380
|
-
__defNormalProp$
|
|
5375
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
5376
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
5377
|
+
if (__getOwnPropSymbols$g)
|
|
5378
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
5379
|
+
if (__propIsEnum$g.call(b, prop))
|
|
5380
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
5381
5381
|
}
|
|
5382
5382
|
return a;
|
|
5383
5383
|
};
|
|
5384
|
-
var __spreadProps$
|
|
5384
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
5385
5385
|
var __superGet$2 = (cls, obj, key) => __reflectGet$2(__getProtoOf$2(cls), key, obj);
|
|
5386
5386
|
var __async$g = (__this, __arguments, generator) => {
|
|
5387
5387
|
return new Promise((resolve, reject) => {
|
|
@@ -5427,7 +5427,7 @@ var NgwMap = (function (exports) {
|
|
|
5427
5427
|
addLayer(opt) {
|
|
5428
5428
|
return __async$g(this, null, function* () {
|
|
5429
5429
|
if (url) {
|
|
5430
|
-
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$
|
|
5430
|
+
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$a(__spreadValues$f({}, opt), { url }));
|
|
5431
5431
|
}
|
|
5432
5432
|
});
|
|
5433
5433
|
}
|
|
@@ -5536,28 +5536,28 @@ var NgwMap = (function (exports) {
|
|
|
5536
5536
|
return filterOptions;
|
|
5537
5537
|
}
|
|
5538
5538
|
|
|
5539
|
-
var __defProp$
|
|
5540
|
-
var __defProps$
|
|
5541
|
-
var __getOwnPropDescs$
|
|
5542
|
-
var __getOwnPropSymbols$
|
|
5539
|
+
var __defProp$m = Object.defineProperty;
|
|
5540
|
+
var __defProps$9 = Object.defineProperties;
|
|
5541
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
5542
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
5543
5543
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
5544
|
-
var __hasOwnProp$
|
|
5545
|
-
var __propIsEnum$
|
|
5544
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
5545
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
5546
5546
|
var __reflectGet$1 = Reflect.get;
|
|
5547
|
-
var __defNormalProp$
|
|
5548
|
-
var __spreadValues$
|
|
5549
|
-
for (var prop in b || (b = {}))
|
|
5550
|
-
if (__hasOwnProp$
|
|
5551
|
-
__defNormalProp$
|
|
5552
|
-
if (__getOwnPropSymbols$
|
|
5553
|
-
for (var prop of __getOwnPropSymbols$
|
|
5554
|
-
if (__propIsEnum$
|
|
5555
|
-
__defNormalProp$
|
|
5547
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5548
|
+
var __spreadValues$e = (a, b) => {
|
|
5549
|
+
for (var prop in b || (b = {}))
|
|
5550
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
5551
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
5552
|
+
if (__getOwnPropSymbols$f)
|
|
5553
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
5554
|
+
if (__propIsEnum$f.call(b, prop))
|
|
5555
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
5556
5556
|
}
|
|
5557
5557
|
return a;
|
|
5558
5558
|
};
|
|
5559
|
-
var __spreadProps$
|
|
5560
|
-
var __publicField$d = (obj, key, value) => __defNormalProp$
|
|
5559
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
5560
|
+
var __publicField$d = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5561
5561
|
var __superGet$1 = (cls, obj, key) => __reflectGet$1(__getProtoOf$1(cls), key, obj);
|
|
5562
5562
|
var __async$e = (__this, __arguments, generator) => {
|
|
5563
5563
|
return new Promise((resolve, reject) => {
|
|
@@ -5613,7 +5613,7 @@ var NgwMap = (function (exports) {
|
|
|
5613
5613
|
filterOpt = filterOpt || {};
|
|
5614
5614
|
filterOpt.signal = internalSignal;
|
|
5615
5615
|
_lastFilterArgs = { filters, options: filterOpt };
|
|
5616
|
-
return fetchNgwLayerFeatureCollection(__spreadValues$
|
|
5616
|
+
return fetchNgwLayerFeatureCollection(__spreadValues$e({
|
|
5617
5617
|
resourceId,
|
|
5618
5618
|
filters,
|
|
5619
5619
|
connector,
|
|
@@ -5648,9 +5648,9 @@ var NgwMap = (function (exports) {
|
|
|
5648
5648
|
}
|
|
5649
5649
|
if (options.adapterOptions) {
|
|
5650
5650
|
if (addLayerOptionsPriority) {
|
|
5651
|
-
opt = __spreadValues$
|
|
5651
|
+
opt = __spreadValues$e(__spreadValues$e({}, options.adapterOptions), opt);
|
|
5652
5652
|
} else {
|
|
5653
|
-
opt = __spreadValues$
|
|
5653
|
+
opt = __spreadValues$e(__spreadValues$e({}, opt), options.adapterOptions);
|
|
5654
5654
|
}
|
|
5655
5655
|
}
|
|
5656
5656
|
if (opt.data && Object.keys(opt.data).length === 0) {
|
|
@@ -5735,7 +5735,7 @@ var NgwMap = (function (exports) {
|
|
|
5735
5735
|
try {
|
|
5736
5736
|
this.emitter.emit("preupdate", filterArgs);
|
|
5737
5737
|
webMap._emitLayerEvent("layer:preupdate", options.id || "", filterArgs);
|
|
5738
|
-
const data = yield getData(filterArgs.filters, __spreadProps$
|
|
5738
|
+
const data = yield getData(filterArgs.filters, __spreadProps$9(__spreadValues$e({}, filterArgs.options), {
|
|
5739
5739
|
srs: this.options.srs
|
|
5740
5740
|
}));
|
|
5741
5741
|
let newData = data;
|
|
@@ -5778,7 +5778,7 @@ var NgwMap = (function (exports) {
|
|
|
5778
5778
|
abort();
|
|
5779
5779
|
if (this.filter && _fullDataLoad) {
|
|
5780
5780
|
this.filter((e) => {
|
|
5781
|
-
const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$
|
|
5781
|
+
const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$e({}, e.feature.properties));
|
|
5782
5782
|
if (props_) {
|
|
5783
5783
|
return propertiesFilter(props_, filters);
|
|
5784
5784
|
}
|
|
@@ -5788,7 +5788,7 @@ var NgwMap = (function (exports) {
|
|
|
5788
5788
|
if (this.clearLayer) {
|
|
5789
5789
|
this.clearLayer();
|
|
5790
5790
|
}
|
|
5791
|
-
const data = yield getData(filters, __spreadProps$
|
|
5791
|
+
const data = yield getData(filters, __spreadProps$9(__spreadValues$e({}, opt), {
|
|
5792
5792
|
srs: this.options.srs
|
|
5793
5793
|
}));
|
|
5794
5794
|
this.setData(data);
|
|
@@ -6016,38 +6016,38 @@ var NgwMap = (function (exports) {
|
|
|
6016
6016
|
};
|
|
6017
6017
|
}
|
|
6018
6018
|
|
|
6019
|
-
var __defProp$
|
|
6020
|
-
var __defProps$
|
|
6021
|
-
var __getOwnPropDescs$
|
|
6022
|
-
var __getOwnPropSymbols$
|
|
6023
|
-
var __hasOwnProp$
|
|
6024
|
-
var __propIsEnum$
|
|
6025
|
-
var __defNormalProp$
|
|
6026
|
-
var __spreadValues$
|
|
6019
|
+
var __defProp$l = Object.defineProperty;
|
|
6020
|
+
var __defProps$8 = Object.defineProperties;
|
|
6021
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
6022
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
6023
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
6024
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
6025
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6026
|
+
var __spreadValues$d = (a, b) => {
|
|
6027
6027
|
for (var prop in b || (b = {}))
|
|
6028
|
-
if (__hasOwnProp$
|
|
6029
|
-
__defNormalProp$
|
|
6030
|
-
if (__getOwnPropSymbols$
|
|
6031
|
-
for (var prop of __getOwnPropSymbols$
|
|
6032
|
-
if (__propIsEnum$
|
|
6033
|
-
__defNormalProp$
|
|
6028
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
6029
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
6030
|
+
if (__getOwnPropSymbols$e)
|
|
6031
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
6032
|
+
if (__propIsEnum$e.call(b, prop))
|
|
6033
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
6034
6034
|
}
|
|
6035
6035
|
return a;
|
|
6036
6036
|
};
|
|
6037
|
-
var __spreadProps$
|
|
6037
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
6038
6038
|
var __objRest$2 = (source, exclude) => {
|
|
6039
6039
|
var target = {};
|
|
6040
6040
|
for (var prop in source)
|
|
6041
|
-
if (__hasOwnProp$
|
|
6041
|
+
if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6042
6042
|
target[prop] = source[prop];
|
|
6043
|
-
if (source != null && __getOwnPropSymbols$
|
|
6044
|
-
for (var prop of __getOwnPropSymbols$
|
|
6045
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6043
|
+
if (source != null && __getOwnPropSymbols$e)
|
|
6044
|
+
for (var prop of __getOwnPropSymbols$e(source)) {
|
|
6045
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
|
|
6046
6046
|
target[prop] = source[prop];
|
|
6047
6047
|
}
|
|
6048
6048
|
return target;
|
|
6049
6049
|
};
|
|
6050
|
-
var __publicField$c = (obj, key, value) => __defNormalProp$
|
|
6050
|
+
var __publicField$c = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6051
6051
|
var __async$c = (__this, __arguments, generator) => {
|
|
6052
6052
|
return new Promise((resolve, reject) => {
|
|
6053
6053
|
var fulfilled = (value) => {
|
|
@@ -6116,11 +6116,11 @@ var NgwMap = (function (exports) {
|
|
|
6116
6116
|
resourceId,
|
|
6117
6117
|
propertiesFilter
|
|
6118
6118
|
);
|
|
6119
|
-
const layerAdapterOptions = __spreadProps$
|
|
6120
|
-
params: __spreadValues$
|
|
6119
|
+
const layerAdapterOptions = __spreadProps$8(__spreadValues$d(__spreadValues$d({}, opt), restAdapterOptions), {
|
|
6120
|
+
params: __spreadValues$d({
|
|
6121
6121
|
resource: resourceId
|
|
6122
6122
|
}, filterParams),
|
|
6123
|
-
url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$
|
|
6123
|
+
url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$d({
|
|
6124
6124
|
resource: String(resourceId)
|
|
6125
6125
|
}, filterParams)) : opt.url,
|
|
6126
6126
|
layers: opt.layers || String(resourceId),
|
|
@@ -6129,17 +6129,17 @@ var NgwMap = (function (exports) {
|
|
|
6129
6129
|
if (layerOptions.adapterOptions && defined(layerOptions.adapterOptions.setViewDelay)) {
|
|
6130
6130
|
layerAdapterOptions.setViewDelay = layerOptions.adapterOptions.setViewDelay;
|
|
6131
6131
|
}
|
|
6132
|
-
this.options = __spreadValues$
|
|
6132
|
+
this.options = __spreadValues$d(__spreadValues$d({}, this.options), layerAdapterOptions);
|
|
6133
6133
|
}
|
|
6134
6134
|
}
|
|
6135
6135
|
addLayer(addOptions) {
|
|
6136
|
-
return super.addLayer(__spreadValues$
|
|
6136
|
+
return super.addLayer(__spreadValues$d(__spreadValues$d({}, this.options), addOptions));
|
|
6137
6137
|
}
|
|
6138
6138
|
propertiesFilter(filters) {
|
|
6139
6139
|
return __async$c(this, null, function* () {
|
|
6140
6140
|
var _a;
|
|
6141
6141
|
const opt = this.options;
|
|
6142
|
-
const params = __spreadValues$
|
|
6142
|
+
const params = __spreadValues$d(__spreadValues$d({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
|
|
6143
6143
|
opt.params = params;
|
|
6144
6144
|
(_a = this.updateLayer) == null ? void 0 : _a.call(this, { params });
|
|
6145
6145
|
});
|
|
@@ -6164,7 +6164,7 @@ var NgwMap = (function (exports) {
|
|
|
6164
6164
|
return __async$c(this, null, function* () {
|
|
6165
6165
|
const id = this.options.id;
|
|
6166
6166
|
if (id !== void 0) {
|
|
6167
|
-
const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$
|
|
6167
|
+
const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$d({
|
|
6168
6168
|
cache: true
|
|
6169
6169
|
}, options));
|
|
6170
6170
|
const legend = new Legend({
|
|
@@ -6186,25 +6186,25 @@ var NgwMap = (function (exports) {
|
|
|
6186
6186
|
});
|
|
6187
6187
|
}
|
|
6188
6188
|
|
|
6189
|
-
var __defProp$
|
|
6190
|
-
var __defProps$
|
|
6191
|
-
var __getOwnPropDescs$
|
|
6192
|
-
var __getOwnPropSymbols$
|
|
6193
|
-
var __hasOwnProp$
|
|
6194
|
-
var __propIsEnum$
|
|
6195
|
-
var __defNormalProp$
|
|
6196
|
-
var __spreadValues$
|
|
6189
|
+
var __defProp$k = Object.defineProperty;
|
|
6190
|
+
var __defProps$7 = Object.defineProperties;
|
|
6191
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
6192
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
6193
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
6194
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
6195
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6196
|
+
var __spreadValues$c = (a, b) => {
|
|
6197
6197
|
for (var prop in b || (b = {}))
|
|
6198
|
-
if (__hasOwnProp$
|
|
6199
|
-
__defNormalProp$
|
|
6200
|
-
if (__getOwnPropSymbols$
|
|
6201
|
-
for (var prop of __getOwnPropSymbols$
|
|
6202
|
-
if (__propIsEnum$
|
|
6203
|
-
__defNormalProp$
|
|
6198
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
6199
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
6200
|
+
if (__getOwnPropSymbols$d)
|
|
6201
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
6202
|
+
if (__propIsEnum$d.call(b, prop))
|
|
6203
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
6204
6204
|
}
|
|
6205
6205
|
return a;
|
|
6206
6206
|
};
|
|
6207
|
-
var __spreadProps$
|
|
6207
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
6208
6208
|
var __async$b = (__this, __arguments, generator) => {
|
|
6209
6209
|
return new Promise((resolve, reject) => {
|
|
6210
6210
|
var fulfilled = (value) => {
|
|
@@ -6252,7 +6252,7 @@ var NgwMap = (function (exports) {
|
|
|
6252
6252
|
const firstStyle = childrenStyles && childrenStyles[0];
|
|
6253
6253
|
if (firstStyle) {
|
|
6254
6254
|
return createAsyncAdapter(
|
|
6255
|
-
__spreadProps$
|
|
6255
|
+
__spreadProps$7(__spreadValues$c({}, layerOptions), { resource: firstStyle.resource.id }),
|
|
6256
6256
|
webMap,
|
|
6257
6257
|
connector
|
|
6258
6258
|
);
|
|
@@ -6275,7 +6275,7 @@ var NgwMap = (function (exports) {
|
|
|
6275
6275
|
}
|
|
6276
6276
|
if (item) {
|
|
6277
6277
|
const cls = item.resource.cls;
|
|
6278
|
-
const layerOptions = __spreadProps$
|
|
6278
|
+
const layerOptions = __spreadProps$7(__spreadValues$c({}, options), {
|
|
6279
6279
|
resource: resourceId
|
|
6280
6280
|
});
|
|
6281
6281
|
const adapterOptions = {
|
|
@@ -6312,10 +6312,10 @@ var NgwMap = (function (exports) {
|
|
|
6312
6312
|
item.resource.parent.id
|
|
6313
6313
|
);
|
|
6314
6314
|
if (parentItem) {
|
|
6315
|
-
const parentOptions = __spreadProps$
|
|
6315
|
+
const parentOptions = __spreadProps$7(__spreadValues$c({}, options), {
|
|
6316
6316
|
resource: item.resource.parent.id
|
|
6317
6317
|
});
|
|
6318
|
-
adapter = createGeoJsonAdapter(__spreadProps$
|
|
6318
|
+
adapter = createGeoJsonAdapter(__spreadProps$7(__spreadValues$c({}, adapterOptions), {
|
|
6319
6319
|
item: parentItem,
|
|
6320
6320
|
layerOptions: parentOptions
|
|
6321
6321
|
}));
|
|
@@ -6359,23 +6359,23 @@ var NgwMap = (function (exports) {
|
|
|
6359
6359
|
});
|
|
6360
6360
|
}
|
|
6361
6361
|
|
|
6362
|
-
var __defProp$
|
|
6363
|
-
var __getOwnPropSymbols$
|
|
6364
|
-
var __hasOwnProp$
|
|
6365
|
-
var __propIsEnum$
|
|
6366
|
-
var __defNormalProp$
|
|
6367
|
-
var __spreadValues$
|
|
6362
|
+
var __defProp$j = Object.defineProperty;
|
|
6363
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
6364
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
6365
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
6366
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6367
|
+
var __spreadValues$b = (a, b) => {
|
|
6368
6368
|
for (var prop in b || (b = {}))
|
|
6369
|
-
if (__hasOwnProp$
|
|
6370
|
-
__defNormalProp$
|
|
6371
|
-
if (__getOwnPropSymbols$
|
|
6372
|
-
for (var prop of __getOwnPropSymbols$
|
|
6373
|
-
if (__propIsEnum$
|
|
6374
|
-
__defNormalProp$
|
|
6369
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
6370
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6371
|
+
if (__getOwnPropSymbols$c)
|
|
6372
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
6373
|
+
if (__propIsEnum$c.call(b, prop))
|
|
6374
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6375
6375
|
}
|
|
6376
6376
|
return a;
|
|
6377
6377
|
};
|
|
6378
|
-
var __publicField$b = (obj, key, value) => __defNormalProp$
|
|
6378
|
+
var __publicField$b = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6379
6379
|
var __async$a = (__this, __arguments, generator) => {
|
|
6380
6380
|
return new Promise((resolve, reject) => {
|
|
6381
6381
|
var fulfilled = (value) => {
|
|
@@ -6431,7 +6431,7 @@ var NgwMap = (function (exports) {
|
|
|
6431
6431
|
connector: this.connector,
|
|
6432
6432
|
webMap
|
|
6433
6433
|
};
|
|
6434
|
-
const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$
|
|
6434
|
+
const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$b({
|
|
6435
6435
|
visibility: true,
|
|
6436
6436
|
fit: true,
|
|
6437
6437
|
pixelRadius: this.options.pixelRadius
|
|
@@ -6462,23 +6462,23 @@ var NgwMap = (function (exports) {
|
|
|
6462
6462
|
}
|
|
6463
6463
|
}
|
|
6464
6464
|
|
|
6465
|
-
var __defProp$
|
|
6466
|
-
var __getOwnPropSymbols$
|
|
6467
|
-
var __hasOwnProp$
|
|
6468
|
-
var __propIsEnum$
|
|
6469
|
-
var __defNormalProp$
|
|
6470
|
-
var __spreadValues$
|
|
6465
|
+
var __defProp$i = Object.defineProperty;
|
|
6466
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
6467
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
6468
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
6469
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6470
|
+
var __spreadValues$a = (a, b) => {
|
|
6471
6471
|
for (var prop in b || (b = {}))
|
|
6472
|
-
if (__hasOwnProp$
|
|
6473
|
-
__defNormalProp$
|
|
6474
|
-
if (__getOwnPropSymbols$
|
|
6475
|
-
for (var prop of __getOwnPropSymbols$
|
|
6476
|
-
if (__propIsEnum$
|
|
6477
|
-
__defNormalProp$
|
|
6472
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
6473
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6474
|
+
if (__getOwnPropSymbols$b)
|
|
6475
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
6476
|
+
if (__propIsEnum$b.call(b, prop))
|
|
6477
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6478
6478
|
}
|
|
6479
6479
|
return a;
|
|
6480
6480
|
};
|
|
6481
|
-
var __publicField$a = (obj, key, value) => __defNormalProp$
|
|
6481
|
+
var __publicField$a = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6482
6482
|
var __async$9 = (__this, __arguments, generator) => {
|
|
6483
6483
|
return new Promise((resolve, reject) => {
|
|
6484
6484
|
var fulfilled = (value) => {
|
|
@@ -6526,7 +6526,7 @@ var NgwMap = (function (exports) {
|
|
|
6526
6526
|
if (this._item) {
|
|
6527
6527
|
return Promise.resolve(this._item);
|
|
6528
6528
|
}
|
|
6529
|
-
return fetchNgwLayerItem(__spreadValues$
|
|
6529
|
+
return fetchNgwLayerItem(__spreadValues$a({
|
|
6530
6530
|
connector: this.connector,
|
|
6531
6531
|
featureId: this.id,
|
|
6532
6532
|
resourceId: this.layerId,
|
|
@@ -6565,7 +6565,7 @@ var NgwMap = (function (exports) {
|
|
|
6565
6565
|
if (this._extent) {
|
|
6566
6566
|
return Promise.resolve(this._extent);
|
|
6567
6567
|
}
|
|
6568
|
-
return fetchNgwLayerItemExtent(__spreadValues$
|
|
6568
|
+
return fetchNgwLayerItemExtent(__spreadValues$a({
|
|
6569
6569
|
connector: this.connector,
|
|
6570
6570
|
featureId: this.id,
|
|
6571
6571
|
resourceId: this.layerId
|
|
@@ -6688,25 +6688,25 @@ var NgwMap = (function (exports) {
|
|
|
6688
6688
|
});
|
|
6689
6689
|
}
|
|
6690
6690
|
|
|
6691
|
-
var __defProp$
|
|
6692
|
-
var __defProps$
|
|
6693
|
-
var __getOwnPropDescs$
|
|
6694
|
-
var __getOwnPropSymbols$
|
|
6695
|
-
var __hasOwnProp$
|
|
6696
|
-
var __propIsEnum$
|
|
6697
|
-
var __defNormalProp$
|
|
6698
|
-
var __spreadValues$
|
|
6691
|
+
var __defProp$h = Object.defineProperty;
|
|
6692
|
+
var __defProps$6 = Object.defineProperties;
|
|
6693
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
6694
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
6695
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
6696
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
6697
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6698
|
+
var __spreadValues$9 = (a, b) => {
|
|
6699
6699
|
for (var prop in b || (b = {}))
|
|
6700
|
-
if (__hasOwnProp$
|
|
6701
|
-
__defNormalProp$
|
|
6702
|
-
if (__getOwnPropSymbols$
|
|
6703
|
-
for (var prop of __getOwnPropSymbols$
|
|
6704
|
-
if (__propIsEnum$
|
|
6705
|
-
__defNormalProp$
|
|
6700
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
6701
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
6702
|
+
if (__getOwnPropSymbols$a)
|
|
6703
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
6704
|
+
if (__propIsEnum$a.call(b, prop))
|
|
6705
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
6706
6706
|
}
|
|
6707
6707
|
return a;
|
|
6708
6708
|
};
|
|
6709
|
-
var __spreadProps$
|
|
6709
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
6710
6710
|
function getIdentifyItems(identify, multiple = false) {
|
|
6711
6711
|
const resources = [];
|
|
6712
6712
|
const paramsList = [];
|
|
@@ -6769,7 +6769,7 @@ var NgwMap = (function (exports) {
|
|
|
6769
6769
|
if (withGeom && withGeom.geom) {
|
|
6770
6770
|
const geom = withGeom.geom;
|
|
6771
6771
|
return Promise.resolve(
|
|
6772
|
-
createGeoJsonFeature(__spreadProps$
|
|
6772
|
+
createGeoJsonFeature(__spreadProps$6(__spreadValues$9({}, withGeom), {
|
|
6773
6773
|
geom
|
|
6774
6774
|
}))
|
|
6775
6775
|
);
|
|
@@ -6779,7 +6779,7 @@ var NgwMap = (function (exports) {
|
|
|
6779
6779
|
}
|
|
6780
6780
|
const params = getIdentifyItems(identify);
|
|
6781
6781
|
if (params && params.length) {
|
|
6782
|
-
return fetchNgwLayerFeature(__spreadValues$
|
|
6782
|
+
return fetchNgwLayerFeature(__spreadValues$9(__spreadProps$6(__spreadValues$9({}, requestOptions), { connector }), params[0]));
|
|
6783
6783
|
}
|
|
6784
6784
|
return Promise.resolve(void 0);
|
|
6785
6785
|
}
|
|
@@ -6787,7 +6787,7 @@ var NgwMap = (function (exports) {
|
|
|
6787
6787
|
const { connector, identify } = options;
|
|
6788
6788
|
const params = getIdentifyItems(identify);
|
|
6789
6789
|
if (params && params.length) {
|
|
6790
|
-
return fetchNgwLayerItem(__spreadValues$
|
|
6790
|
+
return fetchNgwLayerItem(__spreadValues$9(__spreadValues$9({
|
|
6791
6791
|
connector
|
|
6792
6792
|
}, options.requestOptions), params[0]));
|
|
6793
6793
|
}
|
|
@@ -6837,7 +6837,7 @@ var NgwMap = (function (exports) {
|
|
|
6837
6837
|
const [lng, lat] = ev.lngLat;
|
|
6838
6838
|
const { geom, radius } = options;
|
|
6839
6839
|
const geom_ = geom != null ? geom : getCirclePolygonCoordinates(lng, lat, radius);
|
|
6840
|
-
return featureLayerIdentify(__spreadProps$
|
|
6840
|
+
return featureLayerIdentify(__spreadProps$6(__spreadValues$9({}, options), { geom: geom_ }));
|
|
6841
6841
|
}
|
|
6842
6842
|
function createIdentifyItem(opt) {
|
|
6843
6843
|
return new IdentifyItem(opt);
|
|
@@ -7595,19 +7595,19 @@ var NgwMap = (function (exports) {
|
|
|
7595
7595
|
typeof: evaluateArgs(([arg]) => typeOfValue(arg))
|
|
7596
7596
|
};
|
|
7597
7597
|
|
|
7598
|
-
var __defProp$
|
|
7599
|
-
var __getOwnPropSymbols$
|
|
7600
|
-
var __hasOwnProp$
|
|
7601
|
-
var __propIsEnum$
|
|
7602
|
-
var __defNormalProp$
|
|
7603
|
-
var __spreadValues$
|
|
7598
|
+
var __defProp$g = Object.defineProperty;
|
|
7599
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
7600
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
7601
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
7602
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7603
|
+
var __spreadValues$8 = (a, b) => {
|
|
7604
7604
|
for (var prop in b || (b = {}))
|
|
7605
|
-
if (__hasOwnProp$
|
|
7606
|
-
__defNormalProp$
|
|
7607
|
-
if (__getOwnPropSymbols$
|
|
7608
|
-
for (var prop of __getOwnPropSymbols$
|
|
7609
|
-
if (__propIsEnum$
|
|
7610
|
-
__defNormalProp$
|
|
7605
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
7606
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
7607
|
+
if (__getOwnPropSymbols$9)
|
|
7608
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
7609
|
+
if (__propIsEnum$9.call(b, prop))
|
|
7610
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
7611
7611
|
}
|
|
7612
7612
|
return a;
|
|
7613
7613
|
};
|
|
@@ -7619,7 +7619,7 @@ var NgwMap = (function (exports) {
|
|
|
7619
7619
|
}
|
|
7620
7620
|
return false;
|
|
7621
7621
|
}
|
|
7622
|
-
const expressions = __spreadValues$
|
|
7622
|
+
const expressions = __spreadValues$8(__spreadValues$8(__spreadValues$8(__spreadValues$8(__spreadValues$8(__spreadValues$8({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
|
|
7623
7623
|
function evaluate(expression, data = {}) {
|
|
7624
7624
|
const [name, ...args] = expression;
|
|
7625
7625
|
const expressionFun = expressions[name];
|
|
@@ -7632,19 +7632,19 @@ var NgwMap = (function (exports) {
|
|
|
7632
7632
|
throw new Error(`Expression "${name}" is not supported.`);
|
|
7633
7633
|
}
|
|
7634
7634
|
|
|
7635
|
-
var __defProp$
|
|
7636
|
-
var __getOwnPropSymbols$
|
|
7637
|
-
var __hasOwnProp$
|
|
7638
|
-
var __propIsEnum$
|
|
7639
|
-
var __defNormalProp$
|
|
7640
|
-
var __spreadValues$
|
|
7635
|
+
var __defProp$f = Object.defineProperty;
|
|
7636
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
7637
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
7638
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
7639
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7640
|
+
var __spreadValues$7 = (a, b) => {
|
|
7641
7641
|
for (var prop in b || (b = {}))
|
|
7642
|
-
if (__hasOwnProp$
|
|
7643
|
-
__defNormalProp$
|
|
7644
|
-
if (__getOwnPropSymbols$
|
|
7645
|
-
for (var prop of __getOwnPropSymbols$
|
|
7646
|
-
if (__propIsEnum$
|
|
7647
|
-
__defNormalProp$
|
|
7642
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
7643
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
7644
|
+
if (__getOwnPropSymbols$8)
|
|
7645
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
7646
|
+
if (__propIsEnum$8.call(b, prop))
|
|
7647
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
7648
7648
|
}
|
|
7649
7649
|
return a;
|
|
7650
7650
|
};
|
|
@@ -7677,7 +7677,7 @@ var NgwMap = (function (exports) {
|
|
|
7677
7677
|
for (const p in expressions) {
|
|
7678
7678
|
fromCb[p] = expressions[p](feature);
|
|
7679
7679
|
}
|
|
7680
|
-
return __spreadValues$
|
|
7680
|
+
return __spreadValues$7(__spreadValues$7({}, paint), fromCb);
|
|
7681
7681
|
};
|
|
7682
7682
|
}
|
|
7683
7683
|
return;
|
|
@@ -7702,19 +7702,19 @@ var NgwMap = (function (exports) {
|
|
|
7702
7702
|
return false;
|
|
7703
7703
|
}
|
|
7704
7704
|
|
|
7705
|
-
var __defProp$
|
|
7706
|
-
var __getOwnPropSymbols$
|
|
7707
|
-
var __hasOwnProp$
|
|
7708
|
-
var __propIsEnum$
|
|
7709
|
-
var __defNormalProp$
|
|
7710
|
-
var __spreadValues$
|
|
7705
|
+
var __defProp$e = Object.defineProperty;
|
|
7706
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
7707
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
7708
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
7709
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7710
|
+
var __spreadValues$6 = (a, b) => {
|
|
7711
7711
|
for (var prop in b || (b = {}))
|
|
7712
|
-
if (__hasOwnProp$
|
|
7713
|
-
__defNormalProp$
|
|
7714
|
-
if (__getOwnPropSymbols$
|
|
7715
|
-
for (var prop of __getOwnPropSymbols$
|
|
7716
|
-
if (__propIsEnum$
|
|
7717
|
-
__defNormalProp$
|
|
7712
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
7713
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7714
|
+
if (__getOwnPropSymbols$7)
|
|
7715
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
7716
|
+
if (__propIsEnum$7.call(b, prop))
|
|
7717
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7718
7718
|
}
|
|
7719
7719
|
return a;
|
|
7720
7720
|
};
|
|
@@ -7743,7 +7743,7 @@ var NgwMap = (function (exports) {
|
|
|
7743
7743
|
return (feature) => {
|
|
7744
7744
|
const paint = paintsFilters.find((x) => featureFilter(feature, x[0]));
|
|
7745
7745
|
if (paint) {
|
|
7746
|
-
return __spreadValues$
|
|
7746
|
+
return __spreadValues$6(__spreadValues$6({}, mask), paint[1]);
|
|
7747
7747
|
}
|
|
7748
7748
|
return mask;
|
|
7749
7749
|
};
|
|
@@ -7767,8 +7767,8 @@ var NgwMap = (function (exports) {
|
|
|
7767
7767
|
}
|
|
7768
7768
|
function finalizePaint({ paint, defaultPaint }) {
|
|
7769
7769
|
var _a;
|
|
7770
|
-
let newPaint = __spreadValues$
|
|
7771
|
-
newPaint = __spreadValues$
|
|
7770
|
+
let newPaint = __spreadValues$6({}, defaultPaint);
|
|
7771
|
+
newPaint = __spreadValues$6(__spreadValues$6({}, newPaint), paint);
|
|
7772
7772
|
newPaint.fill = (_a = newPaint.fill) != null ? _a : true;
|
|
7773
7773
|
newPaint.stroke = newPaint.stroke !== void 0 ? newPaint.stroke : !newPaint.fill || !!(newPaint.strokeColor || newPaint.strokeOpacity);
|
|
7774
7774
|
return newPaint;
|
|
@@ -7781,7 +7781,7 @@ var NgwMap = (function (exports) {
|
|
|
7781
7781
|
if (!paint) {
|
|
7782
7782
|
throw new Error("paint is empty");
|
|
7783
7783
|
}
|
|
7784
|
-
let newPaint = __spreadValues$
|
|
7784
|
+
let newPaint = __spreadValues$6({}, defaultPaint);
|
|
7785
7785
|
if (isPaintCallback(paint)) {
|
|
7786
7786
|
const getPaintFunction = (feature) => {
|
|
7787
7787
|
const getPaint = preparePaint({
|
|
@@ -7838,6 +7838,63 @@ var NgwMap = (function (exports) {
|
|
|
7838
7838
|
return newPaint;
|
|
7839
7839
|
}
|
|
7840
7840
|
|
|
7841
|
+
var __defProp$d = Object.defineProperty;
|
|
7842
|
+
var __defProps$5 = Object.defineProperties;
|
|
7843
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
7844
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
7845
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
7846
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
7847
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7848
|
+
var __spreadValues$5 = (a, b) => {
|
|
7849
|
+
for (var prop in b || (b = {}))
|
|
7850
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
7851
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
7852
|
+
if (__getOwnPropSymbols$6)
|
|
7853
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
7854
|
+
if (__propIsEnum$6.call(b, prop))
|
|
7855
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
7856
|
+
}
|
|
7857
|
+
return a;
|
|
7858
|
+
};
|
|
7859
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
7860
|
+
function hasHeaders(headers) {
|
|
7861
|
+
return !!headers && Object.keys(headers).length > 0;
|
|
7862
|
+
}
|
|
7863
|
+
function normalizeLayerRequestOptions(request) {
|
|
7864
|
+
if (!request) {
|
|
7865
|
+
return void 0;
|
|
7866
|
+
}
|
|
7867
|
+
const normalized = __spreadValues$5({}, request);
|
|
7868
|
+
return hasLayerRequestOptions(normalized) ? normalized : void 0;
|
|
7869
|
+
}
|
|
7870
|
+
function getLayerRequestOptions(options) {
|
|
7871
|
+
const request = options == null ? void 0 : options.request;
|
|
7872
|
+
const headers = __spreadValues$5(__spreadValues$5({}, (options == null ? void 0 : options.headers) || {}), (request == null ? void 0 : request.headers) || {});
|
|
7873
|
+
const result = {};
|
|
7874
|
+
if (hasHeaders(headers)) {
|
|
7875
|
+
result.headers = headers;
|
|
7876
|
+
}
|
|
7877
|
+
if (options == null ? void 0 : options.withCredentials) {
|
|
7878
|
+
result.credentials = "include";
|
|
7879
|
+
}
|
|
7880
|
+
if ((request == null ? void 0 : request.credentials) !== void 0) {
|
|
7881
|
+
result.credentials = request.credentials;
|
|
7882
|
+
}
|
|
7883
|
+
if ((request == null ? void 0 : request.cache) !== void 0) {
|
|
7884
|
+
result.cache = request.cache;
|
|
7885
|
+
}
|
|
7886
|
+
return normalizeLayerRequestOptions(result);
|
|
7887
|
+
}
|
|
7888
|
+
function applyLayerRequestOptions(options) {
|
|
7889
|
+
const request = getLayerRequestOptions(options);
|
|
7890
|
+
return __spreadProps$5(__spreadValues$5({}, options), {
|
|
7891
|
+
request
|
|
7892
|
+
});
|
|
7893
|
+
}
|
|
7894
|
+
function hasLayerRequestOptions(request) {
|
|
7895
|
+
return !!(request && (hasHeaders(request.headers) || request.credentials !== void 0 || request.cache !== void 0 && request.cache !== "default"));
|
|
7896
|
+
}
|
|
7897
|
+
|
|
7841
7898
|
function findMostFrequentGeomType(arr) {
|
|
7842
7899
|
const counts = {};
|
|
7843
7900
|
for (let fry = 0; fry < arr.length; fry++) {
|
|
@@ -8907,6 +8964,9 @@ var NgwMap = (function (exports) {
|
|
|
8907
8964
|
}
|
|
8908
8965
|
}
|
|
8909
8966
|
}
|
|
8967
|
+
options = __spreadProps$4(__spreadValues$4({}, options), {
|
|
8968
|
+
request: this._getLayerRequestOptions(options)
|
|
8969
|
+
});
|
|
8910
8970
|
if (adapterEngine !== void 0) {
|
|
8911
8971
|
const _adapter = new adapterEngine(this.mapAdapter.map, options);
|
|
8912
8972
|
_adapter.options = __spreadValues$4(__spreadValues$4({}, options), _adapter.options);
|
|
@@ -9473,9 +9533,27 @@ var NgwMap = (function (exports) {
|
|
|
9473
9533
|
maxZoom: tileJson.maxzoom,
|
|
9474
9534
|
minZoom: tileJson.minzoom,
|
|
9475
9535
|
subdomains: tileJson.scheme,
|
|
9476
|
-
attribution: tileJson.attribution
|
|
9536
|
+
attribution: tileJson.attribution,
|
|
9537
|
+
request: tileJson.request
|
|
9477
9538
|
});
|
|
9478
9539
|
}
|
|
9540
|
+
/**
|
|
9541
|
+
* Merges global and per-layer request options while preserving backward
|
|
9542
|
+
* compatibility for deprecated `headers` and `withCredentials` options.
|
|
9543
|
+
* The returned value is normalized so adapters receive only meaningful
|
|
9544
|
+
* request options.
|
|
9545
|
+
*/
|
|
9546
|
+
_getLayerRequestOptions(options) {
|
|
9547
|
+
var _a, _b, _c, _d;
|
|
9548
|
+
const defaultRequest = normalizeLayerRequestOptions(
|
|
9549
|
+
this.options.layerRequest
|
|
9550
|
+
);
|
|
9551
|
+
const layerRequest = getLayerRequestOptions(options);
|
|
9552
|
+
const headers = __spreadValues$4(__spreadValues$4({}, (defaultRequest == null ? void 0 : defaultRequest.headers) || {}), (layerRequest == null ? void 0 : layerRequest.headers) || {});
|
|
9553
|
+
const credentials = options.withCredentials === false && ((_a = options.request) == null ? void 0 : _a.credentials) === void 0 && (defaultRequest == null ? void 0 : defaultRequest.credentials) !== void 0 ? "same-origin" : (_b = layerRequest == null ? void 0 : layerRequest.credentials) != null ? _b : defaultRequest == null ? void 0 : defaultRequest.credentials;
|
|
9554
|
+
const cache = ((_c = options.request) == null ? void 0 : _c.cache) !== void 0 ? options.request.cache : (_d = layerRequest == null ? void 0 : layerRequest.cache) != null ? _d : defaultRequest == null ? void 0 : defaultRequest.cache;
|
|
9555
|
+
return normalizeLayerRequestOptions(__spreadValues$4(__spreadValues$4(__spreadValues$4(__spreadValues$4(__spreadValues$4({}, defaultRequest), layerRequest), Object.keys(headers).length ? { headers } : {}), credentials !== void 0 ? { credentials } : {}), cache !== void 0 ? { cache } : {}));
|
|
9556
|
+
}
|
|
9479
9557
|
/** @internal */
|
|
9480
9558
|
_emitLayerEvent(name, id, options) {
|
|
9481
9559
|
const name_ = String(name);
|
|
@@ -10764,13 +10842,16 @@ var NgwMap = (function (exports) {
|
|
|
10764
10842
|
exports.WebMapControls = WebMapControls;
|
|
10765
10843
|
exports.WebMapLayers = WebMapLayers;
|
|
10766
10844
|
exports.WebMapMain = WebMapMain;
|
|
10845
|
+
exports.applyLayerRequestOptions = applyLayerRequestOptions;
|
|
10767
10846
|
exports.createNgwMap = createNgwMap;
|
|
10768
10847
|
exports.createToggleControl = createToggleControl;
|
|
10769
10848
|
exports.createWebMap = createWebMap;
|
|
10770
10849
|
exports.detectGeometryType = detectGeometryType;
|
|
10771
10850
|
exports.findMostFrequentGeomType = findMostFrequentGeomType;
|
|
10772
10851
|
exports.getDefaultControls = getDefaultControls;
|
|
10852
|
+
exports.getLayerRequestOptions = getLayerRequestOptions;
|
|
10773
10853
|
exports.getWebMap = getWebMap;
|
|
10854
|
+
exports.normalizeLayerRequestOptions = normalizeLayerRequestOptions;
|
|
10774
10855
|
exports.paintTypeAlias = paintTypeAlias;
|
|
10775
10856
|
exports.setWebMap = setWebMap;
|
|
10776
10857
|
exports.typeAlias = typeAlias;
|