@nextgis/ngw-map 3.1.0 → 4.0.0-alpha.0
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/index.d.ts +3 -3
- package/lib/ngw-map.cjs.js +1 -1
- package/lib/ngw-map.cjs.js.map +1 -1
- package/lib/ngw-map.cjs.prod.js.map +1 -1
- package/lib/ngw-map.esm-browser.js +738 -703
- 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.esm-bundler.js.map +1 -1
- package/lib/ngw-map.esm-bundler.prod.js.map +1 -1
- package/lib/ngw-map.global.js +738 -703
- 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 +5 -5
package/lib/ngw-map.global.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-map; version:
|
|
1
|
+
/** Bundle of @nextgis/ngw-map; version: 4.0.0-alpha.0; 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$S = Object.defineProperty;
|
|
386
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
|
387
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
|
388
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
|
389
|
+
var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
390
|
+
var __spreadValues$z = (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$A.call(b, prop))
|
|
393
|
+
__defNormalProp$S(a, prop, b[prop]);
|
|
394
|
+
if (__getOwnPropSymbols$A)
|
|
395
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
|
396
|
+
if (__propIsEnum$A.call(b, prop))
|
|
397
|
+
__defNormalProp$S(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$z({
|
|
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$R = Object.defineProperty;
|
|
473
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
474
|
+
var __publicField$A = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
475
475
|
const _Cache = class _Cache {
|
|
476
476
|
constructor(options = {}) {
|
|
477
477
|
__publicField$A(this, "cache", []);
|
|
@@ -638,7 +638,9 @@ var NgwMap = (function (exports) {
|
|
|
638
638
|
this.domain = null;
|
|
639
639
|
if (EventEmitter.usingDomains) {
|
|
640
640
|
// if there is an active domain, then attach to it.
|
|
641
|
-
if (domain.active)
|
|
641
|
+
if (domain.active && !(this instanceof domain.Domain)) {
|
|
642
|
+
this.domain = domain.active;
|
|
643
|
+
}
|
|
642
644
|
}
|
|
643
645
|
|
|
644
646
|
if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
|
|
@@ -1081,63 +1083,7 @@ var NgwMap = (function (exports) {
|
|
|
1081
1083
|
}
|
|
1082
1084
|
|
|
1083
1085
|
var pkg = {
|
|
1084
|
-
|
|
1085
|
-
version: "3.0.1",
|
|
1086
|
-
_priority: 12,
|
|
1087
|
-
description: "A lightweight HTTP client optimized for use with NextGIS Web API",
|
|
1088
|
-
main: "index.js",
|
|
1089
|
-
module: "lib/ngw-connector.esm-bundler.js",
|
|
1090
|
-
unpkg: "lib/ngw-connector.global.prod.js",
|
|
1091
|
-
jsdelivr: "lib/ngw-connector.global.prod.js",
|
|
1092
|
-
types: "lib/index.d.ts",
|
|
1093
|
-
dependencies: {
|
|
1094
|
-
"@nextgis/cache": "3.0.0",
|
|
1095
|
-
"@nextgis/cancelable-promise": "3.0.0",
|
|
1096
|
-
"@nextgis/utils": "3.0.0",
|
|
1097
|
-
"@types/events": "^3.0.0",
|
|
1098
|
-
events: "*",
|
|
1099
|
-
"form-data": "^4.0.0"
|
|
1100
|
-
},
|
|
1101
|
-
devDependencies: {
|
|
1102
|
-
"@nextgis/build-tools": "3.0.0"
|
|
1103
|
-
},
|
|
1104
|
-
scripts: {
|
|
1105
|
-
clean: "rimraf ./lib",
|
|
1106
|
-
dev: "node ../build-tools/lib/build.js",
|
|
1107
|
-
prod: "npm run dev -- --release",
|
|
1108
|
-
lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
|
|
1109
|
-
watch: "npm run dev -- --watch",
|
|
1110
|
-
"gen:types": "node ./scripts/generator"
|
|
1111
|
-
},
|
|
1112
|
-
buildOptions: {
|
|
1113
|
-
name: "NgwConnector",
|
|
1114
|
-
formats: [
|
|
1115
|
-
"esm-bundler",
|
|
1116
|
-
"esm-browser",
|
|
1117
|
-
"cjs",
|
|
1118
|
-
"global"
|
|
1119
|
-
]
|
|
1120
|
-
},
|
|
1121
|
-
keywords: [
|
|
1122
|
-
"NextGIS",
|
|
1123
|
-
"MAP"
|
|
1124
|
-
],
|
|
1125
|
-
author: "NextGIS",
|
|
1126
|
-
files: [
|
|
1127
|
-
"index.js",
|
|
1128
|
-
"lib"
|
|
1129
|
-
],
|
|
1130
|
-
license: "MIT",
|
|
1131
|
-
homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
|
|
1132
|
-
repository: {
|
|
1133
|
-
type: "git",
|
|
1134
|
-
url: "git://github.com/nextgis/nextgis_frontend.git"
|
|
1135
|
-
},
|
|
1136
|
-
engines: {
|
|
1137
|
-
node: ">=18.20.4"
|
|
1138
|
-
},
|
|
1139
|
-
gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
|
|
1140
|
-
};
|
|
1086
|
+
version: "3.0.1"};
|
|
1141
1087
|
|
|
1142
1088
|
class AbortError extends Error {
|
|
1143
1089
|
constructor(message = "AbortError") {
|
|
@@ -1146,9 +1092,9 @@ var NgwMap = (function (exports) {
|
|
|
1146
1092
|
}
|
|
1147
1093
|
}
|
|
1148
1094
|
|
|
1149
|
-
var __defProp$
|
|
1150
|
-
var __defNormalProp$
|
|
1151
|
-
var __publicField$z = (obj, key, value) => __defNormalProp$
|
|
1095
|
+
var __defProp$Q = Object.defineProperty;
|
|
1096
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1097
|
+
var __publicField$z = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1152
1098
|
class NgwError extends Error {
|
|
1153
1099
|
constructor(er) {
|
|
1154
1100
|
super();
|
|
@@ -1165,9 +1111,9 @@ var NgwMap = (function (exports) {
|
|
|
1165
1111
|
}
|
|
1166
1112
|
}
|
|
1167
1113
|
|
|
1168
|
-
var __defProp$
|
|
1169
|
-
var __defNormalProp$
|
|
1170
|
-
var __publicField$y = (obj, key, value) => __defNormalProp$
|
|
1114
|
+
var __defProp$P = Object.defineProperty;
|
|
1115
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1116
|
+
var __publicField$y = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1171
1117
|
class InsufficientPermissionsError extends NgwError {
|
|
1172
1118
|
constructor(obj) {
|
|
1173
1119
|
super(obj);
|
|
@@ -1177,9 +1123,9 @@ var NgwMap = (function (exports) {
|
|
|
1177
1123
|
}
|
|
1178
1124
|
}
|
|
1179
1125
|
|
|
1180
|
-
var __defProp$
|
|
1181
|
-
var __defNormalProp$
|
|
1182
|
-
var __publicField$x = (obj, key, value) => __defNormalProp$
|
|
1126
|
+
var __defProp$O = Object.defineProperty;
|
|
1127
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1128
|
+
var __publicField$x = (obj, key, value) => __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1183
1129
|
let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
|
|
1184
1130
|
constructor(obj) {
|
|
1185
1131
|
super(obj);
|
|
@@ -1222,9 +1168,9 @@ var NgwMap = (function (exports) {
|
|
|
1222
1168
|
return false;
|
|
1223
1169
|
}
|
|
1224
1170
|
|
|
1225
|
-
var __defProp$
|
|
1226
|
-
var __defNormalProp$
|
|
1227
|
-
var __publicField$w = (obj, key, value) => __defNormalProp$
|
|
1171
|
+
var __defProp$N = Object.defineProperty;
|
|
1172
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1173
|
+
var __publicField$w = (obj, key, value) => __defNormalProp$N(obj, key + "" , value);
|
|
1228
1174
|
class NetworkError extends Error {
|
|
1229
1175
|
constructor(url) {
|
|
1230
1176
|
super();
|
|
@@ -1235,9 +1181,9 @@ var NgwMap = (function (exports) {
|
|
|
1235
1181
|
}
|
|
1236
1182
|
}
|
|
1237
1183
|
|
|
1238
|
-
var __defProp$
|
|
1239
|
-
var __defNormalProp$
|
|
1240
|
-
var __publicField$v = (obj, key, value) => __defNormalProp$
|
|
1184
|
+
var __defProp$M = Object.defineProperty;
|
|
1185
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1186
|
+
var __publicField$v = (obj, key, value) => __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1241
1187
|
class ResourceNotFoundError extends NgwError {
|
|
1242
1188
|
constructor(obj) {
|
|
1243
1189
|
super(obj);
|
|
@@ -1259,9 +1205,9 @@ var NgwMap = (function (exports) {
|
|
|
1259
1205
|
isError: isError
|
|
1260
1206
|
});
|
|
1261
1207
|
|
|
1262
|
-
var __defProp$
|
|
1263
|
-
var __defNormalProp$
|
|
1264
|
-
var __publicField$u = (obj, key, value) => __defNormalProp$
|
|
1208
|
+
var __defProp$L = Object.defineProperty;
|
|
1209
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1210
|
+
var __publicField$u = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1265
1211
|
class BaseAPIError extends Error {
|
|
1266
1212
|
constructor(message) {
|
|
1267
1213
|
super(message || "Something went wrong.");
|
|
@@ -1323,30 +1269,30 @@ var NgwMap = (function (exports) {
|
|
|
1323
1269
|
}
|
|
1324
1270
|
}
|
|
1325
1271
|
|
|
1326
|
-
var __defProp$
|
|
1327
|
-
var __getOwnPropSymbols$
|
|
1328
|
-
var __hasOwnProp$
|
|
1329
|
-
var __propIsEnum$
|
|
1330
|
-
var __defNormalProp$
|
|
1331
|
-
var __spreadValues$
|
|
1272
|
+
var __defProp$K = Object.defineProperty;
|
|
1273
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
|
1274
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
|
1275
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
|
1276
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1277
|
+
var __spreadValues$y = (a, b) => {
|
|
1332
1278
|
for (var prop in b || (b = {}))
|
|
1333
|
-
if (__hasOwnProp$
|
|
1334
|
-
__defNormalProp$
|
|
1335
|
-
if (__getOwnPropSymbols$
|
|
1336
|
-
for (var prop of __getOwnPropSymbols$
|
|
1337
|
-
if (__propIsEnum$
|
|
1338
|
-
__defNormalProp$
|
|
1279
|
+
if (__hasOwnProp$z.call(b, prop))
|
|
1280
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1281
|
+
if (__getOwnPropSymbols$z)
|
|
1282
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
|
1283
|
+
if (__propIsEnum$z.call(b, prop))
|
|
1284
|
+
__defNormalProp$K(a, prop, b[prop]);
|
|
1339
1285
|
}
|
|
1340
1286
|
return a;
|
|
1341
1287
|
};
|
|
1342
|
-
var __objRest$
|
|
1288
|
+
var __objRest$7 = (source, exclude) => {
|
|
1343
1289
|
var target = {};
|
|
1344
1290
|
for (var prop in source)
|
|
1345
|
-
if (__hasOwnProp$
|
|
1291
|
+
if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1346
1292
|
target[prop] = source[prop];
|
|
1347
|
-
if (source != null && __getOwnPropSymbols$
|
|
1348
|
-
for (var prop of __getOwnPropSymbols$
|
|
1349
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1293
|
+
if (source != null && __getOwnPropSymbols$z)
|
|
1294
|
+
for (var prop of __getOwnPropSymbols$z(source)) {
|
|
1295
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
|
|
1350
1296
|
target[prop] = source[prop];
|
|
1351
1297
|
}
|
|
1352
1298
|
return target;
|
|
@@ -1484,7 +1430,7 @@ var NgwMap = (function (exports) {
|
|
|
1484
1430
|
credentials: "same-origin",
|
|
1485
1431
|
headers: {}
|
|
1486
1432
|
};
|
|
1487
|
-
const _a = __spreadValues$
|
|
1433
|
+
const _a = __spreadValues$y(__spreadValues$y({}, defaults), options), {
|
|
1488
1434
|
withCredentials,
|
|
1489
1435
|
responseType,
|
|
1490
1436
|
cacheProps,
|
|
@@ -1493,7 +1439,7 @@ var NgwMap = (function (exports) {
|
|
|
1493
1439
|
cache,
|
|
1494
1440
|
query,
|
|
1495
1441
|
json
|
|
1496
|
-
} = _a, opt = __objRest$
|
|
1442
|
+
} = _a, opt = __objRest$7(_a, [
|
|
1497
1443
|
"withCredentials",
|
|
1498
1444
|
"responseType",
|
|
1499
1445
|
"cacheProps",
|
|
@@ -1564,7 +1510,7 @@ var NgwMap = (function (exports) {
|
|
|
1564
1510
|
if (cacheEngine) {
|
|
1565
1511
|
if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
|
|
1566
1512
|
if (cache !== false) {
|
|
1567
|
-
const props = cacheProps ? cacheProps : __spreadValues$
|
|
1513
|
+
const props = cacheProps ? cacheProps : __spreadValues$y({}, objectRemoveEmpty({
|
|
1568
1514
|
withCredentials,
|
|
1569
1515
|
responseType
|
|
1570
1516
|
}));
|
|
@@ -1584,33 +1530,33 @@ var NgwMap = (function (exports) {
|
|
|
1584
1530
|
});
|
|
1585
1531
|
}
|
|
1586
1532
|
|
|
1587
|
-
var __defProp$
|
|
1588
|
-
var __defProps$
|
|
1589
|
-
var __getOwnPropDescs$
|
|
1590
|
-
var __getOwnPropSymbols$
|
|
1591
|
-
var __hasOwnProp$
|
|
1592
|
-
var __propIsEnum$
|
|
1593
|
-
var __defNormalProp$
|
|
1594
|
-
var __spreadValues$
|
|
1533
|
+
var __defProp$J = Object.defineProperty;
|
|
1534
|
+
var __defProps$k = Object.defineProperties;
|
|
1535
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
|
1536
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
|
1537
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
|
1538
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
|
1539
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1540
|
+
var __spreadValues$x = (a, b) => {
|
|
1595
1541
|
for (var prop in b || (b = {}))
|
|
1596
|
-
if (__hasOwnProp$
|
|
1597
|
-
__defNormalProp$
|
|
1598
|
-
if (__getOwnPropSymbols$
|
|
1599
|
-
for (var prop of __getOwnPropSymbols$
|
|
1600
|
-
if (__propIsEnum$
|
|
1601
|
-
__defNormalProp$
|
|
1542
|
+
if (__hasOwnProp$y.call(b, prop))
|
|
1543
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1544
|
+
if (__getOwnPropSymbols$y)
|
|
1545
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
|
1546
|
+
if (__propIsEnum$y.call(b, prop))
|
|
1547
|
+
__defNormalProp$J(a, prop, b[prop]);
|
|
1602
1548
|
}
|
|
1603
1549
|
return a;
|
|
1604
1550
|
};
|
|
1605
|
-
var __spreadProps$
|
|
1606
|
-
var __objRest$
|
|
1551
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
|
1552
|
+
var __objRest$6 = (source, exclude) => {
|
|
1607
1553
|
var target = {};
|
|
1608
1554
|
for (var prop in source)
|
|
1609
|
-
if (__hasOwnProp$
|
|
1555
|
+
if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1610
1556
|
target[prop] = source[prop];
|
|
1611
|
-
if (source != null && __getOwnPropSymbols$
|
|
1612
|
-
for (var prop of __getOwnPropSymbols$
|
|
1613
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1557
|
+
if (source != null && __getOwnPropSymbols$y)
|
|
1558
|
+
for (var prop of __getOwnPropSymbols$y(source)) {
|
|
1559
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
|
|
1614
1560
|
target[prop] = source[prop];
|
|
1615
1561
|
}
|
|
1616
1562
|
return target;
|
|
@@ -1682,7 +1628,7 @@ var NgwMap = (function (exports) {
|
|
|
1682
1628
|
for (const method of methods) {
|
|
1683
1629
|
const methodResp = (requestOptions) => {
|
|
1684
1630
|
var _b;
|
|
1685
|
-
const _a = requestOptions || {}, { headers: optHeaders } = _a, restOpt = __objRest$
|
|
1631
|
+
const _a = requestOptions || {}, { headers: optHeaders } = _a, restOpt = __objRest$6(_a, ["headers"]);
|
|
1686
1632
|
if ((_b = requestOptions == null ? void 0 : requestOptions.signal) == null ? void 0 : _b.aborted) {
|
|
1687
1633
|
throw new AbortError();
|
|
1688
1634
|
}
|
|
@@ -1694,10 +1640,10 @@ var NgwMap = (function (exports) {
|
|
|
1694
1640
|
routeData,
|
|
1695
1641
|
...rest
|
|
1696
1642
|
);
|
|
1697
|
-
const headers = objectRemoveEmpty(__spreadValues$
|
|
1643
|
+
const headers = objectRemoveEmpty(__spreadValues$x(__spreadValues$x({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
|
|
1698
1644
|
return request(
|
|
1699
1645
|
template,
|
|
1700
|
-
__spreadProps$
|
|
1646
|
+
__spreadProps$k(__spreadValues$x({
|
|
1701
1647
|
headers
|
|
1702
1648
|
}, restOpt), {
|
|
1703
1649
|
method
|
|
@@ -1821,38 +1767,38 @@ var NgwMap = (function (exports) {
|
|
|
1821
1767
|
}
|
|
1822
1768
|
}
|
|
1823
1769
|
|
|
1824
|
-
var __defProp$
|
|
1825
|
-
var __defProps$
|
|
1826
|
-
var __getOwnPropDescs$
|
|
1827
|
-
var __getOwnPropSymbols$
|
|
1828
|
-
var __hasOwnProp$
|
|
1829
|
-
var __propIsEnum$
|
|
1830
|
-
var __defNormalProp$
|
|
1831
|
-
var __spreadValues$
|
|
1770
|
+
var __defProp$I = Object.defineProperty;
|
|
1771
|
+
var __defProps$j = Object.defineProperties;
|
|
1772
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
|
1773
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
|
1774
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
|
1775
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
|
1776
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
1777
|
+
var __spreadValues$w = (a, b) => {
|
|
1832
1778
|
for (var prop in b || (b = {}))
|
|
1833
|
-
if (__hasOwnProp$
|
|
1834
|
-
__defNormalProp$
|
|
1835
|
-
if (__getOwnPropSymbols$
|
|
1836
|
-
for (var prop of __getOwnPropSymbols$
|
|
1837
|
-
if (__propIsEnum$
|
|
1838
|
-
__defNormalProp$
|
|
1779
|
+
if (__hasOwnProp$x.call(b, prop))
|
|
1780
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1781
|
+
if (__getOwnPropSymbols$x)
|
|
1782
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
|
1783
|
+
if (__propIsEnum$x.call(b, prop))
|
|
1784
|
+
__defNormalProp$I(a, prop, b[prop]);
|
|
1839
1785
|
}
|
|
1840
1786
|
return a;
|
|
1841
1787
|
};
|
|
1842
|
-
var __spreadProps$
|
|
1843
|
-
var __objRest$
|
|
1788
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
|
1789
|
+
var __objRest$5 = (source, exclude) => {
|
|
1844
1790
|
var target = {};
|
|
1845
1791
|
for (var prop in source)
|
|
1846
|
-
if (__hasOwnProp$
|
|
1792
|
+
if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
1847
1793
|
target[prop] = source[prop];
|
|
1848
|
-
if (source != null && __getOwnPropSymbols$
|
|
1849
|
-
for (var prop of __getOwnPropSymbols$
|
|
1850
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
1794
|
+
if (source != null && __getOwnPropSymbols$x)
|
|
1795
|
+
for (var prop of __getOwnPropSymbols$x(source)) {
|
|
1796
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
|
|
1851
1797
|
target[prop] = source[prop];
|
|
1852
1798
|
}
|
|
1853
1799
|
return target;
|
|
1854
1800
|
};
|
|
1855
|
-
var __publicField$t = (obj, key, value) => __defNormalProp$
|
|
1801
|
+
var __publicField$t = (obj, key, value) => __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
1856
1802
|
var __async$t = (__this, __arguments, generator) => {
|
|
1857
1803
|
return new Promise((resolve, reject) => {
|
|
1858
1804
|
var fulfilled = (value) => {
|
|
@@ -1988,7 +1934,7 @@ var NgwMap = (function (exports) {
|
|
|
1988
1934
|
if (credentials) {
|
|
1989
1935
|
this.options.auth = credentials;
|
|
1990
1936
|
}
|
|
1991
|
-
const options_ = __spreadValues$
|
|
1937
|
+
const options_ = __spreadValues$w({
|
|
1992
1938
|
headers: this.getAuthorizationHeaders(credentials),
|
|
1993
1939
|
cache: true
|
|
1994
1940
|
}, options);
|
|
@@ -2029,7 +1975,7 @@ var NgwMap = (function (exports) {
|
|
|
2029
1975
|
this.activeRequests = {};
|
|
2030
1976
|
}
|
|
2031
1977
|
getActiveApiRequests() {
|
|
2032
|
-
return __spreadValues$
|
|
1978
|
+
return __spreadValues$w({}, this.activeRequests);
|
|
2033
1979
|
}
|
|
2034
1980
|
route(name, ...rest) {
|
|
2035
1981
|
return route(name, this, ...rest);
|
|
@@ -2048,11 +1994,11 @@ var NgwMap = (function (exports) {
|
|
|
2048
1994
|
throw new Error("Empty `url` not allowed");
|
|
2049
1995
|
}
|
|
2050
1996
|
if (params) {
|
|
2051
|
-
const _a = params, restParams = __objRest$
|
|
1997
|
+
const _a = params, { paramList } = _a, restParams = __objRest$5(_a, ["paramList"]);
|
|
2052
1998
|
url = template(url, restParams);
|
|
2053
1999
|
}
|
|
2054
2000
|
url = encodeURI(fixUrlStr(url));
|
|
2055
|
-
options = __spreadValues$
|
|
2001
|
+
options = __spreadValues$w({ withCredentials: this.withCredentials }, options);
|
|
2056
2002
|
const {
|
|
2057
2003
|
cache,
|
|
2058
2004
|
signal: externalSignal,
|
|
@@ -2084,7 +2030,7 @@ var NgwMap = (function (exports) {
|
|
|
2084
2030
|
}
|
|
2085
2031
|
});
|
|
2086
2032
|
if (method === "GET" && cache !== false) {
|
|
2087
|
-
const cacheOptions = cacheProps ? cacheProps : __spreadProps$
|
|
2033
|
+
const cacheOptions = cacheProps ? cacheProps : __spreadProps$j(__spreadValues$w({}, objectRemoveEmpty({
|
|
2088
2034
|
headers,
|
|
2089
2035
|
withCredentials,
|
|
2090
2036
|
responseType,
|
|
@@ -2107,7 +2053,7 @@ var NgwMap = (function (exports) {
|
|
|
2107
2053
|
var _a;
|
|
2108
2054
|
if (this.user) {
|
|
2109
2055
|
options = options || {};
|
|
2110
|
-
options.headers = __spreadValues$
|
|
2056
|
+
options.headers = __spreadValues$w(__spreadValues$w({}, this.getAuthorizationHeaders()), options.headers);
|
|
2111
2057
|
}
|
|
2112
2058
|
if (this.requestTransform) {
|
|
2113
2059
|
const [transUrl, transOptions] = this.requestTransform(url, options);
|
|
@@ -2196,26 +2142,26 @@ var NgwMap = (function (exports) {
|
|
|
2196
2142
|
return query;
|
|
2197
2143
|
}
|
|
2198
2144
|
|
|
2199
|
-
var __defProp$
|
|
2200
|
-
var __defProps$
|
|
2201
|
-
var __getOwnPropDescs$
|
|
2202
|
-
var __getOwnPropSymbols$
|
|
2203
|
-
var __hasOwnProp$
|
|
2204
|
-
var __propIsEnum$
|
|
2205
|
-
var __defNormalProp$
|
|
2206
|
-
var __spreadValues$
|
|
2145
|
+
var __defProp$H = Object.defineProperty;
|
|
2146
|
+
var __defProps$i = Object.defineProperties;
|
|
2147
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
|
2148
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
|
2149
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
|
2150
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
|
2151
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2152
|
+
var __spreadValues$v = (a, b) => {
|
|
2207
2153
|
for (var prop in b || (b = {}))
|
|
2208
|
-
if (__hasOwnProp$
|
|
2209
|
-
__defNormalProp$
|
|
2210
|
-
if (__getOwnPropSymbols$
|
|
2211
|
-
for (var prop of __getOwnPropSymbols$
|
|
2212
|
-
if (__propIsEnum$
|
|
2213
|
-
__defNormalProp$
|
|
2154
|
+
if (__hasOwnProp$w.call(b, prop))
|
|
2155
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
2156
|
+
if (__getOwnPropSymbols$w)
|
|
2157
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
|
2158
|
+
if (__propIsEnum$w.call(b, prop))
|
|
2159
|
+
__defNormalProp$H(a, prop, b[prop]);
|
|
2214
2160
|
}
|
|
2215
2161
|
return a;
|
|
2216
2162
|
};
|
|
2217
|
-
var __spreadProps$
|
|
2218
|
-
var __publicField$s = (obj, key, value) => __defNormalProp$
|
|
2163
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
|
2164
|
+
var __publicField$s = (obj, key, value) => __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2219
2165
|
var __async$s = (__this, __arguments, generator) => {
|
|
2220
2166
|
return new Promise((resolve, reject) => {
|
|
2221
2167
|
var fulfilled = (value) => {
|
|
@@ -2257,7 +2203,7 @@ var NgwMap = (function (exports) {
|
|
|
2257
2203
|
* Fetching resource would be cached to speed up next call
|
|
2258
2204
|
*/
|
|
2259
2205
|
getOne(resource, requestOptions) {
|
|
2260
|
-
const opt = __spreadValues$
|
|
2206
|
+
const opt = __spreadValues$v({}, requestOptions);
|
|
2261
2207
|
if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
|
|
2262
2208
|
if (resource.id !== void 0) {
|
|
2263
2209
|
resource.id;
|
|
@@ -2334,8 +2280,8 @@ var NgwMap = (function (exports) {
|
|
|
2334
2280
|
} else {
|
|
2335
2281
|
Object.assign(query, resourceToQuery(resource));
|
|
2336
2282
|
}
|
|
2337
|
-
return this.connector.route("resource.search").get(__spreadProps$
|
|
2338
|
-
query: __spreadValues$
|
|
2283
|
+
return this.connector.route("resource.search").get(__spreadProps$i(__spreadValues$v({}, requestOptions), {
|
|
2284
|
+
query: __spreadValues$v({
|
|
2339
2285
|
serialization: "full"
|
|
2340
2286
|
}, query)
|
|
2341
2287
|
})).then((resources) => {
|
|
@@ -2397,7 +2343,7 @@ var NgwMap = (function (exports) {
|
|
|
2397
2343
|
} else {
|
|
2398
2344
|
parent = parentDef;
|
|
2399
2345
|
}
|
|
2400
|
-
const items = yield this.connector.route("resource.collection").get(__spreadProps$
|
|
2346
|
+
const items = yield this.connector.route("resource.collection").get(__spreadProps$i(__spreadValues$v({}, requestOptions), {
|
|
2401
2347
|
query: {
|
|
2402
2348
|
parent
|
|
2403
2349
|
}
|
|
@@ -2478,9 +2424,9 @@ var NgwMap = (function (exports) {
|
|
|
2478
2424
|
}
|
|
2479
2425
|
}
|
|
2480
2426
|
|
|
2481
|
-
var __defProp$
|
|
2482
|
-
var __defNormalProp$
|
|
2483
|
-
var __publicField$r = (obj, key, value) => __defNormalProp$
|
|
2427
|
+
var __defProp$G = Object.defineProperty;
|
|
2428
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2429
|
+
var __publicField$r = (obj, key, value) => __defNormalProp$G(obj, key + "" , value);
|
|
2484
2430
|
class NgwConnectorExtended extends NgwConnector {
|
|
2485
2431
|
constructor(options) {
|
|
2486
2432
|
super(options);
|
|
@@ -2694,25 +2640,25 @@ var NgwMap = (function (exports) {
|
|
|
2694
2640
|
}
|
|
2695
2641
|
}
|
|
2696
2642
|
|
|
2697
|
-
var __defProp$
|
|
2698
|
-
var __defProps$
|
|
2699
|
-
var __getOwnPropDescs$
|
|
2700
|
-
var __getOwnPropSymbols$
|
|
2701
|
-
var __hasOwnProp$
|
|
2702
|
-
var __propIsEnum$
|
|
2703
|
-
var __defNormalProp$
|
|
2704
|
-
var __spreadValues$
|
|
2643
|
+
var __defProp$F = Object.defineProperty;
|
|
2644
|
+
var __defProps$h = Object.defineProperties;
|
|
2645
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
|
2646
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
|
2647
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
|
2648
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
|
2649
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2650
|
+
var __spreadValues$u = (a, b) => {
|
|
2705
2651
|
for (var prop in b || (b = {}))
|
|
2706
|
-
if (__hasOwnProp$
|
|
2707
|
-
__defNormalProp$
|
|
2708
|
-
if (__getOwnPropSymbols$
|
|
2709
|
-
for (var prop of __getOwnPropSymbols$
|
|
2710
|
-
if (__propIsEnum$
|
|
2711
|
-
__defNormalProp$
|
|
2652
|
+
if (__hasOwnProp$v.call(b, prop))
|
|
2653
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
2654
|
+
if (__getOwnPropSymbols$v)
|
|
2655
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
|
2656
|
+
if (__propIsEnum$v.call(b, prop))
|
|
2657
|
+
__defNormalProp$F(a, prop, b[prop]);
|
|
2712
2658
|
}
|
|
2713
2659
|
return a;
|
|
2714
2660
|
};
|
|
2715
|
-
var __spreadProps$
|
|
2661
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
2716
2662
|
function getNgwWebmapExtent(webmap) {
|
|
2717
2663
|
const bottom = webmap["extent_bottom"];
|
|
2718
2664
|
const left = webmap["extent_left"];
|
|
@@ -2779,14 +2725,14 @@ var NgwMap = (function (exports) {
|
|
|
2779
2725
|
if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
|
|
2780
2726
|
return connector.getResource(resource.parent.id, options).then((res) => {
|
|
2781
2727
|
if (res) {
|
|
2782
|
-
return fetchNgwLayerExtent(__spreadProps$
|
|
2728
|
+
return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$u({}, options), {
|
|
2783
2729
|
resourceId: res.resource.id,
|
|
2784
2730
|
connector
|
|
2785
2731
|
}));
|
|
2786
2732
|
}
|
|
2787
2733
|
});
|
|
2788
2734
|
} else {
|
|
2789
|
-
return fetchNgwLayerExtent(__spreadProps$
|
|
2735
|
+
return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$u({}, options), {
|
|
2790
2736
|
resourceId: resource.id,
|
|
2791
2737
|
connector
|
|
2792
2738
|
}));
|
|
@@ -2794,9 +2740,9 @@ var NgwMap = (function (exports) {
|
|
|
2794
2740
|
}
|
|
2795
2741
|
}
|
|
2796
2742
|
|
|
2797
|
-
var __defProp$
|
|
2798
|
-
var __defNormalProp$
|
|
2799
|
-
var __publicField$q = (obj, key, value) => __defNormalProp$
|
|
2743
|
+
var __defProp$E = Object.defineProperty;
|
|
2744
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2745
|
+
var __publicField$q = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2800
2746
|
var __async$r = (__this, __arguments, generator) => {
|
|
2801
2747
|
return new Promise((resolve, reject) => {
|
|
2802
2748
|
var fulfilled = (value) => {
|
|
@@ -2892,23 +2838,23 @@ var NgwMap = (function (exports) {
|
|
|
2892
2838
|
});
|
|
2893
2839
|
}
|
|
2894
2840
|
|
|
2895
|
-
var __defProp$
|
|
2896
|
-
var __getOwnPropSymbols$
|
|
2897
|
-
var __hasOwnProp$
|
|
2898
|
-
var __propIsEnum$
|
|
2899
|
-
var __defNormalProp$
|
|
2900
|
-
var __spreadValues$
|
|
2841
|
+
var __defProp$D = Object.defineProperty;
|
|
2842
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
|
2843
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
|
2844
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
|
2845
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
2846
|
+
var __spreadValues$t = (a, b) => {
|
|
2901
2847
|
for (var prop in b || (b = {}))
|
|
2902
|
-
if (__hasOwnProp$
|
|
2903
|
-
__defNormalProp$
|
|
2904
|
-
if (__getOwnPropSymbols$
|
|
2905
|
-
for (var prop of __getOwnPropSymbols$
|
|
2906
|
-
if (__propIsEnum$
|
|
2907
|
-
__defNormalProp$
|
|
2848
|
+
if (__hasOwnProp$u.call(b, prop))
|
|
2849
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
2850
|
+
if (__getOwnPropSymbols$u)
|
|
2851
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
|
2852
|
+
if (__propIsEnum$u.call(b, prop))
|
|
2853
|
+
__defNormalProp$D(a, prop, b[prop]);
|
|
2908
2854
|
}
|
|
2909
2855
|
return a;
|
|
2910
2856
|
};
|
|
2911
|
-
var __publicField$p = (obj, key, value) => __defNormalProp$
|
|
2857
|
+
var __publicField$p = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
2912
2858
|
var __async$p = (__this, __arguments, generator) => {
|
|
2913
2859
|
return new Promise((resolve, reject) => {
|
|
2914
2860
|
var fulfilled = (value) => {
|
|
@@ -2983,7 +2929,7 @@ var NgwMap = (function (exports) {
|
|
|
2983
2929
|
this._creatingInProgress = true;
|
|
2984
2930
|
const Adapter = yield createAdapter(this);
|
|
2985
2931
|
if (Adapter) {
|
|
2986
|
-
const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$
|
|
2932
|
+
const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$t({}, adapterOptions));
|
|
2987
2933
|
const realLayer = yield adapter.addLayer({
|
|
2988
2934
|
order: this.options.order,
|
|
2989
2935
|
headers: this.options.headers,
|
|
@@ -3067,19 +3013,19 @@ var NgwMap = (function (exports) {
|
|
|
3067
3013
|
});
|
|
3068
3014
|
}
|
|
3069
3015
|
|
|
3070
|
-
var __defProp$
|
|
3071
|
-
var __getOwnPropSymbols$
|
|
3072
|
-
var __hasOwnProp$
|
|
3073
|
-
var __propIsEnum$
|
|
3074
|
-
var __defNormalProp$
|
|
3075
|
-
var __spreadValues$
|
|
3016
|
+
var __defProp$C = Object.defineProperty;
|
|
3017
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
|
3018
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
|
3019
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
|
3020
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3021
|
+
var __spreadValues$s = (a, b) => {
|
|
3076
3022
|
for (var prop in b || (b = {}))
|
|
3077
|
-
if (__hasOwnProp$
|
|
3078
|
-
__defNormalProp$
|
|
3079
|
-
if (__getOwnPropSymbols$
|
|
3080
|
-
for (var prop of __getOwnPropSymbols$
|
|
3081
|
-
if (__propIsEnum$
|
|
3082
|
-
__defNormalProp$
|
|
3023
|
+
if (__hasOwnProp$t.call(b, prop))
|
|
3024
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3025
|
+
if (__getOwnPropSymbols$t)
|
|
3026
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
|
3027
|
+
if (__propIsEnum$t.call(b, prop))
|
|
3028
|
+
__defNormalProp$C(a, prop, b[prop]);
|
|
3083
3029
|
}
|
|
3084
3030
|
return a;
|
|
3085
3031
|
};
|
|
@@ -3126,7 +3072,7 @@ var NgwMap = (function (exports) {
|
|
|
3126
3072
|
return false;
|
|
3127
3073
|
}
|
|
3128
3074
|
function featureFilter(feature, filters) {
|
|
3129
|
-
const properties = __spreadValues$
|
|
3075
|
+
const properties = __spreadValues$s({}, feature.properties);
|
|
3130
3076
|
if (properties) {
|
|
3131
3077
|
properties.$id = feature.id;
|
|
3132
3078
|
return propertiesFilter(properties, filters);
|
|
@@ -3161,25 +3107,25 @@ var NgwMap = (function (exports) {
|
|
|
3161
3107
|
return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
|
|
3162
3108
|
}
|
|
3163
3109
|
|
|
3164
|
-
var __defProp$
|
|
3165
|
-
var __defProps$
|
|
3166
|
-
var __getOwnPropDescs$
|
|
3167
|
-
var __getOwnPropSymbols$
|
|
3168
|
-
var __hasOwnProp$
|
|
3169
|
-
var __propIsEnum$
|
|
3170
|
-
var __defNormalProp$
|
|
3171
|
-
var __spreadValues$
|
|
3110
|
+
var __defProp$B = Object.defineProperty;
|
|
3111
|
+
var __defProps$g = Object.defineProperties;
|
|
3112
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
|
3113
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
|
3114
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
|
3115
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
|
3116
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3117
|
+
var __spreadValues$r = (a, b) => {
|
|
3172
3118
|
for (var prop in b || (b = {}))
|
|
3173
|
-
if (__hasOwnProp$
|
|
3174
|
-
__defNormalProp$
|
|
3175
|
-
if (__getOwnPropSymbols$
|
|
3176
|
-
for (var prop of __getOwnPropSymbols$
|
|
3177
|
-
if (__propIsEnum$
|
|
3178
|
-
__defNormalProp$
|
|
3119
|
+
if (__hasOwnProp$s.call(b, prop))
|
|
3120
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3121
|
+
if (__getOwnPropSymbols$s)
|
|
3122
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
|
3123
|
+
if (__propIsEnum$s.call(b, prop))
|
|
3124
|
+
__defNormalProp$B(a, prop, b[prop]);
|
|
3179
3125
|
}
|
|
3180
3126
|
return a;
|
|
3181
3127
|
};
|
|
3182
|
-
var __spreadProps$
|
|
3128
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
3183
3129
|
var __async$n = (__this, __arguments, generator) => {
|
|
3184
3130
|
return new Promise((resolve, reject) => {
|
|
3185
3131
|
var fulfilled = (value) => {
|
|
@@ -3291,12 +3237,12 @@ var NgwMap = (function (exports) {
|
|
|
3291
3237
|
for (const f of filters_) {
|
|
3292
3238
|
if (isPropertyFilter$1(f)) {
|
|
3293
3239
|
_queries.push(
|
|
3294
|
-
fetchNgwLayerItemsRequest(__spreadProps$
|
|
3240
|
+
fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$r({}, opt), {
|
|
3295
3241
|
paramList: [..._parentAllParams, ...paramList, createParam(f)]
|
|
3296
3242
|
}))
|
|
3297
3243
|
);
|
|
3298
3244
|
} else {
|
|
3299
|
-
getQueries(__spreadProps$
|
|
3245
|
+
getQueries(__spreadProps$g(__spreadValues$r({}, opt), { filters: f }), _queries, [..._parentAllParams]);
|
|
3300
3246
|
}
|
|
3301
3247
|
}
|
|
3302
3248
|
} else if (logic === "all") {
|
|
@@ -3311,14 +3257,14 @@ var NgwMap = (function (exports) {
|
|
|
3311
3257
|
}
|
|
3312
3258
|
if (propertiesFilterList.length) {
|
|
3313
3259
|
for (const x of propertiesFilterList) {
|
|
3314
|
-
getQueries(__spreadProps$
|
|
3260
|
+
getQueries(__spreadProps$g(__spreadValues$r({}, opt), { filters: x }), _queries, [
|
|
3315
3261
|
..._parentAllParams,
|
|
3316
3262
|
...filters2
|
|
3317
3263
|
]);
|
|
3318
3264
|
}
|
|
3319
3265
|
} else {
|
|
3320
3266
|
_queries.push(
|
|
3321
|
-
fetchNgwLayerItemsRequest(__spreadProps$
|
|
3267
|
+
fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$r({}, opt), {
|
|
3322
3268
|
paramList: [..._parentAllParams, ...paramList, ...filters2]
|
|
3323
3269
|
}))
|
|
3324
3270
|
);
|
|
@@ -3334,7 +3280,7 @@ var NgwMap = (function (exports) {
|
|
|
3334
3280
|
return `POLYGON((${polygon.join(", ")}))`;
|
|
3335
3281
|
}
|
|
3336
3282
|
function fetchNgwLayerItemsRequest(options) {
|
|
3337
|
-
const params = __spreadValues$
|
|
3283
|
+
const params = __spreadValues$r({}, FEATURE_REQUEST_PARAMS);
|
|
3338
3284
|
const {
|
|
3339
3285
|
limit,
|
|
3340
3286
|
query,
|
|
@@ -3370,7 +3316,7 @@ var NgwMap = (function (exports) {
|
|
|
3370
3316
|
if (paramList) {
|
|
3371
3317
|
Object.assign(params, paramListToQuery(paramList));
|
|
3372
3318
|
}
|
|
3373
|
-
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$r(__spreadValues$r({}, params), query), cache, signal });
|
|
3374
3320
|
}
|
|
3375
3321
|
|
|
3376
3322
|
function prepareNgwFieldsToPropertiesFilter(fields) {
|
|
@@ -3399,25 +3345,25 @@ var NgwMap = (function (exports) {
|
|
|
3399
3345
|
return fields;
|
|
3400
3346
|
}
|
|
3401
3347
|
|
|
3402
|
-
var __defProp$
|
|
3403
|
-
var __defProps$
|
|
3404
|
-
var __getOwnPropDescs$
|
|
3405
|
-
var __getOwnPropSymbols$
|
|
3406
|
-
var __hasOwnProp$
|
|
3407
|
-
var __propIsEnum$
|
|
3408
|
-
var __defNormalProp$
|
|
3409
|
-
var __spreadValues$
|
|
3348
|
+
var __defProp$A = Object.defineProperty;
|
|
3349
|
+
var __defProps$f = Object.defineProperties;
|
|
3350
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
|
3351
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
|
3352
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
|
3353
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
|
3354
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3355
|
+
var __spreadValues$q = (a, b) => {
|
|
3410
3356
|
for (var prop in b || (b = {}))
|
|
3411
|
-
if (__hasOwnProp$
|
|
3412
|
-
__defNormalProp$
|
|
3413
|
-
if (__getOwnPropSymbols$
|
|
3414
|
-
for (var prop of __getOwnPropSymbols$
|
|
3415
|
-
if (__propIsEnum$
|
|
3416
|
-
__defNormalProp$
|
|
3357
|
+
if (__hasOwnProp$r.call(b, prop))
|
|
3358
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3359
|
+
if (__getOwnPropSymbols$r)
|
|
3360
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
|
3361
|
+
if (__propIsEnum$r.call(b, prop))
|
|
3362
|
+
__defNormalProp$A(a, prop, b[prop]);
|
|
3417
3363
|
}
|
|
3418
3364
|
return a;
|
|
3419
3365
|
};
|
|
3420
|
-
var __spreadProps$
|
|
3366
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
|
3421
3367
|
var __async$m = (__this, __arguments, generator) => {
|
|
3422
3368
|
return new Promise((resolve, reject) => {
|
|
3423
3369
|
var fulfilled = (value) => {
|
|
@@ -3443,13 +3389,13 @@ var NgwMap = (function (exports) {
|
|
|
3443
3389
|
var _a;
|
|
3444
3390
|
const filters = options.filters;
|
|
3445
3391
|
if (filters) {
|
|
3446
|
-
let data = yield createFeatureFieldFilterQueries(__spreadProps$
|
|
3392
|
+
let data = yield createFeatureFieldFilterQueries(__spreadProps$f(__spreadValues$q({}, options), {
|
|
3447
3393
|
filters
|
|
3448
3394
|
}));
|
|
3449
3395
|
const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
|
|
3450
3396
|
if (clientFilterValidate) {
|
|
3451
3397
|
data = data.filter((y) => {
|
|
3452
|
-
const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$
|
|
3398
|
+
const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$f(__spreadValues$q({}, y.fields), {
|
|
3453
3399
|
id: y.id
|
|
3454
3400
|
}));
|
|
3455
3401
|
const result = propertiesFilter(fields, filters);
|
|
@@ -3567,25 +3513,25 @@ var NgwMap = (function (exports) {
|
|
|
3567
3513
|
}
|
|
3568
3514
|
}
|
|
3569
3515
|
|
|
3570
|
-
var __defProp$
|
|
3571
|
-
var __defProps$
|
|
3572
|
-
var __getOwnPropDescs$
|
|
3573
|
-
var __getOwnPropSymbols$
|
|
3574
|
-
var __hasOwnProp$
|
|
3575
|
-
var __propIsEnum$
|
|
3576
|
-
var __defNormalProp$
|
|
3577
|
-
var __spreadValues$
|
|
3516
|
+
var __defProp$z = Object.defineProperty;
|
|
3517
|
+
var __defProps$e = Object.defineProperties;
|
|
3518
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
|
3519
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
|
3520
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
|
3521
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
|
3522
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3523
|
+
var __spreadValues$p = (a, b) => {
|
|
3578
3524
|
for (var prop in b || (b = {}))
|
|
3579
|
-
if (__hasOwnProp$
|
|
3580
|
-
__defNormalProp$
|
|
3581
|
-
if (__getOwnPropSymbols$
|
|
3582
|
-
for (var prop of __getOwnPropSymbols$
|
|
3583
|
-
if (__propIsEnum$
|
|
3584
|
-
__defNormalProp$
|
|
3525
|
+
if (__hasOwnProp$q.call(b, prop))
|
|
3526
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3527
|
+
if (__getOwnPropSymbols$q)
|
|
3528
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
|
3529
|
+
if (__propIsEnum$q.call(b, prop))
|
|
3530
|
+
__defNormalProp$z(a, prop, b[prop]);
|
|
3585
3531
|
}
|
|
3586
3532
|
return a;
|
|
3587
3533
|
};
|
|
3588
|
-
var __spreadProps$
|
|
3534
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
3589
3535
|
var __async$l = (__this, __arguments, generator) => {
|
|
3590
3536
|
return new Promise((resolve, reject) => {
|
|
3591
3537
|
var fulfilled = (value) => {
|
|
@@ -3608,48 +3554,48 @@ var NgwMap = (function (exports) {
|
|
|
3608
3554
|
};
|
|
3609
3555
|
function fetchNgwLayerItem(options) {
|
|
3610
3556
|
return __async$l(this, null, function* () {
|
|
3611
|
-
const params = __spreadValues$
|
|
3557
|
+
const params = __spreadValues$p({}, FEATURE_REQUEST_PARAMS);
|
|
3612
3558
|
updateItemRequestParam(params, options);
|
|
3613
3559
|
const resp = yield options.connector.route("feature_layer.feature.item", {
|
|
3614
3560
|
id: Number(options.resourceId),
|
|
3615
3561
|
fid: options.featureId
|
|
3616
|
-
}).get(__spreadProps$
|
|
3562
|
+
}).get(__spreadProps$e(__spreadValues$p({}, options), { query: params }));
|
|
3617
3563
|
const toGeojson = () => __async$l(null, null, function* () {
|
|
3618
3564
|
if (resp.geom) {
|
|
3619
3565
|
return createGeoJsonFeature(resp);
|
|
3620
3566
|
} else {
|
|
3621
|
-
const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$
|
|
3567
|
+
const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$e(__spreadValues$p({}, options), {
|
|
3622
3568
|
geom: true,
|
|
3623
3569
|
fields: null,
|
|
3624
3570
|
extensions: null
|
|
3625
3571
|
}));
|
|
3626
3572
|
const geom = onlyGeomItem.geom;
|
|
3627
|
-
return createGeoJsonFeature(__spreadProps$
|
|
3573
|
+
return createGeoJsonFeature(__spreadProps$e(__spreadValues$p({}, resp), { geom }));
|
|
3628
3574
|
}
|
|
3629
3575
|
});
|
|
3630
|
-
return __spreadProps$
|
|
3576
|
+
return __spreadProps$e(__spreadValues$p({}, resp), {
|
|
3631
3577
|
toGeojson
|
|
3632
3578
|
});
|
|
3633
3579
|
});
|
|
3634
3580
|
}
|
|
3635
3581
|
|
|
3636
|
-
var __defProp$
|
|
3637
|
-
var __getOwnPropSymbols$
|
|
3638
|
-
var __hasOwnProp$
|
|
3639
|
-
var __propIsEnum$
|
|
3640
|
-
var __defNormalProp$
|
|
3641
|
-
var __spreadValues$
|
|
3582
|
+
var __defProp$y = Object.defineProperty;
|
|
3583
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
|
3584
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
|
3585
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
|
3586
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3587
|
+
var __spreadValues$o = (a, b) => {
|
|
3642
3588
|
for (var prop in b || (b = {}))
|
|
3643
|
-
if (__hasOwnProp$
|
|
3644
|
-
__defNormalProp$
|
|
3645
|
-
if (__getOwnPropSymbols$
|
|
3646
|
-
for (var prop of __getOwnPropSymbols$
|
|
3647
|
-
if (__propIsEnum$
|
|
3648
|
-
__defNormalProp$
|
|
3589
|
+
if (__hasOwnProp$p.call(b, prop))
|
|
3590
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
3591
|
+
if (__getOwnPropSymbols$p)
|
|
3592
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
|
3593
|
+
if (__propIsEnum$p.call(b, prop))
|
|
3594
|
+
__defNormalProp$y(a, prop, b[prop]);
|
|
3649
3595
|
}
|
|
3650
3596
|
return a;
|
|
3651
3597
|
};
|
|
3652
|
-
var __publicField$o = (obj, key, value) => __defNormalProp$
|
|
3598
|
+
var __publicField$o = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3653
3599
|
class BookmarkItem {
|
|
3654
3600
|
constructor(options) {
|
|
3655
3601
|
this.options = options;
|
|
@@ -3686,7 +3632,7 @@ var NgwMap = (function (exports) {
|
|
|
3686
3632
|
if (this.item.geom) {
|
|
3687
3633
|
return Promise.resolve(createGeoJsonFeature(this.item));
|
|
3688
3634
|
} else {
|
|
3689
|
-
return fetchNgwLayerItem(__spreadValues$
|
|
3635
|
+
return fetchNgwLayerItem(__spreadValues$o({
|
|
3690
3636
|
resourceId: this.resourceId,
|
|
3691
3637
|
featureId: this.item.id,
|
|
3692
3638
|
connector: this.options.connector,
|
|
@@ -3704,9 +3650,9 @@ var NgwMap = (function (exports) {
|
|
|
3704
3650
|
|
|
3705
3651
|
const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
|
|
3706
3652
|
|
|
3707
|
-
var __defProp$
|
|
3708
|
-
var __defNormalProp$
|
|
3709
|
-
var __publicField$n = (obj, key, value) => __defNormalProp$
|
|
3653
|
+
var __defProp$x = Object.defineProperty;
|
|
3654
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3655
|
+
var __publicField$n = (obj, key, value) => __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3710
3656
|
class BaseProperty {
|
|
3711
3657
|
constructor(name, item, options) {
|
|
3712
3658
|
__publicField$n(this, "options");
|
|
@@ -3819,26 +3765,26 @@ var NgwMap = (function (exports) {
|
|
|
3819
3765
|
}
|
|
3820
3766
|
}
|
|
3821
3767
|
|
|
3822
|
-
var __defProp$
|
|
3823
|
-
var __getOwnPropSymbols$
|
|
3824
|
-
var __hasOwnProp$
|
|
3825
|
-
var __propIsEnum$
|
|
3826
|
-
var __defNormalProp$
|
|
3827
|
-
var __spreadValues$
|
|
3768
|
+
var __defProp$w = Object.defineProperty;
|
|
3769
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
|
3770
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
|
3771
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
|
3772
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3773
|
+
var __spreadValues$n = (a, b) => {
|
|
3828
3774
|
for (var prop in b || (b = {}))
|
|
3829
|
-
if (__hasOwnProp$
|
|
3830
|
-
__defNormalProp$
|
|
3831
|
-
if (__getOwnPropSymbols$
|
|
3832
|
-
for (var prop of __getOwnPropSymbols$
|
|
3833
|
-
if (__propIsEnum$
|
|
3834
|
-
__defNormalProp$
|
|
3775
|
+
if (__hasOwnProp$o.call(b, prop))
|
|
3776
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
3777
|
+
if (__getOwnPropSymbols$o)
|
|
3778
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
|
3779
|
+
if (__propIsEnum$o.call(b, prop))
|
|
3780
|
+
__defNormalProp$w(a, prop, b[prop]);
|
|
3835
3781
|
}
|
|
3836
3782
|
return a;
|
|
3837
3783
|
};
|
|
3838
|
-
var __publicField$m = (obj, key, value) => __defNormalProp$
|
|
3784
|
+
var __publicField$m = (obj, key, value) => __defNormalProp$w(obj, key + "" , value);
|
|
3839
3785
|
const _CheckProperty = class _CheckProperty extends BaseProperty {
|
|
3840
3786
|
constructor(name, item, options) {
|
|
3841
|
-
super(name, item, __spreadValues$
|
|
3787
|
+
super(name, item, __spreadValues$n(__spreadValues$n({}, _CheckProperty.options), options));
|
|
3842
3788
|
this.set(this.get());
|
|
3843
3789
|
}
|
|
3844
3790
|
update(value, options) {
|
|
@@ -3919,13 +3865,13 @@ var NgwMap = (function (exports) {
|
|
|
3919
3865
|
_blockChild(item, options) {
|
|
3920
3866
|
const prop = item.properties && item.properties.property(this.name);
|
|
3921
3867
|
if (prop && prop.block) {
|
|
3922
|
-
prop.block(__spreadValues$
|
|
3868
|
+
prop.block(__spreadValues$n({ silent: true }, options || {}));
|
|
3923
3869
|
}
|
|
3924
3870
|
}
|
|
3925
3871
|
_unBlockChild(item, options) {
|
|
3926
3872
|
const prop = item.properties && item.properties.property(this.name);
|
|
3927
3873
|
if (prop && prop.unBlock) {
|
|
3928
|
-
prop.unBlock(__spreadValues$
|
|
3874
|
+
prop.unBlock(__spreadValues$n({ silent: true }, options || {}));
|
|
3929
3875
|
}
|
|
3930
3876
|
}
|
|
3931
3877
|
_propagation(value, options) {
|
|
@@ -3935,7 +3881,7 @@ var NgwMap = (function (exports) {
|
|
|
3935
3881
|
const child = children[fry];
|
|
3936
3882
|
const property = child.properties && child.properties.property(this.name);
|
|
3937
3883
|
if (property) {
|
|
3938
|
-
property.set(value, __spreadValues$
|
|
3884
|
+
property.set(value, __spreadValues$n(__spreadValues$n({}, options), {
|
|
3939
3885
|
propagation: true,
|
|
3940
3886
|
bubble: false
|
|
3941
3887
|
}));
|
|
@@ -3953,23 +3899,23 @@ var NgwMap = (function (exports) {
|
|
|
3953
3899
|
});
|
|
3954
3900
|
let CheckProperty = _CheckProperty;
|
|
3955
3901
|
|
|
3956
|
-
var __defProp$
|
|
3957
|
-
var __getOwnPropSymbols$
|
|
3958
|
-
var __hasOwnProp$
|
|
3959
|
-
var __propIsEnum$
|
|
3960
|
-
var __defNormalProp$
|
|
3961
|
-
var __spreadValues$
|
|
3902
|
+
var __defProp$v = Object.defineProperty;
|
|
3903
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
|
3904
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
|
3905
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
|
3906
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3907
|
+
var __spreadValues$m = (a, b) => {
|
|
3962
3908
|
for (var prop in b || (b = {}))
|
|
3963
|
-
if (__hasOwnProp$
|
|
3964
|
-
__defNormalProp$
|
|
3965
|
-
if (__getOwnPropSymbols$
|
|
3966
|
-
for (var prop of __getOwnPropSymbols$
|
|
3967
|
-
if (__propIsEnum$
|
|
3968
|
-
__defNormalProp$
|
|
3909
|
+
if (__hasOwnProp$n.call(b, prop))
|
|
3910
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
3911
|
+
if (__getOwnPropSymbols$n)
|
|
3912
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
|
3913
|
+
if (__propIsEnum$n.call(b, prop))
|
|
3914
|
+
__defNormalProp$v(a, prop, b[prop]);
|
|
3969
3915
|
}
|
|
3970
3916
|
return a;
|
|
3971
3917
|
};
|
|
3972
|
-
var __publicField$l = (obj, key, value) => __defNormalProp$
|
|
3918
|
+
var __publicField$l = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
3973
3919
|
const BOOLEAN_TYPE = "boolean";
|
|
3974
3920
|
const STRING_TYPE = "string";
|
|
3975
3921
|
const _ItemProperties = class _ItemProperties {
|
|
@@ -4017,7 +3963,7 @@ var NgwMap = (function (exports) {
|
|
|
4017
3963
|
_setPropertyHandler(propOpt) {
|
|
4018
3964
|
const Handler = this._getHandler(propOpt);
|
|
4019
3965
|
if (Handler && propOpt.name) {
|
|
4020
|
-
const options = __spreadValues$
|
|
3966
|
+
const options = __spreadValues$m({}, propOpt);
|
|
4021
3967
|
this._properties[propOpt.name] = new Handler(
|
|
4022
3968
|
propOpt.name,
|
|
4023
3969
|
this.item,
|
|
@@ -4147,9 +4093,9 @@ var NgwMap = (function (exports) {
|
|
|
4147
4093
|
return true;
|
|
4148
4094
|
}
|
|
4149
4095
|
|
|
4150
|
-
var __defProp$
|
|
4151
|
-
var __defNormalProp$
|
|
4152
|
-
var __publicField$k = (obj, key, value) => __defNormalProp$
|
|
4096
|
+
var __defProp$u = Object.defineProperty;
|
|
4097
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4098
|
+
var __publicField$k = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4153
4099
|
class TreeHelper {
|
|
4154
4100
|
constructor(item) {
|
|
4155
4101
|
__publicField$k(this, "item");
|
|
@@ -4217,23 +4163,23 @@ var NgwMap = (function (exports) {
|
|
|
4217
4163
|
}
|
|
4218
4164
|
}
|
|
4219
4165
|
|
|
4220
|
-
var __defProp$
|
|
4221
|
-
var __getOwnPropSymbols$
|
|
4222
|
-
var __hasOwnProp$
|
|
4223
|
-
var __propIsEnum$
|
|
4224
|
-
var __defNormalProp$
|
|
4225
|
-
var __spreadValues$
|
|
4166
|
+
var __defProp$t = Object.defineProperty;
|
|
4167
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
|
4168
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
|
4169
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
|
4170
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4171
|
+
var __spreadValues$l = (a, b) => {
|
|
4226
4172
|
for (var prop in b || (b = {}))
|
|
4227
|
-
if (__hasOwnProp$
|
|
4228
|
-
__defNormalProp$
|
|
4229
|
-
if (__getOwnPropSymbols$
|
|
4230
|
-
for (var prop of __getOwnPropSymbols$
|
|
4231
|
-
if (__propIsEnum$
|
|
4232
|
-
__defNormalProp$
|
|
4173
|
+
if (__hasOwnProp$m.call(b, prop))
|
|
4174
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
4175
|
+
if (__getOwnPropSymbols$m)
|
|
4176
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
|
4177
|
+
if (__propIsEnum$m.call(b, prop))
|
|
4178
|
+
__defNormalProp$t(a, prop, b[prop]);
|
|
4233
4179
|
}
|
|
4234
4180
|
return a;
|
|
4235
4181
|
};
|
|
4236
|
-
var __publicField$j = (obj, key, value) => __defNormalProp$
|
|
4182
|
+
var __publicField$j = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4237
4183
|
let ID$1 = 0;
|
|
4238
4184
|
class Item {
|
|
4239
4185
|
constructor(options) {
|
|
@@ -4242,7 +4188,7 @@ var NgwMap = (function (exports) {
|
|
|
4242
4188
|
__publicField$j(this, "tree");
|
|
4243
4189
|
__publicField$j(this, "id", ID$1);
|
|
4244
4190
|
ID$1 += 1;
|
|
4245
|
-
this.options = __spreadValues$
|
|
4191
|
+
this.options = __spreadValues$l({}, options);
|
|
4246
4192
|
this.tree = new TreeHelper(this);
|
|
4247
4193
|
}
|
|
4248
4194
|
initProperties() {
|
|
@@ -4298,26 +4244,26 @@ var NgwMap = (function (exports) {
|
|
|
4298
4244
|
return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
|
|
4299
4245
|
}
|
|
4300
4246
|
|
|
4301
|
-
var __defProp$
|
|
4302
|
-
var __defProps$
|
|
4303
|
-
var __getOwnPropDescs$
|
|
4304
|
-
var __getOwnPropSymbols$
|
|
4305
|
-
var __hasOwnProp$
|
|
4306
|
-
var __propIsEnum$
|
|
4307
|
-
var __defNormalProp$
|
|
4308
|
-
var __spreadValues$
|
|
4247
|
+
var __defProp$s = Object.defineProperty;
|
|
4248
|
+
var __defProps$d = Object.defineProperties;
|
|
4249
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
|
4250
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
|
4251
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
|
4252
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
|
4253
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4254
|
+
var __spreadValues$k = (a, b) => {
|
|
4309
4255
|
for (var prop in b || (b = {}))
|
|
4310
|
-
if (__hasOwnProp$
|
|
4311
|
-
__defNormalProp$
|
|
4312
|
-
if (__getOwnPropSymbols$
|
|
4313
|
-
for (var prop of __getOwnPropSymbols$
|
|
4314
|
-
if (__propIsEnum$
|
|
4315
|
-
__defNormalProp$
|
|
4256
|
+
if (__hasOwnProp$l.call(b, prop))
|
|
4257
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4258
|
+
if (__getOwnPropSymbols$l)
|
|
4259
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
|
4260
|
+
if (__propIsEnum$l.call(b, prop))
|
|
4261
|
+
__defNormalProp$s(a, prop, b[prop]);
|
|
4316
4262
|
}
|
|
4317
4263
|
return a;
|
|
4318
4264
|
};
|
|
4319
|
-
var __spreadProps$
|
|
4320
|
-
var __publicField$i = (obj, key, value) => __defNormalProp$
|
|
4265
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
|
4266
|
+
var __publicField$i = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4321
4267
|
var __async$k = (__this, __arguments, generator) => {
|
|
4322
4268
|
return new Promise((resolve, reject) => {
|
|
4323
4269
|
var fulfilled = (value) => {
|
|
@@ -4382,14 +4328,14 @@ var NgwMap = (function (exports) {
|
|
|
4382
4328
|
if (this.connector) {
|
|
4383
4329
|
const ngwLegend = yield this.connector.route("render.legend_symbols", {
|
|
4384
4330
|
id: this.resourceId
|
|
4385
|
-
}).get(__spreadValues$
|
|
4331
|
+
}).get(__spreadValues$k({}, options));
|
|
4386
4332
|
this.legend = ngwLegend;
|
|
4387
4333
|
return this.createLegend(ngwLegend);
|
|
4388
4334
|
}
|
|
4389
4335
|
});
|
|
4390
4336
|
}
|
|
4391
4337
|
createLegend(items) {
|
|
4392
|
-
return items.map((params) => __spreadProps$
|
|
4338
|
+
return items.map((params) => __spreadProps$d(__spreadValues$k({}, params), {
|
|
4393
4339
|
/** @deprecated use display_name instead */
|
|
4394
4340
|
name: params.display_name,
|
|
4395
4341
|
/** @deprecated use icon instead */
|
|
@@ -4419,7 +4365,7 @@ var NgwMap = (function (exports) {
|
|
|
4419
4365
|
}
|
|
4420
4366
|
if (this.layer.updateLayer) {
|
|
4421
4367
|
this.layer.updateLayer({
|
|
4422
|
-
params: __spreadValues$
|
|
4368
|
+
params: __spreadValues$k({}, createLayerSymbolParam(this.resourceId, intervals))
|
|
4423
4369
|
});
|
|
4424
4370
|
}
|
|
4425
4371
|
if (intervals.length) {
|
|
@@ -4456,26 +4402,26 @@ var NgwMap = (function (exports) {
|
|
|
4456
4402
|
}
|
|
4457
4403
|
}
|
|
4458
4404
|
|
|
4459
|
-
var __defProp$
|
|
4460
|
-
var __defProps$
|
|
4461
|
-
var __getOwnPropDescs$
|
|
4462
|
-
var __getOwnPropSymbols$
|
|
4463
|
-
var __hasOwnProp$
|
|
4464
|
-
var __propIsEnum$
|
|
4465
|
-
var __defNormalProp$
|
|
4466
|
-
var __spreadValues$
|
|
4405
|
+
var __defProp$r = Object.defineProperty;
|
|
4406
|
+
var __defProps$c = Object.defineProperties;
|
|
4407
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
|
4408
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
|
4409
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
|
4410
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
|
4411
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4412
|
+
var __spreadValues$j = (a, b) => {
|
|
4467
4413
|
for (var prop in b || (b = {}))
|
|
4468
|
-
if (__hasOwnProp$
|
|
4469
|
-
__defNormalProp$
|
|
4470
|
-
if (__getOwnPropSymbols$
|
|
4471
|
-
for (var prop of __getOwnPropSymbols$
|
|
4472
|
-
if (__propIsEnum$
|
|
4473
|
-
__defNormalProp$
|
|
4414
|
+
if (__hasOwnProp$k.call(b, prop))
|
|
4415
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
4416
|
+
if (__getOwnPropSymbols$k)
|
|
4417
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
|
4418
|
+
if (__propIsEnum$k.call(b, prop))
|
|
4419
|
+
__defNormalProp$r(a, prop, b[prop]);
|
|
4474
4420
|
}
|
|
4475
4421
|
return a;
|
|
4476
4422
|
};
|
|
4477
|
-
var __spreadProps$
|
|
4478
|
-
var __publicField$h = (obj, key, value) => __defNormalProp$
|
|
4423
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
|
4424
|
+
var __publicField$h = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4479
4425
|
var __async$j = (__this, __arguments, generator) => {
|
|
4480
4426
|
return new Promise((resolve, reject) => {
|
|
4481
4427
|
var fulfilled = (value) => {
|
|
@@ -4505,7 +4451,7 @@ var NgwMap = (function (exports) {
|
|
|
4505
4451
|
parent,
|
|
4506
4452
|
noInit
|
|
4507
4453
|
}) {
|
|
4508
|
-
super(__spreadValues$
|
|
4454
|
+
super(__spreadValues$j(__spreadValues$j({}, _NgwWebmapItem.options), options));
|
|
4509
4455
|
__publicField$h(this, "item");
|
|
4510
4456
|
__publicField$h(this, "webMap");
|
|
4511
4457
|
__publicField$h(this, "connector");
|
|
@@ -4601,7 +4547,7 @@ var NgwMap = (function (exports) {
|
|
|
4601
4547
|
getItemOptions(item) {
|
|
4602
4548
|
const transparency = item.item_type === "layer" && item.layer_transparency;
|
|
4603
4549
|
const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
|
|
4604
|
-
const options = __spreadProps$
|
|
4550
|
+
const options = __spreadProps$c(__spreadValues$j({
|
|
4605
4551
|
visibility: false,
|
|
4606
4552
|
name: item.display_name
|
|
4607
4553
|
}, this.options), {
|
|
@@ -4621,7 +4567,7 @@ var NgwMap = (function (exports) {
|
|
|
4621
4567
|
}
|
|
4622
4568
|
if (item.item_type === "layer") {
|
|
4623
4569
|
const { maxZoom, minZoom } = this._getZoomRange(item);
|
|
4624
|
-
Object.assign(options, __spreadProps$
|
|
4570
|
+
Object.assign(options, __spreadProps$c(__spreadValues$j({
|
|
4625
4571
|
updateWmsParams: item.updateWmsParams
|
|
4626
4572
|
}, options), {
|
|
4627
4573
|
url: item.url,
|
|
@@ -4765,26 +4711,26 @@ var NgwMap = (function (exports) {
|
|
|
4765
4711
|
});
|
|
4766
4712
|
let NgwWebmapItem = _NgwWebmapItem;
|
|
4767
4713
|
|
|
4768
|
-
var __defProp$
|
|
4769
|
-
var __defProps$
|
|
4770
|
-
var __getOwnPropDescs$
|
|
4771
|
-
var __getOwnPropSymbols$
|
|
4772
|
-
var __hasOwnProp$
|
|
4773
|
-
var __propIsEnum$
|
|
4774
|
-
var __defNormalProp$
|
|
4775
|
-
var __spreadValues$
|
|
4714
|
+
var __defProp$q = Object.defineProperty;
|
|
4715
|
+
var __defProps$b = Object.defineProperties;
|
|
4716
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
|
4717
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
|
4718
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
|
4719
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
|
4720
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4721
|
+
var __spreadValues$i = (a, b) => {
|
|
4776
4722
|
for (var prop in b || (b = {}))
|
|
4777
|
-
if (__hasOwnProp$
|
|
4778
|
-
__defNormalProp$
|
|
4779
|
-
if (__getOwnPropSymbols$
|
|
4780
|
-
for (var prop of __getOwnPropSymbols$
|
|
4781
|
-
if (__propIsEnum$
|
|
4782
|
-
__defNormalProp$
|
|
4723
|
+
if (__hasOwnProp$j.call(b, prop))
|
|
4724
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
4725
|
+
if (__getOwnPropSymbols$j)
|
|
4726
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
|
4727
|
+
if (__propIsEnum$j.call(b, prop))
|
|
4728
|
+
__defNormalProp$q(a, prop, b[prop]);
|
|
4783
4729
|
}
|
|
4784
4730
|
return a;
|
|
4785
4731
|
};
|
|
4786
|
-
var __spreadProps$
|
|
4787
|
-
var __publicField$g = (obj, key, value) => __defNormalProp$
|
|
4732
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
|
4733
|
+
var __publicField$g = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4788
4734
|
var __async$i = (__this, __arguments, generator) => {
|
|
4789
4735
|
return new Promise((resolve, reject) => {
|
|
4790
4736
|
var fulfilled = (value) => {
|
|
@@ -4837,7 +4783,7 @@ var NgwMap = (function (exports) {
|
|
|
4837
4783
|
addLayer(options) {
|
|
4838
4784
|
return __async$i(this, null, function* () {
|
|
4839
4785
|
var _a;
|
|
4840
|
-
this.options = __spreadValues$
|
|
4786
|
+
this.options = __spreadValues$i(__spreadValues$i({}, this.options), options);
|
|
4841
4787
|
this.layer = yield this._getWebMapLayerItem();
|
|
4842
4788
|
const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
|
|
4843
4789
|
if (this.options.useExtentConstrained && this._extent && extentConstrained) {
|
|
@@ -4916,7 +4862,7 @@ var NgwMap = (function (exports) {
|
|
|
4916
4862
|
(x) => x.label_field
|
|
4917
4863
|
);
|
|
4918
4864
|
const keyname = labelField && labelField.keyname;
|
|
4919
|
-
return fetchNgwLayerItems(__spreadValues$
|
|
4865
|
+
return fetchNgwLayerItems(__spreadValues$i({
|
|
4920
4866
|
connector,
|
|
4921
4867
|
resourceId: bookmarkResId,
|
|
4922
4868
|
geom: false,
|
|
@@ -4985,7 +4931,7 @@ var NgwMap = (function (exports) {
|
|
|
4985
4931
|
const connector = this.options.connector;
|
|
4986
4932
|
const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
|
|
4987
4933
|
const withCredentials = connector.withCredentials;
|
|
4988
|
-
const options = __spreadProps$
|
|
4934
|
+
const options = __spreadProps$b(__spreadValues$i({}, this.options), {
|
|
4989
4935
|
withCredentials,
|
|
4990
4936
|
headers,
|
|
4991
4937
|
drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
|
|
@@ -5091,7 +5037,7 @@ var NgwMap = (function (exports) {
|
|
|
5091
5037
|
webMap,
|
|
5092
5038
|
baseUrl: this.options.connector.options.baseUrl || ""
|
|
5093
5039
|
});
|
|
5094
|
-
item = __spreadValues$
|
|
5040
|
+
item = __spreadValues$i(__spreadValues$i({}, layerItem), layerAdapterOptions);
|
|
5095
5041
|
}
|
|
5096
5042
|
}
|
|
5097
5043
|
if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
|
|
@@ -5101,40 +5047,40 @@ var NgwMap = (function (exports) {
|
|
|
5101
5047
|
}
|
|
5102
5048
|
}
|
|
5103
5049
|
|
|
5104
|
-
var __defProp$
|
|
5105
|
-
var __defProps$
|
|
5106
|
-
var __getOwnPropDescs$
|
|
5107
|
-
var __getOwnPropSymbols$
|
|
5108
|
-
var __hasOwnProp$
|
|
5109
|
-
var __propIsEnum$
|
|
5110
|
-
var __defNormalProp$
|
|
5111
|
-
var __spreadValues$
|
|
5050
|
+
var __defProp$p = Object.defineProperty;
|
|
5051
|
+
var __defProps$a = Object.defineProperties;
|
|
5052
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
|
5053
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
|
5054
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
|
5055
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
|
5056
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5057
|
+
var __spreadValues$h = (a, b) => {
|
|
5112
5058
|
for (var prop in b || (b = {}))
|
|
5113
|
-
if (__hasOwnProp$
|
|
5114
|
-
__defNormalProp$
|
|
5115
|
-
if (__getOwnPropSymbols$
|
|
5116
|
-
for (var prop of __getOwnPropSymbols$
|
|
5117
|
-
if (__propIsEnum$
|
|
5118
|
-
__defNormalProp$
|
|
5059
|
+
if (__hasOwnProp$i.call(b, prop))
|
|
5060
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
5061
|
+
if (__getOwnPropSymbols$i)
|
|
5062
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
|
5063
|
+
if (__propIsEnum$i.call(b, prop))
|
|
5064
|
+
__defNormalProp$p(a, prop, b[prop]);
|
|
5119
5065
|
}
|
|
5120
5066
|
return a;
|
|
5121
5067
|
};
|
|
5122
|
-
var __spreadProps$
|
|
5123
|
-
var __objRest$
|
|
5068
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
|
5069
|
+
var __objRest$4 = (source, exclude) => {
|
|
5124
5070
|
var target = {};
|
|
5125
5071
|
for (var prop in source)
|
|
5126
|
-
if (__hasOwnProp$
|
|
5072
|
+
if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5127
5073
|
target[prop] = source[prop];
|
|
5128
|
-
if (source != null && __getOwnPropSymbols$
|
|
5129
|
-
for (var prop of __getOwnPropSymbols$
|
|
5130
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5074
|
+
if (source != null && __getOwnPropSymbols$i)
|
|
5075
|
+
for (var prop of __getOwnPropSymbols$i(source)) {
|
|
5076
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
|
|
5131
5077
|
target[prop] = source[prop];
|
|
5132
5078
|
}
|
|
5133
5079
|
return target;
|
|
5134
5080
|
};
|
|
5135
5081
|
function updateImageParams(params, resourceId) {
|
|
5136
|
-
const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$
|
|
5137
|
-
return __spreadProps$
|
|
5082
|
+
const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$4(_a, ["bbox", "width", "height", "nd"]);
|
|
5083
|
+
return __spreadProps$a(__spreadValues$h({}, rest), {
|
|
5138
5084
|
resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
|
|
5139
5085
|
extent: bbox,
|
|
5140
5086
|
size: width + "," + height,
|
|
@@ -5169,7 +5115,7 @@ var NgwMap = (function (exports) {
|
|
|
5169
5115
|
function extendNgwWebmapLayerAdapter(opt) {
|
|
5170
5116
|
class A extends NgwWebmapLayerAdapter {
|
|
5171
5117
|
constructor(map, options) {
|
|
5172
|
-
options = __spreadValues$
|
|
5118
|
+
options = __spreadValues$h(__spreadValues$h({}, opt), options);
|
|
5173
5119
|
super(map, options);
|
|
5174
5120
|
}
|
|
5175
5121
|
}
|
|
@@ -5248,35 +5194,35 @@ var NgwMap = (function (exports) {
|
|
|
5248
5194
|
};
|
|
5249
5195
|
}
|
|
5250
5196
|
|
|
5251
|
-
var __defProp$
|
|
5252
|
-
var __getOwnPropSymbols$
|
|
5253
|
-
var __hasOwnProp$
|
|
5254
|
-
var __propIsEnum$
|
|
5255
|
-
var __defNormalProp$
|
|
5256
|
-
var __spreadValues$
|
|
5197
|
+
var __defProp$o = Object.defineProperty;
|
|
5198
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
|
5199
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
|
5200
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
|
5201
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5202
|
+
var __spreadValues$g = (a, b) => {
|
|
5257
5203
|
for (var prop in b || (b = {}))
|
|
5258
|
-
if (__hasOwnProp$
|
|
5259
|
-
__defNormalProp$
|
|
5260
|
-
if (__getOwnPropSymbols$
|
|
5261
|
-
for (var prop of __getOwnPropSymbols$
|
|
5262
|
-
if (__propIsEnum$
|
|
5263
|
-
__defNormalProp$
|
|
5204
|
+
if (__hasOwnProp$h.call(b, prop))
|
|
5205
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
5206
|
+
if (__getOwnPropSymbols$h)
|
|
5207
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
|
5208
|
+
if (__propIsEnum$h.call(b, prop))
|
|
5209
|
+
__defNormalProp$o(a, prop, b[prop]);
|
|
5264
5210
|
}
|
|
5265
5211
|
return a;
|
|
5266
5212
|
};
|
|
5267
|
-
var __objRest$
|
|
5213
|
+
var __objRest$3 = (source, exclude) => {
|
|
5268
5214
|
var target = {};
|
|
5269
5215
|
for (var prop in source)
|
|
5270
|
-
if (__hasOwnProp$
|
|
5216
|
+
if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
5271
5217
|
target[prop] = source[prop];
|
|
5272
|
-
if (source != null && __getOwnPropSymbols$
|
|
5273
|
-
for (var prop of __getOwnPropSymbols$
|
|
5274
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
5218
|
+
if (source != null && __getOwnPropSymbols$h)
|
|
5219
|
+
for (var prop of __getOwnPropSymbols$h(source)) {
|
|
5220
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
|
|
5275
5221
|
target[prop] = source[prop];
|
|
5276
5222
|
}
|
|
5277
5223
|
return target;
|
|
5278
5224
|
};
|
|
5279
|
-
var __publicField$f = (obj, key, value) => __defNormalProp$
|
|
5225
|
+
var __publicField$f = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5280
5226
|
var __async$h = (__this, __arguments, generator) => {
|
|
5281
5227
|
return new Promise((resolve, reject) => {
|
|
5282
5228
|
var fulfilled = (value) => {
|
|
@@ -5301,7 +5247,7 @@ var NgwMap = (function (exports) {
|
|
|
5301
5247
|
function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
|
|
5302
5248
|
let webMap;
|
|
5303
5249
|
if ("webMap" in webMapOrOptions) {
|
|
5304
|
-
const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$
|
|
5250
|
+
const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$3(_a, ["webMap", "url"]);
|
|
5305
5251
|
webMap = webMap_;
|
|
5306
5252
|
if (url_) {
|
|
5307
5253
|
url = url_;
|
|
@@ -5321,7 +5267,7 @@ var NgwMap = (function (exports) {
|
|
|
5321
5267
|
__publicField$f(this, "options");
|
|
5322
5268
|
__publicField$f(this, "map");
|
|
5323
5269
|
this.map = map;
|
|
5324
|
-
const opt = __spreadValues$
|
|
5270
|
+
const opt = __spreadValues$g(__spreadValues$g({}, createOpt), options);
|
|
5325
5271
|
this.options = opt;
|
|
5326
5272
|
this.options.baselayer = true;
|
|
5327
5273
|
if (opt.qms) {
|
|
@@ -5349,7 +5295,7 @@ var NgwMap = (function (exports) {
|
|
|
5349
5295
|
"hideLayer"
|
|
5350
5296
|
]);
|
|
5351
5297
|
if (type === "TILE") {
|
|
5352
|
-
options = __spreadValues$
|
|
5298
|
+
options = __spreadValues$g(__spreadValues$g({
|
|
5353
5299
|
order: 0,
|
|
5354
5300
|
maxZoom: webMap.options.maxZoom,
|
|
5355
5301
|
minZoom: webMap.options.minZoom
|
|
@@ -5373,30 +5319,30 @@ var NgwMap = (function (exports) {
|
|
|
5373
5319
|
return QmsAdapter;
|
|
5374
5320
|
}
|
|
5375
5321
|
|
|
5376
|
-
var __defProp$
|
|
5377
|
-
var __getOwnPropSymbols$
|
|
5378
|
-
var __hasOwnProp$
|
|
5379
|
-
var __propIsEnum$
|
|
5380
|
-
var __defNormalProp$
|
|
5381
|
-
var __spreadValues$
|
|
5322
|
+
var __defProp$n = Object.defineProperty;
|
|
5323
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
|
5324
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
|
5325
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
|
5326
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5327
|
+
var __spreadValues$f = (a, b) => {
|
|
5382
5328
|
for (var prop in b || (b = {}))
|
|
5383
|
-
if (__hasOwnProp$
|
|
5384
|
-
__defNormalProp$
|
|
5385
|
-
if (__getOwnPropSymbols$
|
|
5386
|
-
for (var prop of __getOwnPropSymbols$
|
|
5387
|
-
if (__propIsEnum$
|
|
5388
|
-
__defNormalProp$
|
|
5329
|
+
if (__hasOwnProp$g.call(b, prop))
|
|
5330
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
5331
|
+
if (__getOwnPropSymbols$g)
|
|
5332
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
|
5333
|
+
if (__propIsEnum$g.call(b, prop))
|
|
5334
|
+
__defNormalProp$n(a, prop, b[prop]);
|
|
5389
5335
|
}
|
|
5390
5336
|
return a;
|
|
5391
5337
|
};
|
|
5392
|
-
var __publicField$e = (obj, key, value) => __defNormalProp$
|
|
5338
|
+
var __publicField$e = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5393
5339
|
class QmsKit {
|
|
5394
5340
|
constructor(options) {
|
|
5395
5341
|
__publicField$e(this, "options", {
|
|
5396
5342
|
url: "https://qms.nextgis.com"
|
|
5397
5343
|
});
|
|
5398
5344
|
__publicField$e(this, "url");
|
|
5399
|
-
this.options = __spreadValues$
|
|
5345
|
+
this.options = __spreadValues$f(__spreadValues$f({}, this.options), options);
|
|
5400
5346
|
this.url = this.options.url;
|
|
5401
5347
|
}
|
|
5402
5348
|
getLayerAdapters() {
|
|
@@ -5415,27 +5361,27 @@ var NgwMap = (function (exports) {
|
|
|
5415
5361
|
createQmsAdapter
|
|
5416
5362
|
});
|
|
5417
5363
|
|
|
5418
|
-
var __defProp$
|
|
5419
|
-
var __defProps$
|
|
5420
|
-
var __getOwnPropDescs$
|
|
5421
|
-
var __getOwnPropSymbols$
|
|
5364
|
+
var __defProp$m = Object.defineProperty;
|
|
5365
|
+
var __defProps$9 = Object.defineProperties;
|
|
5366
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
|
5367
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
|
5422
5368
|
var __getProtoOf$2 = Object.getPrototypeOf;
|
|
5423
|
-
var __hasOwnProp$
|
|
5424
|
-
var __propIsEnum$
|
|
5369
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
|
5370
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
|
5425
5371
|
var __reflectGet$2 = Reflect.get;
|
|
5426
|
-
var __defNormalProp$
|
|
5427
|
-
var __spreadValues$
|
|
5372
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5373
|
+
var __spreadValues$e = (a, b) => {
|
|
5428
5374
|
for (var prop in b || (b = {}))
|
|
5429
|
-
if (__hasOwnProp$
|
|
5430
|
-
__defNormalProp$
|
|
5431
|
-
if (__getOwnPropSymbols$
|
|
5432
|
-
for (var prop of __getOwnPropSymbols$
|
|
5433
|
-
if (__propIsEnum$
|
|
5434
|
-
__defNormalProp$
|
|
5375
|
+
if (__hasOwnProp$f.call(b, prop))
|
|
5376
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
5377
|
+
if (__getOwnPropSymbols$f)
|
|
5378
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
|
5379
|
+
if (__propIsEnum$f.call(b, prop))
|
|
5380
|
+
__defNormalProp$m(a, prop, b[prop]);
|
|
5435
5381
|
}
|
|
5436
5382
|
return a;
|
|
5437
5383
|
};
|
|
5438
|
-
var __spreadProps$
|
|
5384
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
|
5439
5385
|
var __superGet$2 = (cls, obj, key) => __reflectGet$2(__getProtoOf$2(cls), key, obj);
|
|
5440
5386
|
var __async$g = (__this, __arguments, generator) => {
|
|
5441
5387
|
return new Promise((resolve, reject) => {
|
|
@@ -5481,7 +5427,7 @@ var NgwMap = (function (exports) {
|
|
|
5481
5427
|
addLayer(opt) {
|
|
5482
5428
|
return __async$g(this, null, function* () {
|
|
5483
5429
|
if (url) {
|
|
5484
|
-
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$
|
|
5430
|
+
return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$9(__spreadValues$e({}, opt), { url }));
|
|
5485
5431
|
}
|
|
5486
5432
|
});
|
|
5487
5433
|
}
|
|
@@ -5590,28 +5536,28 @@ var NgwMap = (function (exports) {
|
|
|
5590
5536
|
return filterOptions;
|
|
5591
5537
|
}
|
|
5592
5538
|
|
|
5593
|
-
var __defProp$
|
|
5594
|
-
var __defProps$
|
|
5595
|
-
var __getOwnPropDescs$
|
|
5596
|
-
var __getOwnPropSymbols$
|
|
5539
|
+
var __defProp$l = Object.defineProperty;
|
|
5540
|
+
var __defProps$8 = Object.defineProperties;
|
|
5541
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
|
5542
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
|
5597
5543
|
var __getProtoOf$1 = Object.getPrototypeOf;
|
|
5598
|
-
var __hasOwnProp$
|
|
5599
|
-
var __propIsEnum$
|
|
5544
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
|
5545
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
|
5600
5546
|
var __reflectGet$1 = Reflect.get;
|
|
5601
|
-
var __defNormalProp$
|
|
5602
|
-
var __spreadValues$
|
|
5547
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5548
|
+
var __spreadValues$d = (a, b) => {
|
|
5603
5549
|
for (var prop in b || (b = {}))
|
|
5604
|
-
if (__hasOwnProp$
|
|
5605
|
-
__defNormalProp$
|
|
5606
|
-
if (__getOwnPropSymbols$
|
|
5607
|
-
for (var prop of __getOwnPropSymbols$
|
|
5608
|
-
if (__propIsEnum$
|
|
5609
|
-
__defNormalProp$
|
|
5550
|
+
if (__hasOwnProp$e.call(b, prop))
|
|
5551
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
5552
|
+
if (__getOwnPropSymbols$e)
|
|
5553
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
|
5554
|
+
if (__propIsEnum$e.call(b, prop))
|
|
5555
|
+
__defNormalProp$l(a, prop, b[prop]);
|
|
5610
5556
|
}
|
|
5611
5557
|
return a;
|
|
5612
5558
|
};
|
|
5613
|
-
var __spreadProps$
|
|
5614
|
-
var __publicField$d = (obj, key, value) => __defNormalProp$
|
|
5559
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
|
5560
|
+
var __publicField$d = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5615
5561
|
var __superGet$1 = (cls, obj, key) => __reflectGet$1(__getProtoOf$1(cls), key, obj);
|
|
5616
5562
|
var __async$e = (__this, __arguments, generator) => {
|
|
5617
5563
|
return new Promise((resolve, reject) => {
|
|
@@ -5667,7 +5613,7 @@ var NgwMap = (function (exports) {
|
|
|
5667
5613
|
filterOpt = filterOpt || {};
|
|
5668
5614
|
filterOpt.signal = internalSignal;
|
|
5669
5615
|
_lastFilterArgs = { filters, options: filterOpt };
|
|
5670
|
-
return fetchNgwLayerFeatureCollection(__spreadValues$
|
|
5616
|
+
return fetchNgwLayerFeatureCollection(__spreadValues$d({
|
|
5671
5617
|
resourceId,
|
|
5672
5618
|
filters,
|
|
5673
5619
|
connector,
|
|
@@ -5702,9 +5648,9 @@ var NgwMap = (function (exports) {
|
|
|
5702
5648
|
}
|
|
5703
5649
|
if (options.adapterOptions) {
|
|
5704
5650
|
if (addLayerOptionsPriority) {
|
|
5705
|
-
opt = __spreadValues$
|
|
5651
|
+
opt = __spreadValues$d(__spreadValues$d({}, options.adapterOptions), opt);
|
|
5706
5652
|
} else {
|
|
5707
|
-
opt = __spreadValues$
|
|
5653
|
+
opt = __spreadValues$d(__spreadValues$d({}, opt), options.adapterOptions);
|
|
5708
5654
|
}
|
|
5709
5655
|
}
|
|
5710
5656
|
if (opt.data && Object.keys(opt.data).length === 0) {
|
|
@@ -5789,7 +5735,7 @@ var NgwMap = (function (exports) {
|
|
|
5789
5735
|
try {
|
|
5790
5736
|
this.emitter.emit("preupdate", filterArgs);
|
|
5791
5737
|
webMap._emitLayerEvent("layer:preupdate", options.id || "", filterArgs);
|
|
5792
|
-
const data = yield getData(filterArgs.filters, __spreadProps$
|
|
5738
|
+
const data = yield getData(filterArgs.filters, __spreadProps$8(__spreadValues$d({}, filterArgs.options), {
|
|
5793
5739
|
srs: this.options.srs
|
|
5794
5740
|
}));
|
|
5795
5741
|
let newData = data;
|
|
@@ -5832,7 +5778,7 @@ var NgwMap = (function (exports) {
|
|
|
5832
5778
|
abort();
|
|
5833
5779
|
if (this.filter && _fullDataLoad) {
|
|
5834
5780
|
this.filter((e) => {
|
|
5835
|
-
const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$
|
|
5781
|
+
const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$d({}, e.feature.properties));
|
|
5836
5782
|
if (props_) {
|
|
5837
5783
|
return propertiesFilter(props_, filters);
|
|
5838
5784
|
}
|
|
@@ -5842,7 +5788,7 @@ var NgwMap = (function (exports) {
|
|
|
5842
5788
|
if (this.clearLayer) {
|
|
5843
5789
|
this.clearLayer();
|
|
5844
5790
|
}
|
|
5845
|
-
const data = yield getData(filters, __spreadProps$
|
|
5791
|
+
const data = yield getData(filters, __spreadProps$8(__spreadValues$d({}, opt), {
|
|
5846
5792
|
srs: this.options.srs
|
|
5847
5793
|
}));
|
|
5848
5794
|
this.setData(data);
|
|
@@ -6070,38 +6016,38 @@ var NgwMap = (function (exports) {
|
|
|
6070
6016
|
};
|
|
6071
6017
|
}
|
|
6072
6018
|
|
|
6073
|
-
var __defProp$
|
|
6074
|
-
var __defProps$
|
|
6075
|
-
var __getOwnPropDescs$
|
|
6076
|
-
var __getOwnPropSymbols$
|
|
6077
|
-
var __hasOwnProp$
|
|
6078
|
-
var __propIsEnum$
|
|
6079
|
-
var __defNormalProp$
|
|
6080
|
-
var __spreadValues$
|
|
6019
|
+
var __defProp$k = Object.defineProperty;
|
|
6020
|
+
var __defProps$7 = Object.defineProperties;
|
|
6021
|
+
var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
|
|
6022
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
|
6023
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
|
6024
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
|
6025
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6026
|
+
var __spreadValues$c = (a, b) => {
|
|
6081
6027
|
for (var prop in b || (b = {}))
|
|
6082
|
-
if (__hasOwnProp$
|
|
6083
|
-
__defNormalProp$
|
|
6084
|
-
if (__getOwnPropSymbols$
|
|
6085
|
-
for (var prop of __getOwnPropSymbols$
|
|
6086
|
-
if (__propIsEnum$
|
|
6087
|
-
__defNormalProp$
|
|
6028
|
+
if (__hasOwnProp$d.call(b, prop))
|
|
6029
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
6030
|
+
if (__getOwnPropSymbols$d)
|
|
6031
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
|
6032
|
+
if (__propIsEnum$d.call(b, prop))
|
|
6033
|
+
__defNormalProp$k(a, prop, b[prop]);
|
|
6088
6034
|
}
|
|
6089
6035
|
return a;
|
|
6090
6036
|
};
|
|
6091
|
-
var __spreadProps$
|
|
6092
|
-
var __objRest$
|
|
6037
|
+
var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
|
|
6038
|
+
var __objRest$2 = (source, exclude) => {
|
|
6093
6039
|
var target = {};
|
|
6094
6040
|
for (var prop in source)
|
|
6095
|
-
if (__hasOwnProp$
|
|
6041
|
+
if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
6096
6042
|
target[prop] = source[prop];
|
|
6097
|
-
if (source != null && __getOwnPropSymbols$
|
|
6098
|
-
for (var prop of __getOwnPropSymbols$
|
|
6099
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
|
6043
|
+
if (source != null && __getOwnPropSymbols$d)
|
|
6044
|
+
for (var prop of __getOwnPropSymbols$d(source)) {
|
|
6045
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
|
|
6100
6046
|
target[prop] = source[prop];
|
|
6101
6047
|
}
|
|
6102
6048
|
return target;
|
|
6103
6049
|
};
|
|
6104
|
-
var __publicField$c = (obj, key, value) => __defNormalProp$
|
|
6050
|
+
var __publicField$c = (obj, key, value) => __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6105
6051
|
var __async$c = (__this, __arguments, generator) => {
|
|
6106
6052
|
return new Promise((resolve, reject) => {
|
|
6107
6053
|
var fulfilled = (value) => {
|
|
@@ -6165,16 +6111,16 @@ var NgwMap = (function (exports) {
|
|
|
6165
6111
|
baseUrl: connector.options.baseUrl || ""
|
|
6166
6112
|
});
|
|
6167
6113
|
if (opt) {
|
|
6168
|
-
const _a = layerOptions.adapterOptions || {}, { propertiesFilter } = _a, restAdapterOptions = __objRest$
|
|
6114
|
+
const _a = layerOptions.adapterOptions || {}, { propertiesFilter } = _a, restAdapterOptions = __objRest$2(_a, ["propertiesFilter"]);
|
|
6169
6115
|
const filterParams = createLayerFilterParam(
|
|
6170
6116
|
resourceId,
|
|
6171
6117
|
propertiesFilter
|
|
6172
6118
|
);
|
|
6173
|
-
const layerAdapterOptions = __spreadProps$
|
|
6174
|
-
params: __spreadValues$
|
|
6119
|
+
const layerAdapterOptions = __spreadProps$7(__spreadValues$c(__spreadValues$c({}, opt), restAdapterOptions), {
|
|
6120
|
+
params: __spreadValues$c({
|
|
6175
6121
|
resource: resourceId
|
|
6176
6122
|
}, filterParams),
|
|
6177
|
-
url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$
|
|
6123
|
+
url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$c({
|
|
6178
6124
|
resource: String(resourceId)
|
|
6179
6125
|
}, filterParams)) : opt.url,
|
|
6180
6126
|
layers: opt.layers || String(resourceId),
|
|
@@ -6183,17 +6129,17 @@ var NgwMap = (function (exports) {
|
|
|
6183
6129
|
if (layerOptions.adapterOptions && defined(layerOptions.adapterOptions.setViewDelay)) {
|
|
6184
6130
|
layerAdapterOptions.setViewDelay = layerOptions.adapterOptions.setViewDelay;
|
|
6185
6131
|
}
|
|
6186
|
-
this.options = __spreadValues$
|
|
6132
|
+
this.options = __spreadValues$c(__spreadValues$c({}, this.options), layerAdapterOptions);
|
|
6187
6133
|
}
|
|
6188
6134
|
}
|
|
6189
6135
|
addLayer(addOptions) {
|
|
6190
|
-
return super.addLayer(__spreadValues$
|
|
6136
|
+
return super.addLayer(__spreadValues$c(__spreadValues$c({}, this.options), addOptions));
|
|
6191
6137
|
}
|
|
6192
6138
|
propertiesFilter(filters) {
|
|
6193
6139
|
return __async$c(this, null, function* () {
|
|
6194
6140
|
var _a;
|
|
6195
6141
|
const opt = this.options;
|
|
6196
|
-
const params = __spreadValues$
|
|
6142
|
+
const params = __spreadValues$c(__spreadValues$c({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
|
|
6197
6143
|
opt.params = params;
|
|
6198
6144
|
(_a = this.updateLayer) == null ? void 0 : _a.call(this, { params });
|
|
6199
6145
|
});
|
|
@@ -6218,7 +6164,7 @@ var NgwMap = (function (exports) {
|
|
|
6218
6164
|
return __async$c(this, null, function* () {
|
|
6219
6165
|
const id = this.options.id;
|
|
6220
6166
|
if (id !== void 0) {
|
|
6221
|
-
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$c({
|
|
6222
6168
|
cache: true
|
|
6223
6169
|
}, options));
|
|
6224
6170
|
const legend = new Legend({
|
|
@@ -6240,25 +6186,25 @@ var NgwMap = (function (exports) {
|
|
|
6240
6186
|
});
|
|
6241
6187
|
}
|
|
6242
6188
|
|
|
6243
|
-
var __defProp$
|
|
6244
|
-
var __defProps$
|
|
6245
|
-
var __getOwnPropDescs$
|
|
6246
|
-
var __getOwnPropSymbols$
|
|
6247
|
-
var __hasOwnProp$
|
|
6248
|
-
var __propIsEnum$
|
|
6249
|
-
var __defNormalProp$
|
|
6250
|
-
var __spreadValues$
|
|
6189
|
+
var __defProp$j = Object.defineProperty;
|
|
6190
|
+
var __defProps$6 = Object.defineProperties;
|
|
6191
|
+
var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
|
|
6192
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
|
6193
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
|
6194
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
|
6195
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6196
|
+
var __spreadValues$b = (a, b) => {
|
|
6251
6197
|
for (var prop in b || (b = {}))
|
|
6252
|
-
if (__hasOwnProp$
|
|
6253
|
-
__defNormalProp$
|
|
6254
|
-
if (__getOwnPropSymbols$
|
|
6255
|
-
for (var prop of __getOwnPropSymbols$
|
|
6256
|
-
if (__propIsEnum$
|
|
6257
|
-
__defNormalProp$
|
|
6198
|
+
if (__hasOwnProp$c.call(b, prop))
|
|
6199
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6200
|
+
if (__getOwnPropSymbols$c)
|
|
6201
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
|
6202
|
+
if (__propIsEnum$c.call(b, prop))
|
|
6203
|
+
__defNormalProp$j(a, prop, b[prop]);
|
|
6258
6204
|
}
|
|
6259
6205
|
return a;
|
|
6260
6206
|
};
|
|
6261
|
-
var __spreadProps$
|
|
6207
|
+
var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
|
|
6262
6208
|
var __async$b = (__this, __arguments, generator) => {
|
|
6263
6209
|
return new Promise((resolve, reject) => {
|
|
6264
6210
|
var fulfilled = (value) => {
|
|
@@ -6306,7 +6252,7 @@ var NgwMap = (function (exports) {
|
|
|
6306
6252
|
const firstStyle = childrenStyles && childrenStyles[0];
|
|
6307
6253
|
if (firstStyle) {
|
|
6308
6254
|
return createAsyncAdapter(
|
|
6309
|
-
__spreadProps$
|
|
6255
|
+
__spreadProps$6(__spreadValues$b({}, layerOptions), { resource: firstStyle.resource.id }),
|
|
6310
6256
|
webMap,
|
|
6311
6257
|
connector
|
|
6312
6258
|
);
|
|
@@ -6329,7 +6275,7 @@ var NgwMap = (function (exports) {
|
|
|
6329
6275
|
}
|
|
6330
6276
|
if (item) {
|
|
6331
6277
|
const cls = item.resource.cls;
|
|
6332
|
-
const layerOptions = __spreadProps$
|
|
6278
|
+
const layerOptions = __spreadProps$6(__spreadValues$b({}, options), {
|
|
6333
6279
|
resource: resourceId
|
|
6334
6280
|
});
|
|
6335
6281
|
const adapterOptions = {
|
|
@@ -6366,10 +6312,10 @@ var NgwMap = (function (exports) {
|
|
|
6366
6312
|
item.resource.parent.id
|
|
6367
6313
|
);
|
|
6368
6314
|
if (parentItem) {
|
|
6369
|
-
const parentOptions = __spreadProps$
|
|
6315
|
+
const parentOptions = __spreadProps$6(__spreadValues$b({}, options), {
|
|
6370
6316
|
resource: item.resource.parent.id
|
|
6371
6317
|
});
|
|
6372
|
-
adapter = createGeoJsonAdapter(__spreadProps$
|
|
6318
|
+
adapter = createGeoJsonAdapter(__spreadProps$6(__spreadValues$b({}, adapterOptions), {
|
|
6373
6319
|
item: parentItem,
|
|
6374
6320
|
layerOptions: parentOptions
|
|
6375
6321
|
}));
|
|
@@ -6413,23 +6359,23 @@ var NgwMap = (function (exports) {
|
|
|
6413
6359
|
});
|
|
6414
6360
|
}
|
|
6415
6361
|
|
|
6416
|
-
var __defProp$
|
|
6417
|
-
var __getOwnPropSymbols$
|
|
6418
|
-
var __hasOwnProp$
|
|
6419
|
-
var __propIsEnum$
|
|
6420
|
-
var __defNormalProp$
|
|
6421
|
-
var __spreadValues$
|
|
6362
|
+
var __defProp$i = Object.defineProperty;
|
|
6363
|
+
var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
|
|
6364
|
+
var __hasOwnProp$b = Object.prototype.hasOwnProperty;
|
|
6365
|
+
var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
|
|
6366
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6367
|
+
var __spreadValues$a = (a, b) => {
|
|
6422
6368
|
for (var prop in b || (b = {}))
|
|
6423
|
-
if (__hasOwnProp$
|
|
6424
|
-
__defNormalProp$
|
|
6425
|
-
if (__getOwnPropSymbols$
|
|
6426
|
-
for (var prop of __getOwnPropSymbols$
|
|
6427
|
-
if (__propIsEnum$
|
|
6428
|
-
__defNormalProp$
|
|
6369
|
+
if (__hasOwnProp$b.call(b, prop))
|
|
6370
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6371
|
+
if (__getOwnPropSymbols$b)
|
|
6372
|
+
for (var prop of __getOwnPropSymbols$b(b)) {
|
|
6373
|
+
if (__propIsEnum$b.call(b, prop))
|
|
6374
|
+
__defNormalProp$i(a, prop, b[prop]);
|
|
6429
6375
|
}
|
|
6430
6376
|
return a;
|
|
6431
6377
|
};
|
|
6432
|
-
var __publicField$b = (obj, key, value) => __defNormalProp$
|
|
6378
|
+
var __publicField$b = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6433
6379
|
var __async$a = (__this, __arguments, generator) => {
|
|
6434
6380
|
return new Promise((resolve, reject) => {
|
|
6435
6381
|
var fulfilled = (value) => {
|
|
@@ -6485,7 +6431,7 @@ var NgwMap = (function (exports) {
|
|
|
6485
6431
|
connector: this.connector,
|
|
6486
6432
|
webMap
|
|
6487
6433
|
};
|
|
6488
|
-
const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$
|
|
6434
|
+
const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$a({
|
|
6489
6435
|
visibility: true,
|
|
6490
6436
|
fit: true,
|
|
6491
6437
|
pixelRadius: this.options.pixelRadius
|
|
@@ -6516,23 +6462,23 @@ var NgwMap = (function (exports) {
|
|
|
6516
6462
|
}
|
|
6517
6463
|
}
|
|
6518
6464
|
|
|
6519
|
-
var __defProp$
|
|
6520
|
-
var __getOwnPropSymbols$
|
|
6521
|
-
var __hasOwnProp$
|
|
6522
|
-
var __propIsEnum$
|
|
6523
|
-
var __defNormalProp$
|
|
6524
|
-
var __spreadValues$
|
|
6465
|
+
var __defProp$h = Object.defineProperty;
|
|
6466
|
+
var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
|
|
6467
|
+
var __hasOwnProp$a = Object.prototype.hasOwnProperty;
|
|
6468
|
+
var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
|
|
6469
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6470
|
+
var __spreadValues$9 = (a, b) => {
|
|
6525
6471
|
for (var prop in b || (b = {}))
|
|
6526
|
-
if (__hasOwnProp$
|
|
6527
|
-
__defNormalProp$
|
|
6528
|
-
if (__getOwnPropSymbols$
|
|
6529
|
-
for (var prop of __getOwnPropSymbols$
|
|
6530
|
-
if (__propIsEnum$
|
|
6531
|
-
__defNormalProp$
|
|
6472
|
+
if (__hasOwnProp$a.call(b, prop))
|
|
6473
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
6474
|
+
if (__getOwnPropSymbols$a)
|
|
6475
|
+
for (var prop of __getOwnPropSymbols$a(b)) {
|
|
6476
|
+
if (__propIsEnum$a.call(b, prop))
|
|
6477
|
+
__defNormalProp$h(a, prop, b[prop]);
|
|
6532
6478
|
}
|
|
6533
6479
|
return a;
|
|
6534
6480
|
};
|
|
6535
|
-
var __publicField$a = (obj, key, value) => __defNormalProp$
|
|
6481
|
+
var __publicField$a = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
6536
6482
|
var __async$9 = (__this, __arguments, generator) => {
|
|
6537
6483
|
return new Promise((resolve, reject) => {
|
|
6538
6484
|
var fulfilled = (value) => {
|
|
@@ -6580,7 +6526,7 @@ var NgwMap = (function (exports) {
|
|
|
6580
6526
|
if (this._item) {
|
|
6581
6527
|
return Promise.resolve(this._item);
|
|
6582
6528
|
}
|
|
6583
|
-
return fetchNgwLayerItem(__spreadValues$
|
|
6529
|
+
return fetchNgwLayerItem(__spreadValues$9({
|
|
6584
6530
|
connector: this.connector,
|
|
6585
6531
|
featureId: this.id,
|
|
6586
6532
|
resourceId: this.layerId,
|
|
@@ -6619,7 +6565,7 @@ var NgwMap = (function (exports) {
|
|
|
6619
6565
|
if (this._extent) {
|
|
6620
6566
|
return Promise.resolve(this._extent);
|
|
6621
6567
|
}
|
|
6622
|
-
return fetchNgwLayerItemExtent(__spreadValues$
|
|
6568
|
+
return fetchNgwLayerItemExtent(__spreadValues$9({
|
|
6623
6569
|
connector: this.connector,
|
|
6624
6570
|
featureId: this.id,
|
|
6625
6571
|
resourceId: this.layerId
|
|
@@ -6742,25 +6688,25 @@ var NgwMap = (function (exports) {
|
|
|
6742
6688
|
});
|
|
6743
6689
|
}
|
|
6744
6690
|
|
|
6745
|
-
var __defProp$
|
|
6746
|
-
var __defProps$
|
|
6747
|
-
var __getOwnPropDescs$
|
|
6748
|
-
var __getOwnPropSymbols$
|
|
6749
|
-
var __hasOwnProp$
|
|
6750
|
-
var __propIsEnum$
|
|
6751
|
-
var __defNormalProp$
|
|
6752
|
-
var __spreadValues$
|
|
6691
|
+
var __defProp$g = Object.defineProperty;
|
|
6692
|
+
var __defProps$5 = Object.defineProperties;
|
|
6693
|
+
var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
|
|
6694
|
+
var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
|
|
6695
|
+
var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
|
|
6696
|
+
var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
|
|
6697
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6698
|
+
var __spreadValues$8 = (a, b) => {
|
|
6753
6699
|
for (var prop in b || (b = {}))
|
|
6754
|
-
if (__hasOwnProp$
|
|
6755
|
-
__defNormalProp$
|
|
6756
|
-
if (__getOwnPropSymbols$
|
|
6757
|
-
for (var prop of __getOwnPropSymbols$
|
|
6758
|
-
if (__propIsEnum$
|
|
6759
|
-
__defNormalProp$
|
|
6700
|
+
if (__hasOwnProp$9.call(b, prop))
|
|
6701
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
6702
|
+
if (__getOwnPropSymbols$9)
|
|
6703
|
+
for (var prop of __getOwnPropSymbols$9(b)) {
|
|
6704
|
+
if (__propIsEnum$9.call(b, prop))
|
|
6705
|
+
__defNormalProp$g(a, prop, b[prop]);
|
|
6760
6706
|
}
|
|
6761
6707
|
return a;
|
|
6762
6708
|
};
|
|
6763
|
-
var __spreadProps$
|
|
6709
|
+
var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
|
|
6764
6710
|
function getIdentifyItems(identify, multiple = false) {
|
|
6765
6711
|
const resources = [];
|
|
6766
6712
|
const paramsList = [];
|
|
@@ -6823,7 +6769,7 @@ var NgwMap = (function (exports) {
|
|
|
6823
6769
|
if (withGeom && withGeom.geom) {
|
|
6824
6770
|
const geom = withGeom.geom;
|
|
6825
6771
|
return Promise.resolve(
|
|
6826
|
-
createGeoJsonFeature(__spreadProps$
|
|
6772
|
+
createGeoJsonFeature(__spreadProps$5(__spreadValues$8({}, withGeom), {
|
|
6827
6773
|
geom
|
|
6828
6774
|
}))
|
|
6829
6775
|
);
|
|
@@ -6833,7 +6779,7 @@ var NgwMap = (function (exports) {
|
|
|
6833
6779
|
}
|
|
6834
6780
|
const params = getIdentifyItems(identify);
|
|
6835
6781
|
if (params && params.length) {
|
|
6836
|
-
return fetchNgwLayerFeature(__spreadValues$
|
|
6782
|
+
return fetchNgwLayerFeature(__spreadValues$8(__spreadProps$5(__spreadValues$8({}, requestOptions), { connector }), params[0]));
|
|
6837
6783
|
}
|
|
6838
6784
|
return Promise.resolve(void 0);
|
|
6839
6785
|
}
|
|
@@ -6841,7 +6787,7 @@ var NgwMap = (function (exports) {
|
|
|
6841
6787
|
const { connector, identify } = options;
|
|
6842
6788
|
const params = getIdentifyItems(identify);
|
|
6843
6789
|
if (params && params.length) {
|
|
6844
|
-
return fetchNgwLayerItem(__spreadValues$
|
|
6790
|
+
return fetchNgwLayerItem(__spreadValues$8(__spreadValues$8({
|
|
6845
6791
|
connector
|
|
6846
6792
|
}, options.requestOptions), params[0]));
|
|
6847
6793
|
}
|
|
@@ -6891,7 +6837,7 @@ var NgwMap = (function (exports) {
|
|
|
6891
6837
|
const [lng, lat] = ev.lngLat;
|
|
6892
6838
|
const { geom, radius } = options;
|
|
6893
6839
|
const geom_ = geom != null ? geom : getCirclePolygonCoordinates(lng, lat, radius);
|
|
6894
|
-
return featureLayerIdentify(__spreadProps$
|
|
6840
|
+
return featureLayerIdentify(__spreadProps$5(__spreadValues$8({}, options), { geom: geom_ }));
|
|
6895
6841
|
}
|
|
6896
6842
|
function createIdentifyItem(opt) {
|
|
6897
6843
|
return new IdentifyItem(opt);
|
|
@@ -6907,6 +6853,7 @@ var NgwMap = (function (exports) {
|
|
|
6907
6853
|
|
|
6908
6854
|
function createToggleControl(createButtonControl, options) {
|
|
6909
6855
|
const link = document.createElement("div");
|
|
6856
|
+
const statusListeners = /* @__PURE__ */ new Set();
|
|
6910
6857
|
let status = false;
|
|
6911
6858
|
if (options.getStatus) {
|
|
6912
6859
|
status = options.getStatus();
|
|
@@ -6966,6 +6913,9 @@ var NgwMap = (function (exports) {
|
|
|
6966
6913
|
_setClass(options.addClass, true);
|
|
6967
6914
|
}
|
|
6968
6915
|
setClass();
|
|
6916
|
+
function notifyStatusChange(control) {
|
|
6917
|
+
statusListeners.forEach((listener) => listener(status, control));
|
|
6918
|
+
}
|
|
6969
6919
|
const changeStatus = (status_) => {
|
|
6970
6920
|
if (status_ !== void 0) {
|
|
6971
6921
|
status = status_;
|
|
@@ -6974,13 +6924,36 @@ var NgwMap = (function (exports) {
|
|
|
6974
6924
|
setTitle();
|
|
6975
6925
|
setClass();
|
|
6976
6926
|
};
|
|
6927
|
+
const getStatus = () => status;
|
|
6977
6928
|
const onClick = (status_) => {
|
|
6929
|
+
if (status_ === void 0 && status && buttonControl.disableOnSecondClick) {
|
|
6930
|
+
return;
|
|
6931
|
+
}
|
|
6932
|
+
const previousStatus = status;
|
|
6978
6933
|
status = status_ !== void 0 ? status_ : !status;
|
|
6979
6934
|
if (options.onClick) {
|
|
6980
|
-
|
|
6981
|
-
|
|
6935
|
+
let afterClick;
|
|
6936
|
+
try {
|
|
6937
|
+
afterClick = options.onClick(status);
|
|
6938
|
+
} catch (er) {
|
|
6939
|
+
status = previousStatus;
|
|
6940
|
+
changeStatus();
|
|
6941
|
+
throw er;
|
|
6942
|
+
}
|
|
6943
|
+
Promise.resolve(afterClick).then(() => {
|
|
6944
|
+
changeStatus();
|
|
6945
|
+
if (previousStatus !== status) {
|
|
6946
|
+
notifyStatusChange(buttonControl);
|
|
6947
|
+
}
|
|
6948
|
+
}).catch(() => {
|
|
6949
|
+
status = previousStatus;
|
|
6950
|
+
changeStatus();
|
|
6951
|
+
});
|
|
6982
6952
|
} else {
|
|
6983
6953
|
changeStatus();
|
|
6954
|
+
if (previousStatus !== status) {
|
|
6955
|
+
notifyStatusChange(buttonControl);
|
|
6956
|
+
}
|
|
6984
6957
|
}
|
|
6985
6958
|
};
|
|
6986
6959
|
const buttonControl = createButtonControl({
|
|
@@ -6989,6 +6962,15 @@ var NgwMap = (function (exports) {
|
|
|
6989
6962
|
});
|
|
6990
6963
|
buttonControl.onClick = onClick;
|
|
6991
6964
|
buttonControl.changeStatus = changeStatus;
|
|
6965
|
+
buttonControl.getStatus = getStatus;
|
|
6966
|
+
buttonControl.switch = options.switch;
|
|
6967
|
+
if (options.disableOnSecondClick !== void 0) {
|
|
6968
|
+
buttonControl.disableOnSecondClick = options.disableOnSecondClick;
|
|
6969
|
+
}
|
|
6970
|
+
buttonControl.onStatusChange = (listener) => {
|
|
6971
|
+
statusListeners.add(listener);
|
|
6972
|
+
return () => statusListeners.delete(listener);
|
|
6973
|
+
};
|
|
6992
6974
|
return buttonControl;
|
|
6993
6975
|
}
|
|
6994
6976
|
|
|
@@ -7613,19 +7595,19 @@ var NgwMap = (function (exports) {
|
|
|
7613
7595
|
typeof: evaluateArgs(([arg]) => typeOfValue(arg))
|
|
7614
7596
|
};
|
|
7615
7597
|
|
|
7616
|
-
var __defProp$
|
|
7617
|
-
var __getOwnPropSymbols$
|
|
7618
|
-
var __hasOwnProp$
|
|
7619
|
-
var __propIsEnum$
|
|
7620
|
-
var __defNormalProp$
|
|
7621
|
-
var __spreadValues$
|
|
7598
|
+
var __defProp$f = Object.defineProperty;
|
|
7599
|
+
var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
|
|
7600
|
+
var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
|
|
7601
|
+
var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
|
|
7602
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7603
|
+
var __spreadValues$7 = (a, b) => {
|
|
7622
7604
|
for (var prop in b || (b = {}))
|
|
7623
|
-
if (__hasOwnProp$
|
|
7624
|
-
__defNormalProp$
|
|
7625
|
-
if (__getOwnPropSymbols$
|
|
7626
|
-
for (var prop of __getOwnPropSymbols$
|
|
7627
|
-
if (__propIsEnum$
|
|
7628
|
-
__defNormalProp$
|
|
7605
|
+
if (__hasOwnProp$8.call(b, prop))
|
|
7606
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
7607
|
+
if (__getOwnPropSymbols$8)
|
|
7608
|
+
for (var prop of __getOwnPropSymbols$8(b)) {
|
|
7609
|
+
if (__propIsEnum$8.call(b, prop))
|
|
7610
|
+
__defNormalProp$f(a, prop, b[prop]);
|
|
7629
7611
|
}
|
|
7630
7612
|
return a;
|
|
7631
7613
|
};
|
|
@@ -7637,7 +7619,7 @@ var NgwMap = (function (exports) {
|
|
|
7637
7619
|
}
|
|
7638
7620
|
return false;
|
|
7639
7621
|
}
|
|
7640
|
-
const expressions = __spreadValues$
|
|
7622
|
+
const expressions = __spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
|
|
7641
7623
|
function evaluate(expression, data = {}) {
|
|
7642
7624
|
const [name, ...args] = expression;
|
|
7643
7625
|
const expressionFun = expressions[name];
|
|
@@ -7650,19 +7632,19 @@ var NgwMap = (function (exports) {
|
|
|
7650
7632
|
throw new Error(`Expression "${name}" is not supported.`);
|
|
7651
7633
|
}
|
|
7652
7634
|
|
|
7653
|
-
var __defProp$
|
|
7654
|
-
var __getOwnPropSymbols$
|
|
7655
|
-
var __hasOwnProp$
|
|
7656
|
-
var __propIsEnum$
|
|
7657
|
-
var __defNormalProp$
|
|
7658
|
-
var __spreadValues$
|
|
7635
|
+
var __defProp$e = Object.defineProperty;
|
|
7636
|
+
var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
|
|
7637
|
+
var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
|
|
7638
|
+
var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
|
|
7639
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7640
|
+
var __spreadValues$6 = (a, b) => {
|
|
7659
7641
|
for (var prop in b || (b = {}))
|
|
7660
|
-
if (__hasOwnProp$
|
|
7661
|
-
__defNormalProp$
|
|
7662
|
-
if (__getOwnPropSymbols$
|
|
7663
|
-
for (var prop of __getOwnPropSymbols$
|
|
7664
|
-
if (__propIsEnum$
|
|
7665
|
-
__defNormalProp$
|
|
7642
|
+
if (__hasOwnProp$7.call(b, prop))
|
|
7643
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7644
|
+
if (__getOwnPropSymbols$7)
|
|
7645
|
+
for (var prop of __getOwnPropSymbols$7(b)) {
|
|
7646
|
+
if (__propIsEnum$7.call(b, prop))
|
|
7647
|
+
__defNormalProp$e(a, prop, b[prop]);
|
|
7666
7648
|
}
|
|
7667
7649
|
return a;
|
|
7668
7650
|
};
|
|
@@ -7695,7 +7677,7 @@ var NgwMap = (function (exports) {
|
|
|
7695
7677
|
for (const p in expressions) {
|
|
7696
7678
|
fromCb[p] = expressions[p](feature);
|
|
7697
7679
|
}
|
|
7698
|
-
return __spreadValues$
|
|
7680
|
+
return __spreadValues$6(__spreadValues$6({}, paint), fromCb);
|
|
7699
7681
|
};
|
|
7700
7682
|
}
|
|
7701
7683
|
return;
|
|
@@ -7720,19 +7702,19 @@ var NgwMap = (function (exports) {
|
|
|
7720
7702
|
return false;
|
|
7721
7703
|
}
|
|
7722
7704
|
|
|
7723
|
-
var __defProp$
|
|
7724
|
-
var __getOwnPropSymbols$
|
|
7725
|
-
var __hasOwnProp$
|
|
7726
|
-
var __propIsEnum$
|
|
7727
|
-
var __defNormalProp$
|
|
7728
|
-
var __spreadValues$
|
|
7705
|
+
var __defProp$d = Object.defineProperty;
|
|
7706
|
+
var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
|
|
7707
|
+
var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
|
|
7708
|
+
var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
|
|
7709
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7710
|
+
var __spreadValues$5 = (a, b) => {
|
|
7729
7711
|
for (var prop in b || (b = {}))
|
|
7730
|
-
if (__hasOwnProp$
|
|
7731
|
-
__defNormalProp$
|
|
7732
|
-
if (__getOwnPropSymbols$
|
|
7733
|
-
for (var prop of __getOwnPropSymbols$
|
|
7734
|
-
if (__propIsEnum$
|
|
7735
|
-
__defNormalProp$
|
|
7712
|
+
if (__hasOwnProp$6.call(b, prop))
|
|
7713
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
7714
|
+
if (__getOwnPropSymbols$6)
|
|
7715
|
+
for (var prop of __getOwnPropSymbols$6(b)) {
|
|
7716
|
+
if (__propIsEnum$6.call(b, prop))
|
|
7717
|
+
__defNormalProp$d(a, prop, b[prop]);
|
|
7736
7718
|
}
|
|
7737
7719
|
return a;
|
|
7738
7720
|
};
|
|
@@ -7761,7 +7743,7 @@ var NgwMap = (function (exports) {
|
|
|
7761
7743
|
return (feature) => {
|
|
7762
7744
|
const paint = paintsFilters.find((x) => featureFilter(feature, x[0]));
|
|
7763
7745
|
if (paint) {
|
|
7764
|
-
return __spreadValues$
|
|
7746
|
+
return __spreadValues$5(__spreadValues$5({}, mask), paint[1]);
|
|
7765
7747
|
}
|
|
7766
7748
|
return mask;
|
|
7767
7749
|
};
|
|
@@ -7785,8 +7767,8 @@ var NgwMap = (function (exports) {
|
|
|
7785
7767
|
}
|
|
7786
7768
|
function finalizePaint({ paint, defaultPaint }) {
|
|
7787
7769
|
var _a;
|
|
7788
|
-
let newPaint = __spreadValues$
|
|
7789
|
-
newPaint = __spreadValues$
|
|
7770
|
+
let newPaint = __spreadValues$5({}, defaultPaint);
|
|
7771
|
+
newPaint = __spreadValues$5(__spreadValues$5({}, newPaint), paint);
|
|
7790
7772
|
newPaint.fill = (_a = newPaint.fill) != null ? _a : true;
|
|
7791
7773
|
newPaint.stroke = newPaint.stroke !== void 0 ? newPaint.stroke : !newPaint.fill || !!(newPaint.strokeColor || newPaint.strokeOpacity);
|
|
7792
7774
|
return newPaint;
|
|
@@ -7799,7 +7781,7 @@ var NgwMap = (function (exports) {
|
|
|
7799
7781
|
if (!paint) {
|
|
7800
7782
|
throw new Error("paint is empty");
|
|
7801
7783
|
}
|
|
7802
|
-
let newPaint = __spreadValues$
|
|
7784
|
+
let newPaint = __spreadValues$5({}, defaultPaint);
|
|
7803
7785
|
if (isPaintCallback(paint)) {
|
|
7804
7786
|
const getPaintFunction = (feature) => {
|
|
7805
7787
|
const getPaint = preparePaint({
|
|
@@ -7915,9 +7897,9 @@ var NgwMap = (function (exports) {
|
|
|
7915
7897
|
return opt;
|
|
7916
7898
|
}
|
|
7917
7899
|
|
|
7918
|
-
var __defProp$
|
|
7919
|
-
var __defNormalProp$
|
|
7920
|
-
var __publicField$9 = (obj, key, value) => __defNormalProp$
|
|
7900
|
+
var __defProp$c = Object.defineProperty;
|
|
7901
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7902
|
+
var __publicField$9 = (obj, key, value) => __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7921
7903
|
class KeyCodes {
|
|
7922
7904
|
constructor() {
|
|
7923
7905
|
__publicField$9(this, "backspace", 8);
|
|
@@ -7994,9 +7976,9 @@ var NgwMap = (function (exports) {
|
|
|
7994
7976
|
// "single quote"
|
|
7995
7977
|
}
|
|
7996
7978
|
|
|
7997
|
-
var __defProp$
|
|
7998
|
-
var __defNormalProp$
|
|
7999
|
-
var __publicField$8 = (obj, key, value) => __defNormalProp$
|
|
7979
|
+
var __defProp$b = Object.defineProperty;
|
|
7980
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7981
|
+
var __publicField$8 = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8000
7982
|
class Keys {
|
|
8001
7983
|
constructor() {
|
|
8002
7984
|
__publicField$8(this, "keyCodeAlias", new KeyCodes());
|
|
@@ -8042,9 +8024,9 @@ var NgwMap = (function (exports) {
|
|
|
8042
8024
|
}
|
|
8043
8025
|
}
|
|
8044
8026
|
|
|
8045
|
-
var __defProp$
|
|
8046
|
-
var __defNormalProp$
|
|
8047
|
-
var __publicField$7 = (obj, key, value) => __defNormalProp$
|
|
8027
|
+
var __defProp$a = Object.defineProperty;
|
|
8028
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8029
|
+
var __publicField$7 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8048
8030
|
class StateItem {
|
|
8049
8031
|
constructor(webMap, opt) {
|
|
8050
8032
|
this.webMap = webMap;
|
|
@@ -8075,9 +8057,9 @@ var NgwMap = (function (exports) {
|
|
|
8075
8057
|
}
|
|
8076
8058
|
}
|
|
8077
8059
|
|
|
8078
|
-
var __defProp$
|
|
8079
|
-
var __defNormalProp$
|
|
8080
|
-
var __publicField$6 = (obj, key, value) => __defNormalProp$
|
|
8060
|
+
var __defProp$9 = Object.defineProperty;
|
|
8061
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8062
|
+
var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8081
8063
|
class BoundState extends StateItem {
|
|
8082
8064
|
constructor() {
|
|
8083
8065
|
super(...arguments);
|
|
@@ -8103,9 +8085,9 @@ var NgwMap = (function (exports) {
|
|
|
8103
8085
|
}
|
|
8104
8086
|
}
|
|
8105
8087
|
|
|
8106
|
-
var __defProp$
|
|
8107
|
-
var __defNormalProp$
|
|
8108
|
-
var __publicField$5 = (obj, key, value) => __defNormalProp$
|
|
8088
|
+
var __defProp$8 = Object.defineProperty;
|
|
8089
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8090
|
+
var __publicField$5 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8109
8091
|
class CenterState extends StateItem {
|
|
8110
8092
|
constructor() {
|
|
8111
8093
|
super(...arguments);
|
|
@@ -8132,9 +8114,9 @@ var NgwMap = (function (exports) {
|
|
|
8132
8114
|
}
|
|
8133
8115
|
}
|
|
8134
8116
|
|
|
8135
|
-
var __defProp$
|
|
8136
|
-
var __defNormalProp$
|
|
8137
|
-
var __publicField$4 = (obj, key, value) => __defNormalProp$
|
|
8117
|
+
var __defProp$7 = Object.defineProperty;
|
|
8118
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8119
|
+
var __publicField$4 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8138
8120
|
class ZoomState extends StateItem {
|
|
8139
8121
|
constructor() {
|
|
8140
8122
|
super(...arguments);
|
|
@@ -8162,9 +8144,9 @@ var NgwMap = (function (exports) {
|
|
|
8162
8144
|
}
|
|
8163
8145
|
}
|
|
8164
8146
|
|
|
8165
|
-
var __defProp$
|
|
8166
|
-
var __defNormalProp$
|
|
8167
|
-
var __publicField$3 = (obj, key, value) => __defNormalProp$
|
|
8147
|
+
var __defProp$6 = Object.defineProperty;
|
|
8148
|
+
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8149
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8168
8150
|
var __async$6 = (__this, __arguments, generator) => {
|
|
8169
8151
|
return new Promise((resolve, reject) => {
|
|
8170
8152
|
var fulfilled = (value) => {
|
|
@@ -8711,26 +8693,26 @@ var NgwMap = (function (exports) {
|
|
|
8711
8693
|
__publicField$3(_WebMapMain, "getPaintFunctions");
|
|
8712
8694
|
let WebMapMain = _WebMapMain;
|
|
8713
8695
|
|
|
8714
|
-
var __defProp$
|
|
8715
|
-
var __defProps$
|
|
8716
|
-
var __getOwnPropDescs$
|
|
8717
|
-
var __getOwnPropSymbols$
|
|
8718
|
-
var __hasOwnProp$
|
|
8719
|
-
var __propIsEnum$
|
|
8720
|
-
var __defNormalProp$
|
|
8721
|
-
var __spreadValues$
|
|
8696
|
+
var __defProp$5 = Object.defineProperty;
|
|
8697
|
+
var __defProps$4 = Object.defineProperties;
|
|
8698
|
+
var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
|
|
8699
|
+
var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
|
|
8700
|
+
var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
|
|
8701
|
+
var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
|
|
8702
|
+
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8703
|
+
var __spreadValues$4 = (a, b) => {
|
|
8722
8704
|
for (var prop in b || (b = {}))
|
|
8723
|
-
if (__hasOwnProp$
|
|
8724
|
-
__defNormalProp$
|
|
8725
|
-
if (__getOwnPropSymbols$
|
|
8726
|
-
for (var prop of __getOwnPropSymbols$
|
|
8727
|
-
if (__propIsEnum$
|
|
8728
|
-
__defNormalProp$
|
|
8705
|
+
if (__hasOwnProp$5.call(b, prop))
|
|
8706
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
8707
|
+
if (__getOwnPropSymbols$5)
|
|
8708
|
+
for (var prop of __getOwnPropSymbols$5(b)) {
|
|
8709
|
+
if (__propIsEnum$5.call(b, prop))
|
|
8710
|
+
__defNormalProp$5(a, prop, b[prop]);
|
|
8729
8711
|
}
|
|
8730
8712
|
return a;
|
|
8731
8713
|
};
|
|
8732
|
-
var __spreadProps$
|
|
8733
|
-
var __publicField$2 = (obj, key, value) => __defNormalProp$
|
|
8714
|
+
var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
|
|
8715
|
+
var __publicField$2 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8734
8716
|
var __async$5 = (__this, __arguments, generator) => {
|
|
8735
8717
|
return new Promise((resolve, reject) => {
|
|
8736
8718
|
var fulfilled = (value) => {
|
|
@@ -8865,7 +8847,7 @@ var NgwMap = (function (exports) {
|
|
|
8865
8847
|
return __async$5(this, null, function* () {
|
|
8866
8848
|
const layer = yield this.addLayer(
|
|
8867
8849
|
adapter,
|
|
8868
|
-
__spreadProps$
|
|
8850
|
+
__spreadProps$4(__spreadValues$4({}, options), {
|
|
8869
8851
|
baselayer: true
|
|
8870
8852
|
}),
|
|
8871
8853
|
void 0
|
|
@@ -8902,7 +8884,7 @@ var NgwMap = (function (exports) {
|
|
|
8902
8884
|
}
|
|
8903
8885
|
const geoJsonOptions = options;
|
|
8904
8886
|
this._updateGeoJsonOptions(geoJsonOptions);
|
|
8905
|
-
options = __spreadValues$
|
|
8887
|
+
options = __spreadValues$4({
|
|
8906
8888
|
id: String(id),
|
|
8907
8889
|
order: _order
|
|
8908
8890
|
}, options);
|
|
@@ -8927,7 +8909,7 @@ var NgwMap = (function (exports) {
|
|
|
8927
8909
|
}
|
|
8928
8910
|
if (adapterEngine !== void 0) {
|
|
8929
8911
|
const _adapter = new adapterEngine(this.mapAdapter.map, options);
|
|
8930
|
-
_adapter.options = __spreadValues$
|
|
8912
|
+
_adapter.options = __spreadValues$4(__spreadValues$4({}, options), _adapter.options);
|
|
8931
8913
|
if (_adapter.options.baselayer) {
|
|
8932
8914
|
options.baselayer = true;
|
|
8933
8915
|
options.order = 0;
|
|
@@ -9114,7 +9096,7 @@ var NgwMap = (function (exports) {
|
|
|
9114
9096
|
}
|
|
9115
9097
|
/** Shortcut for {@link WebMapLayers.addLayer} to create TileLayer adapter */
|
|
9116
9098
|
addTileLayer(url, options = {}) {
|
|
9117
|
-
return this.addLayer("TILE", __spreadProps$
|
|
9099
|
+
return this.addLayer("TILE", __spreadProps$4(__spreadValues$4({}, options), { url }));
|
|
9118
9100
|
}
|
|
9119
9101
|
addImageLayer(urlOrOptions, options) {
|
|
9120
9102
|
let url;
|
|
@@ -9124,7 +9106,7 @@ var NgwMap = (function (exports) {
|
|
|
9124
9106
|
url = urlOrOptions.url;
|
|
9125
9107
|
options = urlOrOptions;
|
|
9126
9108
|
}
|
|
9127
|
-
return this.addLayer("IMAGE", __spreadProps$
|
|
9109
|
+
return this.addLayer("IMAGE", __spreadProps$4(__spreadValues$4({}, options), { url }));
|
|
9128
9110
|
}
|
|
9129
9111
|
/**
|
|
9130
9112
|
* Show added layer on the map by it definition.
|
|
@@ -9587,9 +9569,24 @@ var NgwMap = (function (exports) {
|
|
|
9587
9569
|
}
|
|
9588
9570
|
}
|
|
9589
9571
|
|
|
9590
|
-
var __defProp$
|
|
9591
|
-
var
|
|
9592
|
-
var
|
|
9572
|
+
var __defProp$4 = Object.defineProperty;
|
|
9573
|
+
var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
|
|
9574
|
+
var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
|
|
9575
|
+
var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
|
|
9576
|
+
var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9577
|
+
var __objRest$1 = (source, exclude) => {
|
|
9578
|
+
var target = {};
|
|
9579
|
+
for (var prop in source)
|
|
9580
|
+
if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
9581
|
+
target[prop] = source[prop];
|
|
9582
|
+
if (source != null && __getOwnPropSymbols$4)
|
|
9583
|
+
for (var prop of __getOwnPropSymbols$4(source)) {
|
|
9584
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
|
|
9585
|
+
target[prop] = source[prop];
|
|
9586
|
+
}
|
|
9587
|
+
return target;
|
|
9588
|
+
};
|
|
9589
|
+
var __publicField$1 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
9593
9590
|
var __async$4 = (__this, __arguments, generator) => {
|
|
9594
9591
|
return new Promise((resolve, reject) => {
|
|
9595
9592
|
var fulfilled = (value) => {
|
|
@@ -9617,21 +9614,24 @@ var NgwMap = (function (exports) {
|
|
|
9617
9614
|
"top-right": [],
|
|
9618
9615
|
"bottom-right": [],
|
|
9619
9616
|
"top-left": [],
|
|
9620
|
-
"bottom-left": []
|
|
9617
|
+
"bottom-left": [],
|
|
9618
|
+
inside: []
|
|
9621
9619
|
});
|
|
9622
9620
|
__publicField$1(this, "_isControlLoading", {
|
|
9623
9621
|
"top-right": false,
|
|
9624
9622
|
"bottom-right": false,
|
|
9625
9623
|
"top-left": false,
|
|
9626
|
-
"bottom-left": false
|
|
9624
|
+
"bottom-left": false,
|
|
9625
|
+
inside: false
|
|
9627
9626
|
});
|
|
9628
9627
|
}
|
|
9629
9628
|
addControl(controlDef, position, options) {
|
|
9630
9629
|
return __async$4(this, null, function* () {
|
|
9631
9630
|
let control;
|
|
9631
|
+
const { addOptions, createOptions } = this._splitControlOptions(options);
|
|
9632
9632
|
position = position != null ? position : "top-left";
|
|
9633
9633
|
if (typeof controlDef === "string") {
|
|
9634
|
-
control = this.getControl(controlDef,
|
|
9634
|
+
control = this.getControl(controlDef, createOptions);
|
|
9635
9635
|
} else {
|
|
9636
9636
|
control = controlDef;
|
|
9637
9637
|
}
|
|
@@ -9639,10 +9639,10 @@ var NgwMap = (function (exports) {
|
|
|
9639
9639
|
return new Promise((resolve) => {
|
|
9640
9640
|
const promise = () => __async$4(this, null, function* () {
|
|
9641
9641
|
const _control = yield control;
|
|
9642
|
-
const c = this.mapAdapter.addControl(_control, position);
|
|
9642
|
+
const c = this.mapAdapter.addControl(_control, position, addOptions);
|
|
9643
9643
|
resolve(c);
|
|
9644
9644
|
});
|
|
9645
|
-
this._setControlQueue(position, promise);
|
|
9645
|
+
this._setControlQueue(this._getControlQueueKey(position), promise);
|
|
9646
9646
|
});
|
|
9647
9647
|
}
|
|
9648
9648
|
});
|
|
@@ -9744,6 +9744,9 @@ var NgwMap = (function (exports) {
|
|
|
9744
9744
|
return this.mapAdapter.getControlContainer();
|
|
9745
9745
|
}
|
|
9746
9746
|
}
|
|
9747
|
+
_getControlQueueKey(position) {
|
|
9748
|
+
return typeof position === "string" ? position : "inside";
|
|
9749
|
+
}
|
|
9747
9750
|
_setControlQueue(position, cb) {
|
|
9748
9751
|
this._loadControlQueue[position].push(cb);
|
|
9749
9752
|
if (!this._isControlLoading[position]) {
|
|
@@ -9763,6 +9766,20 @@ var NgwMap = (function (exports) {
|
|
|
9763
9766
|
}
|
|
9764
9767
|
});
|
|
9765
9768
|
}
|
|
9769
|
+
_splitControlOptions(options) {
|
|
9770
|
+
if (!options) {
|
|
9771
|
+
return {};
|
|
9772
|
+
}
|
|
9773
|
+
const _a = options, { id, order } = _a, createOptions = __objRest$1(_a, ["id", "order"]);
|
|
9774
|
+
const addOptions = this._getAddControlOptions(id, order);
|
|
9775
|
+
return {
|
|
9776
|
+
addOptions,
|
|
9777
|
+
createOptions
|
|
9778
|
+
};
|
|
9779
|
+
}
|
|
9780
|
+
_getAddControlOptions(id, order) {
|
|
9781
|
+
return id !== void 0 || order !== void 0 ? { id, order } : void 0;
|
|
9782
|
+
}
|
|
9766
9783
|
};
|
|
9767
9784
|
__publicField$1(_WebMapControls, "controls", {
|
|
9768
9785
|
CONTROL: (webMap, options) => {
|
|
@@ -9777,10 +9794,26 @@ var NgwMap = (function (exports) {
|
|
|
9777
9794
|
});
|
|
9778
9795
|
let WebMapControls = _WebMapControls;
|
|
9779
9796
|
|
|
9797
|
+
var __defProp$3 = Object.defineProperty;
|
|
9798
|
+
var __defProps$3 = Object.defineProperties;
|
|
9799
|
+
var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
|
|
9780
9800
|
var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
|
|
9781
9801
|
var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
|
|
9782
9802
|
var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
|
|
9783
9803
|
var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
9804
|
+
var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9805
|
+
var __spreadValues$3 = (a, b) => {
|
|
9806
|
+
for (var prop in b || (b = {}))
|
|
9807
|
+
if (__hasOwnProp$3.call(b, prop))
|
|
9808
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
9809
|
+
if (__getOwnPropSymbols$3)
|
|
9810
|
+
for (var prop of __getOwnPropSymbols$3(b)) {
|
|
9811
|
+
if (__propIsEnum$3.call(b, prop))
|
|
9812
|
+
__defNormalProp$3(a, prop, b[prop]);
|
|
9813
|
+
}
|
|
9814
|
+
return a;
|
|
9815
|
+
};
|
|
9816
|
+
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
9784
9817
|
var __objRest = (source, exclude) => {
|
|
9785
9818
|
var target = {};
|
|
9786
9819
|
for (var prop in source)
|
|
@@ -9908,8 +9941,11 @@ var NgwMap = (function (exports) {
|
|
|
9908
9941
|
}
|
|
9909
9942
|
}
|
|
9910
9943
|
}
|
|
9911
|
-
const _a = controlOptions, { position } = _a, options = __objRest(_a, ["position"]);
|
|
9912
|
-
this.addControl(controlAdapterName, position || "top-left", options)
|
|
9944
|
+
const _a = controlOptions, { id, order, position } = _a, options = __objRest(_a, ["id", "order", "position"]);
|
|
9945
|
+
this.addControl(controlAdapterName, position || "top-left", __spreadProps$3(__spreadValues$3({}, options), {
|
|
9946
|
+
id,
|
|
9947
|
+
order
|
|
9948
|
+
}));
|
|
9913
9949
|
});
|
|
9914
9950
|
}
|
|
9915
9951
|
this._emitStatusEvent("controls:create");
|
|
@@ -10274,7 +10310,6 @@ var NgwMap = (function (exports) {
|
|
|
10274
10310
|
const promise = fetchIdentifyGeoJson({
|
|
10275
10311
|
identify,
|
|
10276
10312
|
connector: this.connector,
|
|
10277
|
-
multiple,
|
|
10278
10313
|
requestOptions: { signal: abortController.signal }
|
|
10279
10314
|
});
|
|
10280
10315
|
if (promise && "then" in promise) {
|