@nextgis/ngw-map 3.1.0 → 4.0.0-alpha.1

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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 3.1.0; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 4.0.0-alpha.1; author: NextGIS */
2
2
  const svgPath = {
3
3
  brill: '<path d="m6 0-5 6 5 6 5-6z"/>',
4
4
  circle: '<circle cx="6" cy="6" r="6"/>',
@@ -379,19 +379,19 @@ function template(str, data) {
379
379
  });
380
380
  }
381
381
 
382
- var __defProp$R = Object.defineProperty;
383
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
384
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
385
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
386
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
387
- var __spreadValues$y = (a, b) => {
382
+ var __defProp$T = Object.defineProperty;
383
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
384
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
385
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
386
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
387
+ var __spreadValues$A = (a, b) => {
388
388
  for (var prop in b || (b = {}))
389
- if (__hasOwnProp$z.call(b, prop))
390
- __defNormalProp$R(a, prop, b[prop]);
391
- if (__getOwnPropSymbols$z)
392
- for (var prop of __getOwnPropSymbols$z(b)) {
393
- if (__propIsEnum$z.call(b, prop))
394
- __defNormalProp$R(a, prop, b[prop]);
389
+ if (__hasOwnProp$B.call(b, prop))
390
+ __defNormalProp$T(a, prop, b[prop]);
391
+ if (__getOwnPropSymbols$B)
392
+ for (var prop of __getOwnPropSymbols$B(b)) {
393
+ if (__propIsEnum$B.call(b, prop))
394
+ __defNormalProp$T(a, prop, b[prop]);
395
395
  }
396
396
  return a;
397
397
  };
@@ -454,7 +454,7 @@ function apiRequest(opt) {
454
454
  }
455
455
  }
456
456
  if (url) {
457
- return connector.makeQuery(url, params, __spreadValues$y({
457
+ return connector.makeQuery(url, params, __spreadValues$A({
458
458
  cacheName: name
459
459
  }, requestOptions));
460
460
  } else {
@@ -466,9 +466,9 @@ function apiRequest(opt) {
466
466
  });
467
467
  }
468
468
 
469
- var __defProp$Q = Object.defineProperty;
470
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
471
- var __publicField$A = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
469
+ var __defProp$S = Object.defineProperty;
470
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
471
+ var __publicField$A = (obj, key, value) => __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
472
472
  const _Cache = class _Cache {
473
473
  constructor(options = {}) {
474
474
  __publicField$A(this, "cache", []);
@@ -635,7 +635,9 @@ EventEmitter.init = function() {
635
635
  this.domain = null;
636
636
  if (EventEmitter.usingDomains) {
637
637
  // if there is an active domain, then attach to it.
638
- if (domain.active) ;
638
+ if (domain.active && !(this instanceof domain.Domain)) {
639
+ this.domain = domain.active;
640
+ }
639
641
  }
640
642
 
641
643
  if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
@@ -1078,63 +1080,7 @@ function unwrapListeners(arr) {
1078
1080
  }
1079
1081
 
1080
1082
  var pkg = {
1081
- name: "@nextgis/ngw-connector",
1082
- version: "3.0.1",
1083
- _priority: 12,
1084
- description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1085
- main: "index.js",
1086
- module: "lib/ngw-connector.esm-bundler.js",
1087
- unpkg: "lib/ngw-connector.global.prod.js",
1088
- jsdelivr: "lib/ngw-connector.global.prod.js",
1089
- types: "lib/index.d.ts",
1090
- dependencies: {
1091
- "@nextgis/cache": "3.0.0",
1092
- "@nextgis/cancelable-promise": "3.0.0",
1093
- "@nextgis/utils": "3.0.0",
1094
- "@types/events": "^3.0.0",
1095
- events: "*",
1096
- "form-data": "^4.0.0"
1097
- },
1098
- devDependencies: {
1099
- "@nextgis/build-tools": "3.0.0"
1100
- },
1101
- scripts: {
1102
- clean: "rimraf ./lib",
1103
- dev: "node ../build-tools/lib/build.js",
1104
- prod: "npm run dev -- --release",
1105
- lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
1106
- watch: "npm run dev -- --watch",
1107
- "gen:types": "node ./scripts/generator"
1108
- },
1109
- buildOptions: {
1110
- name: "NgwConnector",
1111
- formats: [
1112
- "esm-bundler",
1113
- "esm-browser",
1114
- "cjs",
1115
- "global"
1116
- ]
1117
- },
1118
- keywords: [
1119
- "NextGIS",
1120
- "MAP"
1121
- ],
1122
- author: "NextGIS",
1123
- files: [
1124
- "index.js",
1125
- "lib"
1126
- ],
1127
- license: "MIT",
1128
- homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
1129
- repository: {
1130
- type: "git",
1131
- url: "git://github.com/nextgis/nextgis_frontend.git"
1132
- },
1133
- engines: {
1134
- node: ">=18.20.4"
1135
- },
1136
- gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
1137
- };
1083
+ version: "3.0.1"};
1138
1084
 
1139
1085
  class AbortError extends Error {
1140
1086
  constructor(message = "AbortError") {
@@ -1143,9 +1089,9 @@ class AbortError extends Error {
1143
1089
  }
1144
1090
  }
1145
1091
 
1146
- var __defProp$P = Object.defineProperty;
1147
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1148
- var __publicField$z = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
1092
+ var __defProp$R = Object.defineProperty;
1093
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1094
+ var __publicField$z = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
1149
1095
  class NgwError extends Error {
1150
1096
  constructor(er) {
1151
1097
  super();
@@ -1162,9 +1108,9 @@ class NgwError extends Error {
1162
1108
  }
1163
1109
  }
1164
1110
 
1165
- var __defProp$O = Object.defineProperty;
1166
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1167
- var __publicField$y = (obj, key, value) => __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
1111
+ var __defProp$Q = Object.defineProperty;
1112
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1113
+ var __publicField$y = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
1168
1114
  class InsufficientPermissionsError extends NgwError {
1169
1115
  constructor(obj) {
1170
1116
  super(obj);
@@ -1174,9 +1120,9 @@ class InsufficientPermissionsError extends NgwError {
1174
1120
  }
1175
1121
  }
1176
1122
 
1177
- var __defProp$N = Object.defineProperty;
1178
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1179
- var __publicField$x = (obj, key, value) => __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
1123
+ var __defProp$P = Object.defineProperty;
1124
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1125
+ var __publicField$x = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
1180
1126
  let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
1181
1127
  constructor(obj) {
1182
1128
  super(obj);
@@ -1219,9 +1165,9 @@ function isError(error) {
1219
1165
  return false;
1220
1166
  }
1221
1167
 
1222
- var __defProp$M = Object.defineProperty;
1223
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1224
- var __publicField$w = (obj, key, value) => __defNormalProp$M(obj, key + "" , value);
1168
+ var __defProp$O = Object.defineProperty;
1169
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1170
+ var __publicField$w = (obj, key, value) => __defNormalProp$O(obj, key + "" , value);
1225
1171
  class NetworkError extends Error {
1226
1172
  constructor(url) {
1227
1173
  super();
@@ -1232,9 +1178,9 @@ class NetworkError extends Error {
1232
1178
  }
1233
1179
  }
1234
1180
 
1235
- var __defProp$L = Object.defineProperty;
1236
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1237
- var __publicField$v = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
1181
+ var __defProp$N = Object.defineProperty;
1182
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1183
+ var __publicField$v = (obj, key, value) => __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
1238
1184
  class ResourceNotFoundError extends NgwError {
1239
1185
  constructor(obj) {
1240
1186
  super(obj);
@@ -1256,9 +1202,9 @@ var errors = /*#__PURE__*/Object.freeze({
1256
1202
  isError: isError
1257
1203
  });
1258
1204
 
1259
- var __defProp$K = Object.defineProperty;
1260
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1261
- var __publicField$u = (obj, key, value) => __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
1205
+ var __defProp$M = Object.defineProperty;
1206
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1207
+ var __publicField$u = (obj, key, value) => __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
1262
1208
  class BaseAPIError extends Error {
1263
1209
  constructor(message) {
1264
1210
  super(message || "Something went wrong.");
@@ -1320,30 +1266,30 @@ class LunkwillRequestFailed extends LunkwillError {
1320
1266
  }
1321
1267
  }
1322
1268
 
1323
- var __defProp$J = Object.defineProperty;
1324
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
1325
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
1326
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
1327
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1328
- var __spreadValues$x = (a, b) => {
1269
+ var __defProp$L = Object.defineProperty;
1270
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
1271
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
1272
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
1273
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1274
+ var __spreadValues$z = (a, b) => {
1329
1275
  for (var prop in b || (b = {}))
1330
- if (__hasOwnProp$y.call(b, prop))
1331
- __defNormalProp$J(a, prop, b[prop]);
1332
- if (__getOwnPropSymbols$y)
1333
- for (var prop of __getOwnPropSymbols$y(b)) {
1334
- if (__propIsEnum$y.call(b, prop))
1335
- __defNormalProp$J(a, prop, b[prop]);
1276
+ if (__hasOwnProp$A.call(b, prop))
1277
+ __defNormalProp$L(a, prop, b[prop]);
1278
+ if (__getOwnPropSymbols$A)
1279
+ for (var prop of __getOwnPropSymbols$A(b)) {
1280
+ if (__propIsEnum$A.call(b, prop))
1281
+ __defNormalProp$L(a, prop, b[prop]);
1336
1282
  }
1337
1283
  return a;
1338
1284
  };
1339
- var __objRest$6 = (source, exclude) => {
1285
+ var __objRest$7 = (source, exclude) => {
1340
1286
  var target = {};
1341
1287
  for (var prop in source)
1342
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
1288
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
1343
1289
  target[prop] = source[prop];
1344
- if (source != null && __getOwnPropSymbols$y)
1345
- for (var prop of __getOwnPropSymbols$y(source)) {
1346
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
1290
+ if (source != null && __getOwnPropSymbols$A)
1291
+ for (var prop of __getOwnPropSymbols$A(source)) {
1292
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
1347
1293
  target[prop] = source[prop];
1348
1294
  }
1349
1295
  return target;
@@ -1481,7 +1427,7 @@ function request(path, options, cacheEngine) {
1481
1427
  credentials: "same-origin",
1482
1428
  headers: {}
1483
1429
  };
1484
- const _a = __spreadValues$x(__spreadValues$x({}, defaults), options), {
1430
+ const _a = __spreadValues$z(__spreadValues$z({}, defaults), options), {
1485
1431
  withCredentials,
1486
1432
  responseType,
1487
1433
  cacheProps,
@@ -1490,7 +1436,7 @@ function request(path, options, cacheEngine) {
1490
1436
  cache,
1491
1437
  query,
1492
1438
  json
1493
- } = _a, opt = __objRest$6(_a, [
1439
+ } = _a, opt = __objRest$7(_a, [
1494
1440
  "withCredentials",
1495
1441
  "responseType",
1496
1442
  "cacheProps",
@@ -1561,7 +1507,7 @@ function request(path, options, cacheEngine) {
1561
1507
  if (cacheEngine) {
1562
1508
  if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
1563
1509
  if (cache !== false) {
1564
- const props = cacheProps ? cacheProps : __spreadValues$x({}, objectRemoveEmpty({
1510
+ const props = cacheProps ? cacheProps : __spreadValues$z({}, objectRemoveEmpty({
1565
1511
  withCredentials,
1566
1512
  responseType
1567
1513
  }));
@@ -1581,33 +1527,33 @@ function request(path, options, cacheEngine) {
1581
1527
  });
1582
1528
  }
1583
1529
 
1584
- var __defProp$I = Object.defineProperty;
1585
- var __defProps$j = Object.defineProperties;
1586
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1587
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1588
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1589
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1590
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1591
- var __spreadValues$w = (a, b) => {
1530
+ var __defProp$K = Object.defineProperty;
1531
+ var __defProps$l = Object.defineProperties;
1532
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
1533
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
1534
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
1535
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
1536
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1537
+ var __spreadValues$y = (a, b) => {
1592
1538
  for (var prop in b || (b = {}))
1593
- if (__hasOwnProp$x.call(b, prop))
1594
- __defNormalProp$I(a, prop, b[prop]);
1595
- if (__getOwnPropSymbols$x)
1596
- for (var prop of __getOwnPropSymbols$x(b)) {
1597
- if (__propIsEnum$x.call(b, prop))
1598
- __defNormalProp$I(a, prop, b[prop]);
1539
+ if (__hasOwnProp$z.call(b, prop))
1540
+ __defNormalProp$K(a, prop, b[prop]);
1541
+ if (__getOwnPropSymbols$z)
1542
+ for (var prop of __getOwnPropSymbols$z(b)) {
1543
+ if (__propIsEnum$z.call(b, prop))
1544
+ __defNormalProp$K(a, prop, b[prop]);
1599
1545
  }
1600
1546
  return a;
1601
1547
  };
1602
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1603
- var __objRest$5 = (source, exclude) => {
1548
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1549
+ var __objRest$6 = (source, exclude) => {
1604
1550
  var target = {};
1605
1551
  for (var prop in source)
1606
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
1552
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
1607
1553
  target[prop] = source[prop];
1608
- if (source != null && __getOwnPropSymbols$x)
1609
- for (var prop of __getOwnPropSymbols$x(source)) {
1610
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
1554
+ if (source != null && __getOwnPropSymbols$z)
1555
+ for (var prop of __getOwnPropSymbols$z(source)) {
1556
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
1611
1557
  target[prop] = source[prop];
1612
1558
  }
1613
1559
  return target;
@@ -1679,7 +1625,7 @@ function route(name, connector, ...rest) {
1679
1625
  for (const method of methods) {
1680
1626
  const methodResp = (requestOptions) => {
1681
1627
  var _b;
1682
- const _a = requestOptions || {}, { headers: optHeaders } = _a, restOpt = __objRest$5(_a, ["headers"]);
1628
+ const _a = requestOptions || {}, { headers: optHeaders } = _a, restOpt = __objRest$6(_a, ["headers"]);
1683
1629
  if ((_b = requestOptions == null ? void 0 : requestOptions.signal) == null ? void 0 : _b.aborted) {
1684
1630
  throw new AbortError();
1685
1631
  }
@@ -1691,10 +1637,10 @@ function route(name, connector, ...rest) {
1691
1637
  routeData,
1692
1638
  ...rest
1693
1639
  );
1694
- const headers = objectRemoveEmpty(__spreadValues$w(__spreadValues$w({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
1640
+ const headers = objectRemoveEmpty(__spreadValues$y(__spreadValues$y({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
1695
1641
  return request(
1696
1642
  template,
1697
- __spreadProps$j(__spreadValues$w({
1643
+ __spreadProps$l(__spreadValues$y({
1698
1644
  headers
1699
1645
  }, restOpt), {
1700
1646
  method
@@ -1818,38 +1764,38 @@ function removeConnector(connector) {
1818
1764
  }
1819
1765
  }
1820
1766
 
1821
- var __defProp$H = Object.defineProperty;
1822
- var __defProps$i = Object.defineProperties;
1823
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1824
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
1825
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
1826
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
1827
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1828
- var __spreadValues$v = (a, b) => {
1767
+ var __defProp$J = Object.defineProperty;
1768
+ var __defProps$k = Object.defineProperties;
1769
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1770
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
1771
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
1772
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
1773
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1774
+ var __spreadValues$x = (a, b) => {
1829
1775
  for (var prop in b || (b = {}))
1830
- if (__hasOwnProp$w.call(b, prop))
1831
- __defNormalProp$H(a, prop, b[prop]);
1832
- if (__getOwnPropSymbols$w)
1833
- for (var prop of __getOwnPropSymbols$w(b)) {
1834
- if (__propIsEnum$w.call(b, prop))
1835
- __defNormalProp$H(a, prop, b[prop]);
1776
+ if (__hasOwnProp$y.call(b, prop))
1777
+ __defNormalProp$J(a, prop, b[prop]);
1778
+ if (__getOwnPropSymbols$y)
1779
+ for (var prop of __getOwnPropSymbols$y(b)) {
1780
+ if (__propIsEnum$y.call(b, prop))
1781
+ __defNormalProp$J(a, prop, b[prop]);
1836
1782
  }
1837
1783
  return a;
1838
1784
  };
1839
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1840
- var __objRest$4 = (source, exclude) => {
1785
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1786
+ var __objRest$5 = (source, exclude) => {
1841
1787
  var target = {};
1842
1788
  for (var prop in source)
1843
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
1789
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
1844
1790
  target[prop] = source[prop];
1845
- if (source != null && __getOwnPropSymbols$w)
1846
- for (var prop of __getOwnPropSymbols$w(source)) {
1847
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
1791
+ if (source != null && __getOwnPropSymbols$y)
1792
+ for (var prop of __getOwnPropSymbols$y(source)) {
1793
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
1848
1794
  target[prop] = source[prop];
1849
1795
  }
1850
1796
  return target;
1851
1797
  };
1852
- var __publicField$t = (obj, key, value) => __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
1798
+ var __publicField$t = (obj, key, value) => __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
1853
1799
  var __async$t = (__this, __arguments, generator) => {
1854
1800
  return new Promise((resolve, reject) => {
1855
1801
  var fulfilled = (value) => {
@@ -1985,7 +1931,7 @@ class NgwConnector {
1985
1931
  if (credentials) {
1986
1932
  this.options.auth = credentials;
1987
1933
  }
1988
- const options_ = __spreadValues$v({
1934
+ const options_ = __spreadValues$x({
1989
1935
  headers: this.getAuthorizationHeaders(credentials),
1990
1936
  cache: true
1991
1937
  }, options);
@@ -2026,7 +1972,7 @@ class NgwConnector {
2026
1972
  this.activeRequests = {};
2027
1973
  }
2028
1974
  getActiveApiRequests() {
2029
- return __spreadValues$v({}, this.activeRequests);
1975
+ return __spreadValues$x({}, this.activeRequests);
2030
1976
  }
2031
1977
  route(name, ...rest) {
2032
1978
  return route(name, this, ...rest);
@@ -2045,11 +1991,11 @@ class NgwConnector {
2045
1991
  throw new Error("Empty `url` not allowed");
2046
1992
  }
2047
1993
  if (params) {
2048
- const _a = params, restParams = __objRest$4(_a, ["paramList"]);
1994
+ const _a = params, { paramList } = _a, restParams = __objRest$5(_a, ["paramList"]);
2049
1995
  url = template(url, restParams);
2050
1996
  }
2051
1997
  url = encodeURI(fixUrlStr(url));
2052
- options = __spreadValues$v({ withCredentials: this.withCredentials }, options);
1998
+ options = __spreadValues$x({ withCredentials: this.withCredentials }, options);
2053
1999
  const {
2054
2000
  cache,
2055
2001
  signal: externalSignal,
@@ -2081,7 +2027,7 @@ class NgwConnector {
2081
2027
  }
2082
2028
  });
2083
2029
  if (method === "GET" && cache !== false) {
2084
- const cacheOptions = cacheProps ? cacheProps : __spreadProps$i(__spreadValues$v({}, objectRemoveEmpty({
2030
+ const cacheOptions = cacheProps ? cacheProps : __spreadProps$k(__spreadValues$x({}, objectRemoveEmpty({
2085
2031
  headers,
2086
2032
  withCredentials,
2087
2033
  responseType,
@@ -2104,7 +2050,7 @@ class NgwConnector {
2104
2050
  var _a;
2105
2051
  if (this.user) {
2106
2052
  options = options || {};
2107
- options.headers = __spreadValues$v(__spreadValues$v({}, this.getAuthorizationHeaders()), options.headers);
2053
+ options.headers = __spreadValues$x(__spreadValues$x({}, this.getAuthorizationHeaders()), options.headers);
2108
2054
  }
2109
2055
  if (this.requestTransform) {
2110
2056
  const [transUrl, transOptions] = this.requestTransform(url, options);
@@ -2193,26 +2139,26 @@ function resourceToQuery(resource, prefix = "") {
2193
2139
  return query;
2194
2140
  }
2195
2141
 
2196
- var __defProp$G = Object.defineProperty;
2197
- var __defProps$h = Object.defineProperties;
2198
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
2199
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
2200
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
2201
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
2202
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2203
- var __spreadValues$u = (a, b) => {
2142
+ var __defProp$I = Object.defineProperty;
2143
+ var __defProps$j = Object.defineProperties;
2144
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
2145
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
2146
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
2147
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
2148
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2149
+ var __spreadValues$w = (a, b) => {
2204
2150
  for (var prop in b || (b = {}))
2205
- if (__hasOwnProp$v.call(b, prop))
2206
- __defNormalProp$G(a, prop, b[prop]);
2207
- if (__getOwnPropSymbols$v)
2208
- for (var prop of __getOwnPropSymbols$v(b)) {
2209
- if (__propIsEnum$v.call(b, prop))
2210
- __defNormalProp$G(a, prop, b[prop]);
2151
+ if (__hasOwnProp$x.call(b, prop))
2152
+ __defNormalProp$I(a, prop, b[prop]);
2153
+ if (__getOwnPropSymbols$x)
2154
+ for (var prop of __getOwnPropSymbols$x(b)) {
2155
+ if (__propIsEnum$x.call(b, prop))
2156
+ __defNormalProp$I(a, prop, b[prop]);
2211
2157
  }
2212
2158
  return a;
2213
2159
  };
2214
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
2215
- var __publicField$s = (obj, key, value) => __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
2160
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
2161
+ var __publicField$s = (obj, key, value) => __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
2216
2162
  var __async$s = (__this, __arguments, generator) => {
2217
2163
  return new Promise((resolve, reject) => {
2218
2164
  var fulfilled = (value) => {
@@ -2254,7 +2200,7 @@ class ResourcesControl {
2254
2200
  * Fetching resource would be cached to speed up next call
2255
2201
  */
2256
2202
  getOne(resource, requestOptions) {
2257
- const opt = __spreadValues$u({}, requestOptions);
2203
+ const opt = __spreadValues$w({}, requestOptions);
2258
2204
  if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
2259
2205
  if (resource.id !== void 0) {
2260
2206
  resource.id;
@@ -2331,8 +2277,8 @@ class ResourcesControl {
2331
2277
  } else {
2332
2278
  Object.assign(query, resourceToQuery(resource));
2333
2279
  }
2334
- return this.connector.route("resource.search").get(__spreadProps$h(__spreadValues$u({}, requestOptions), {
2335
- query: __spreadValues$u({
2280
+ return this.connector.route("resource.search").get(__spreadProps$j(__spreadValues$w({}, requestOptions), {
2281
+ query: __spreadValues$w({
2336
2282
  serialization: "full"
2337
2283
  }, query)
2338
2284
  })).then((resources) => {
@@ -2394,7 +2340,7 @@ class ResourcesControl {
2394
2340
  } else {
2395
2341
  parent = parentDef;
2396
2342
  }
2397
- const items = yield this.connector.route("resource.collection").get(__spreadProps$h(__spreadValues$u({}, requestOptions), {
2343
+ const items = yield this.connector.route("resource.collection").get(__spreadProps$j(__spreadValues$w({}, requestOptions), {
2398
2344
  query: {
2399
2345
  parent
2400
2346
  }
@@ -2475,9 +2421,9 @@ class ResourcesControl {
2475
2421
  }
2476
2422
  }
2477
2423
 
2478
- var __defProp$F = Object.defineProperty;
2479
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2480
- var __publicField$r = (obj, key, value) => __defNormalProp$F(obj, key + "" , value);
2424
+ var __defProp$H = Object.defineProperty;
2425
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2426
+ var __publicField$r = (obj, key, value) => __defNormalProp$H(obj, key + "" , value);
2481
2427
  class NgwConnectorExtended extends NgwConnector {
2482
2428
  constructor(options) {
2483
2429
  super(options);
@@ -2691,25 +2637,25 @@ class NgwConnectorExtended extends NgwConnector {
2691
2637
  }
2692
2638
  }
2693
2639
 
2694
- var __defProp$E = Object.defineProperty;
2695
- var __defProps$g = Object.defineProperties;
2696
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
2697
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
2698
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
2699
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
2700
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2701
- var __spreadValues$t = (a, b) => {
2640
+ var __defProp$G = Object.defineProperty;
2641
+ var __defProps$i = Object.defineProperties;
2642
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
2643
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
2644
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
2645
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
2646
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2647
+ var __spreadValues$v = (a, b) => {
2702
2648
  for (var prop in b || (b = {}))
2703
- if (__hasOwnProp$u.call(b, prop))
2704
- __defNormalProp$E(a, prop, b[prop]);
2705
- if (__getOwnPropSymbols$u)
2706
- for (var prop of __getOwnPropSymbols$u(b)) {
2707
- if (__propIsEnum$u.call(b, prop))
2708
- __defNormalProp$E(a, prop, b[prop]);
2649
+ if (__hasOwnProp$w.call(b, prop))
2650
+ __defNormalProp$G(a, prop, b[prop]);
2651
+ if (__getOwnPropSymbols$w)
2652
+ for (var prop of __getOwnPropSymbols$w(b)) {
2653
+ if (__propIsEnum$w.call(b, prop))
2654
+ __defNormalProp$G(a, prop, b[prop]);
2709
2655
  }
2710
2656
  return a;
2711
2657
  };
2712
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
2658
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
2713
2659
  function getNgwWebmapExtent(webmap) {
2714
2660
  const bottom = webmap["extent_bottom"];
2715
2661
  const left = webmap["extent_left"];
@@ -2776,14 +2722,14 @@ function fetchNgwResourceExtent(item, connector, options) {
2776
2722
  if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
2777
2723
  return connector.getResource(resource.parent.id, options).then((res) => {
2778
2724
  if (res) {
2779
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$t({}, options), {
2725
+ return fetchNgwLayerExtent(__spreadProps$i(__spreadValues$v({}, options), {
2780
2726
  resourceId: res.resource.id,
2781
2727
  connector
2782
2728
  }));
2783
2729
  }
2784
2730
  });
2785
2731
  } else {
2786
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$t({}, options), {
2732
+ return fetchNgwLayerExtent(__spreadProps$i(__spreadValues$v({}, options), {
2787
2733
  resourceId: resource.id,
2788
2734
  connector
2789
2735
  }));
@@ -2791,9 +2737,9 @@ function fetchNgwResourceExtent(item, connector, options) {
2791
2737
  }
2792
2738
  }
2793
2739
 
2794
- var __defProp$D = Object.defineProperty;
2795
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2796
- var __publicField$q = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
2740
+ var __defProp$F = Object.defineProperty;
2741
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2742
+ var __publicField$q = (obj, key, value) => __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
2797
2743
  var __async$r = (__this, __arguments, generator) => {
2798
2744
  return new Promise((resolve, reject) => {
2799
2745
  var fulfilled = (value) => {
@@ -2889,23 +2835,23 @@ function resourceIdFromLayerOptions(options, connector) {
2889
2835
  });
2890
2836
  }
2891
2837
 
2892
- var __defProp$C = Object.defineProperty;
2893
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
2894
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
2895
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
2896
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2897
- var __spreadValues$s = (a, b) => {
2838
+ var __defProp$E = Object.defineProperty;
2839
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
2840
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
2841
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
2842
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2843
+ var __spreadValues$u = (a, b) => {
2898
2844
  for (var prop in b || (b = {}))
2899
- if (__hasOwnProp$t.call(b, prop))
2900
- __defNormalProp$C(a, prop, b[prop]);
2901
- if (__getOwnPropSymbols$t)
2902
- for (var prop of __getOwnPropSymbols$t(b)) {
2903
- if (__propIsEnum$t.call(b, prop))
2904
- __defNormalProp$C(a, prop, b[prop]);
2845
+ if (__hasOwnProp$v.call(b, prop))
2846
+ __defNormalProp$E(a, prop, b[prop]);
2847
+ if (__getOwnPropSymbols$v)
2848
+ for (var prop of __getOwnPropSymbols$v(b)) {
2849
+ if (__propIsEnum$v.call(b, prop))
2850
+ __defNormalProp$E(a, prop, b[prop]);
2905
2851
  }
2906
2852
  return a;
2907
2853
  };
2908
- var __publicField$p = (obj, key, value) => __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
2854
+ var __publicField$p = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
2909
2855
  var __async$p = (__this, __arguments, generator) => {
2910
2856
  return new Promise((resolve, reject) => {
2911
2857
  var fulfilled = (value) => {
@@ -2980,7 +2926,7 @@ function createOnFirstShowAdapter(_0) {
2980
2926
  this._creatingInProgress = true;
2981
2927
  const Adapter = yield createAdapter(this);
2982
2928
  if (Adapter) {
2983
- const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$s({}, adapterOptions));
2929
+ const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$u({}, adapterOptions));
2984
2930
  const realLayer = yield adapter.addLayer({
2985
2931
  order: this.options.order,
2986
2932
  headers: this.options.headers,
@@ -3064,19 +3010,19 @@ function createOnFirstShowNgwAdapter(_0) {
3064
3010
  });
3065
3011
  }
3066
3012
 
3067
- var __defProp$B = Object.defineProperty;
3068
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
3069
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
3070
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
3071
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3072
- var __spreadValues$r = (a, b) => {
3013
+ var __defProp$D = Object.defineProperty;
3014
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
3015
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
3016
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
3017
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3018
+ var __spreadValues$t = (a, b) => {
3073
3019
  for (var prop in b || (b = {}))
3074
- if (__hasOwnProp$s.call(b, prop))
3075
- __defNormalProp$B(a, prop, b[prop]);
3076
- if (__getOwnPropSymbols$s)
3077
- for (var prop of __getOwnPropSymbols$s(b)) {
3078
- if (__propIsEnum$s.call(b, prop))
3079
- __defNormalProp$B(a, prop, b[prop]);
3020
+ if (__hasOwnProp$u.call(b, prop))
3021
+ __defNormalProp$D(a, prop, b[prop]);
3022
+ if (__getOwnPropSymbols$u)
3023
+ for (var prop of __getOwnPropSymbols$u(b)) {
3024
+ if (__propIsEnum$u.call(b, prop))
3025
+ __defNormalProp$D(a, prop, b[prop]);
3080
3026
  }
3081
3027
  return a;
3082
3028
  };
@@ -3123,7 +3069,7 @@ function isPropertyFilter$1(filter) {
3123
3069
  return false;
3124
3070
  }
3125
3071
  function featureFilter(feature, filters) {
3126
- const properties = __spreadValues$r({}, feature.properties);
3072
+ const properties = __spreadValues$t({}, feature.properties);
3127
3073
  if (properties) {
3128
3074
  properties.$id = feature.id;
3129
3075
  return propertiesFilter(properties, filters);
@@ -3158,26 +3104,26 @@ function propertiesFilter(properties, filters) {
3158
3104
  return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
3159
3105
  }
3160
3106
 
3161
- var __defProp$A = Object.defineProperty;
3162
- var __defProps$f = Object.defineProperties;
3163
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3164
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
3165
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
3166
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
3167
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3168
- var __spreadValues$q = (a, b) => {
3107
+ var __defProp$C = Object.defineProperty;
3108
+ var __defProps$h = Object.defineProperties;
3109
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
3110
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
3111
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
3112
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
3113
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3114
+ var __spreadValues$s = (a, b) => {
3169
3115
  for (var prop in b || (b = {}))
3170
- if (__hasOwnProp$r.call(b, prop))
3171
- __defNormalProp$A(a, prop, b[prop]);
3172
- if (__getOwnPropSymbols$r)
3173
- for (var prop of __getOwnPropSymbols$r(b)) {
3174
- if (__propIsEnum$r.call(b, prop))
3175
- __defNormalProp$A(a, prop, b[prop]);
3176
- }
3177
- return a;
3178
- };
3179
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3180
- var __async$n = (__this, __arguments, generator) => {
3116
+ if (__hasOwnProp$t.call(b, prop))
3117
+ __defNormalProp$C(a, prop, b[prop]);
3118
+ if (__getOwnPropSymbols$t)
3119
+ for (var prop of __getOwnPropSymbols$t(b)) {
3120
+ if (__propIsEnum$t.call(b, prop))
3121
+ __defNormalProp$C(a, prop, b[prop]);
3122
+ }
3123
+ return a;
3124
+ };
3125
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
3126
+ var __async$n = (__this, __arguments, generator) => {
3181
3127
  return new Promise((resolve, reject) => {
3182
3128
  var fulfilled = (value) => {
3183
3129
  try {
@@ -3288,12 +3234,12 @@ function getQueries(opt, _queries = [], _parentAllParams = []) {
3288
3234
  for (const f of filters_) {
3289
3235
  if (isPropertyFilter$1(f)) {
3290
3236
  _queries.push(
3291
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$q({}, opt), {
3237
+ fetchNgwLayerItemsRequest(__spreadProps$h(__spreadValues$s({}, opt), {
3292
3238
  paramList: [..._parentAllParams, ...paramList, createParam(f)]
3293
3239
  }))
3294
3240
  );
3295
3241
  } else {
3296
- getQueries(__spreadProps$f(__spreadValues$q({}, opt), { filters: f }), _queries, [..._parentAllParams]);
3242
+ getQueries(__spreadProps$h(__spreadValues$s({}, opt), { filters: f }), _queries, [..._parentAllParams]);
3297
3243
  }
3298
3244
  }
3299
3245
  } else if (logic === "all") {
@@ -3308,14 +3254,14 @@ function getQueries(opt, _queries = [], _parentAllParams = []) {
3308
3254
  }
3309
3255
  if (propertiesFilterList.length) {
3310
3256
  for (const x of propertiesFilterList) {
3311
- getQueries(__spreadProps$f(__spreadValues$q({}, opt), { filters: x }), _queries, [
3257
+ getQueries(__spreadProps$h(__spreadValues$s({}, opt), { filters: x }), _queries, [
3312
3258
  ..._parentAllParams,
3313
3259
  ...filters2
3314
3260
  ]);
3315
3261
  }
3316
3262
  } else {
3317
3263
  _queries.push(
3318
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$q({}, opt), {
3264
+ fetchNgwLayerItemsRequest(__spreadProps$h(__spreadValues$s({}, opt), {
3319
3265
  paramList: [..._parentAllParams, ...paramList, ...filters2]
3320
3266
  }))
3321
3267
  );
@@ -3331,7 +3277,7 @@ function createWktFromCoordArray(coord) {
3331
3277
  return `POLYGON((${polygon.join(", ")}))`;
3332
3278
  }
3333
3279
  function fetchNgwLayerItemsRequest(options) {
3334
- const params = __spreadValues$q({}, FEATURE_REQUEST_PARAMS);
3280
+ const params = __spreadValues$s({}, FEATURE_REQUEST_PARAMS);
3335
3281
  const {
3336
3282
  limit,
3337
3283
  query,
@@ -3367,7 +3313,7 @@ function fetchNgwLayerItemsRequest(options) {
3367
3313
  if (paramList) {
3368
3314
  Object.assign(params, paramListToQuery(paramList));
3369
3315
  }
3370
- return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$q(__spreadValues$q({}, params), query), cache, signal });
3316
+ return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$s(__spreadValues$s({}, params), query), cache, signal });
3371
3317
  }
3372
3318
 
3373
3319
  function prepareNgwFieldsToPropertiesFilter(fields) {
@@ -3396,25 +3342,25 @@ function prepareNgwFieldsToPropertiesFilter(fields) {
3396
3342
  return fields;
3397
3343
  }
3398
3344
 
3399
- var __defProp$z = Object.defineProperty;
3400
- var __defProps$e = Object.defineProperties;
3401
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3402
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
3403
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
3404
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
3405
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3406
- var __spreadValues$p = (a, b) => {
3345
+ var __defProp$B = Object.defineProperty;
3346
+ var __defProps$g = Object.defineProperties;
3347
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
3348
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
3349
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
3350
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
3351
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3352
+ var __spreadValues$r = (a, b) => {
3407
3353
  for (var prop in b || (b = {}))
3408
- if (__hasOwnProp$q.call(b, prop))
3409
- __defNormalProp$z(a, prop, b[prop]);
3410
- if (__getOwnPropSymbols$q)
3411
- for (var prop of __getOwnPropSymbols$q(b)) {
3412
- if (__propIsEnum$q.call(b, prop))
3413
- __defNormalProp$z(a, prop, b[prop]);
3354
+ if (__hasOwnProp$s.call(b, prop))
3355
+ __defNormalProp$B(a, prop, b[prop]);
3356
+ if (__getOwnPropSymbols$s)
3357
+ for (var prop of __getOwnPropSymbols$s(b)) {
3358
+ if (__propIsEnum$s.call(b, prop))
3359
+ __defNormalProp$B(a, prop, b[prop]);
3414
3360
  }
3415
3361
  return a;
3416
3362
  };
3417
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3363
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
3418
3364
  var __async$m = (__this, __arguments, generator) => {
3419
3365
  return new Promise((resolve, reject) => {
3420
3366
  var fulfilled = (value) => {
@@ -3440,13 +3386,13 @@ function fetchNgwLayerItems(options) {
3440
3386
  var _a;
3441
3387
  const filters = options.filters;
3442
3388
  if (filters) {
3443
- let data = yield createFeatureFieldFilterQueries(__spreadProps$e(__spreadValues$p({}, options), {
3389
+ let data = yield createFeatureFieldFilterQueries(__spreadProps$g(__spreadValues$r({}, options), {
3444
3390
  filters
3445
3391
  }));
3446
3392
  const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
3447
3393
  if (clientFilterValidate) {
3448
3394
  data = data.filter((y) => {
3449
- const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$e(__spreadValues$p({}, y.fields), {
3395
+ const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$g(__spreadValues$r({}, y.fields), {
3450
3396
  id: y.id
3451
3397
  }));
3452
3398
  const result = propertiesFilter(fields, filters);
@@ -3564,25 +3510,25 @@ function ngwApiToAdapterOptions({
3564
3510
  }
3565
3511
  }
3566
3512
 
3567
- var __defProp$y = Object.defineProperty;
3568
- var __defProps$d = Object.defineProperties;
3569
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
3570
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
3571
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
3572
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
3573
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3574
- var __spreadValues$o = (a, b) => {
3513
+ var __defProp$A = Object.defineProperty;
3514
+ var __defProps$f = Object.defineProperties;
3515
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3516
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
3517
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
3518
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
3519
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3520
+ var __spreadValues$q = (a, b) => {
3575
3521
  for (var prop in b || (b = {}))
3576
- if (__hasOwnProp$p.call(b, prop))
3577
- __defNormalProp$y(a, prop, b[prop]);
3578
- if (__getOwnPropSymbols$p)
3579
- for (var prop of __getOwnPropSymbols$p(b)) {
3580
- if (__propIsEnum$p.call(b, prop))
3581
- __defNormalProp$y(a, prop, b[prop]);
3522
+ if (__hasOwnProp$r.call(b, prop))
3523
+ __defNormalProp$A(a, prop, b[prop]);
3524
+ if (__getOwnPropSymbols$r)
3525
+ for (var prop of __getOwnPropSymbols$r(b)) {
3526
+ if (__propIsEnum$r.call(b, prop))
3527
+ __defNormalProp$A(a, prop, b[prop]);
3582
3528
  }
3583
3529
  return a;
3584
3530
  };
3585
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
3531
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3586
3532
  var __async$l = (__this, __arguments, generator) => {
3587
3533
  return new Promise((resolve, reject) => {
3588
3534
  var fulfilled = (value) => {
@@ -3605,48 +3551,48 @@ var __async$l = (__this, __arguments, generator) => {
3605
3551
  };
3606
3552
  function fetchNgwLayerItem(options) {
3607
3553
  return __async$l(this, null, function* () {
3608
- const params = __spreadValues$o({}, FEATURE_REQUEST_PARAMS);
3554
+ const params = __spreadValues$q({}, FEATURE_REQUEST_PARAMS);
3609
3555
  updateItemRequestParam(params, options);
3610
3556
  const resp = yield options.connector.route("feature_layer.feature.item", {
3611
3557
  id: Number(options.resourceId),
3612
3558
  fid: options.featureId
3613
- }).get(__spreadProps$d(__spreadValues$o({}, options), { query: params }));
3559
+ }).get(__spreadProps$f(__spreadValues$q({}, options), { query: params }));
3614
3560
  const toGeojson = () => __async$l(null, null, function* () {
3615
3561
  if (resp.geom) {
3616
3562
  return createGeoJsonFeature(resp);
3617
3563
  } else {
3618
- const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$d(__spreadValues$o({}, options), {
3564
+ const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$f(__spreadValues$q({}, options), {
3619
3565
  geom: true,
3620
3566
  fields: null,
3621
3567
  extensions: null
3622
3568
  }));
3623
3569
  const geom = onlyGeomItem.geom;
3624
- return createGeoJsonFeature(__spreadProps$d(__spreadValues$o({}, resp), { geom }));
3570
+ return createGeoJsonFeature(__spreadProps$f(__spreadValues$q({}, resp), { geom }));
3625
3571
  }
3626
3572
  });
3627
- return __spreadProps$d(__spreadValues$o({}, resp), {
3573
+ return __spreadProps$f(__spreadValues$q({}, resp), {
3628
3574
  toGeojson
3629
3575
  });
3630
3576
  });
3631
3577
  }
3632
3578
 
3633
- var __defProp$x = Object.defineProperty;
3634
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3635
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3636
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3637
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3638
- var __spreadValues$n = (a, b) => {
3579
+ var __defProp$z = Object.defineProperty;
3580
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
3581
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
3582
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
3583
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3584
+ var __spreadValues$p = (a, b) => {
3639
3585
  for (var prop in b || (b = {}))
3640
- if (__hasOwnProp$o.call(b, prop))
3641
- __defNormalProp$x(a, prop, b[prop]);
3642
- if (__getOwnPropSymbols$o)
3643
- for (var prop of __getOwnPropSymbols$o(b)) {
3644
- if (__propIsEnum$o.call(b, prop))
3645
- __defNormalProp$x(a, prop, b[prop]);
3586
+ if (__hasOwnProp$q.call(b, prop))
3587
+ __defNormalProp$z(a, prop, b[prop]);
3588
+ if (__getOwnPropSymbols$q)
3589
+ for (var prop of __getOwnPropSymbols$q(b)) {
3590
+ if (__propIsEnum$q.call(b, prop))
3591
+ __defNormalProp$z(a, prop, b[prop]);
3646
3592
  }
3647
3593
  return a;
3648
3594
  };
3649
- var __publicField$o = (obj, key, value) => __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3595
+ var __publicField$o = (obj, key, value) => __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3650
3596
  class BookmarkItem {
3651
3597
  constructor(options) {
3652
3598
  this.options = options;
@@ -3683,7 +3629,7 @@ class BookmarkItem {
3683
3629
  if (this.item.geom) {
3684
3630
  return Promise.resolve(createGeoJsonFeature(this.item));
3685
3631
  } else {
3686
- return fetchNgwLayerItem(__spreadValues$n({
3632
+ return fetchNgwLayerItem(__spreadValues$p({
3687
3633
  resourceId: this.resourceId,
3688
3634
  featureId: this.item.id,
3689
3635
  connector: this.options.connector,
@@ -3701,9 +3647,9 @@ class BookmarkItem {
3701
3647
 
3702
3648
  const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
3703
3649
 
3704
- var __defProp$w = Object.defineProperty;
3705
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3706
- var __publicField$n = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3650
+ var __defProp$y = Object.defineProperty;
3651
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3652
+ var __publicField$n = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3707
3653
  class BaseProperty {
3708
3654
  constructor(name, item, options) {
3709
3655
  __publicField$n(this, "options");
@@ -3816,26 +3762,26 @@ class BaseProperty {
3816
3762
  }
3817
3763
  }
3818
3764
 
3819
- var __defProp$v = Object.defineProperty;
3820
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3821
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3822
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3823
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3824
- var __spreadValues$m = (a, b) => {
3765
+ var __defProp$x = Object.defineProperty;
3766
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
3767
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
3768
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
3769
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3770
+ var __spreadValues$o = (a, b) => {
3825
3771
  for (var prop in b || (b = {}))
3826
- if (__hasOwnProp$n.call(b, prop))
3827
- __defNormalProp$v(a, prop, b[prop]);
3828
- if (__getOwnPropSymbols$n)
3829
- for (var prop of __getOwnPropSymbols$n(b)) {
3830
- if (__propIsEnum$n.call(b, prop))
3831
- __defNormalProp$v(a, prop, b[prop]);
3772
+ if (__hasOwnProp$p.call(b, prop))
3773
+ __defNormalProp$x(a, prop, b[prop]);
3774
+ if (__getOwnPropSymbols$p)
3775
+ for (var prop of __getOwnPropSymbols$p(b)) {
3776
+ if (__propIsEnum$p.call(b, prop))
3777
+ __defNormalProp$x(a, prop, b[prop]);
3832
3778
  }
3833
3779
  return a;
3834
3780
  };
3835
- var __publicField$m = (obj, key, value) => __defNormalProp$v(obj, key + "" , value);
3781
+ var __publicField$m = (obj, key, value) => __defNormalProp$x(obj, key + "" , value);
3836
3782
  const _CheckProperty = class _CheckProperty extends BaseProperty {
3837
3783
  constructor(name, item, options) {
3838
- super(name, item, __spreadValues$m(__spreadValues$m({}, _CheckProperty.options), options));
3784
+ super(name, item, __spreadValues$o(__spreadValues$o({}, _CheckProperty.options), options));
3839
3785
  this.set(this.get());
3840
3786
  }
3841
3787
  update(value, options) {
@@ -3916,13 +3862,13 @@ const _CheckProperty = class _CheckProperty extends BaseProperty {
3916
3862
  _blockChild(item, options) {
3917
3863
  const prop = item.properties && item.properties.property(this.name);
3918
3864
  if (prop && prop.block) {
3919
- prop.block(__spreadValues$m({ silent: true }, options || {}));
3865
+ prop.block(__spreadValues$o({ silent: true }, options || {}));
3920
3866
  }
3921
3867
  }
3922
3868
  _unBlockChild(item, options) {
3923
3869
  const prop = item.properties && item.properties.property(this.name);
3924
3870
  if (prop && prop.unBlock) {
3925
- prop.unBlock(__spreadValues$m({ silent: true }, options || {}));
3871
+ prop.unBlock(__spreadValues$o({ silent: true }, options || {}));
3926
3872
  }
3927
3873
  }
3928
3874
  _propagation(value, options) {
@@ -3932,7 +3878,7 @@ const _CheckProperty = class _CheckProperty extends BaseProperty {
3932
3878
  const child = children[fry];
3933
3879
  const property = child.properties && child.properties.property(this.name);
3934
3880
  if (property) {
3935
- property.set(value, __spreadValues$m(__spreadValues$m({}, options), {
3881
+ property.set(value, __spreadValues$o(__spreadValues$o({}, options), {
3936
3882
  propagation: true,
3937
3883
  bubble: false
3938
3884
  }));
@@ -3950,23 +3896,23 @@ __publicField$m(_CheckProperty, "options", {
3950
3896
  });
3951
3897
  let CheckProperty = _CheckProperty;
3952
3898
 
3953
- var __defProp$u = Object.defineProperty;
3954
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
3955
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
3956
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
3957
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3958
- var __spreadValues$l = (a, b) => {
3899
+ var __defProp$w = Object.defineProperty;
3900
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3901
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3902
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3903
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3904
+ var __spreadValues$n = (a, b) => {
3959
3905
  for (var prop in b || (b = {}))
3960
- if (__hasOwnProp$m.call(b, prop))
3961
- __defNormalProp$u(a, prop, b[prop]);
3962
- if (__getOwnPropSymbols$m)
3963
- for (var prop of __getOwnPropSymbols$m(b)) {
3964
- if (__propIsEnum$m.call(b, prop))
3965
- __defNormalProp$u(a, prop, b[prop]);
3906
+ if (__hasOwnProp$o.call(b, prop))
3907
+ __defNormalProp$w(a, prop, b[prop]);
3908
+ if (__getOwnPropSymbols$o)
3909
+ for (var prop of __getOwnPropSymbols$o(b)) {
3910
+ if (__propIsEnum$o.call(b, prop))
3911
+ __defNormalProp$w(a, prop, b[prop]);
3966
3912
  }
3967
3913
  return a;
3968
3914
  };
3969
- var __publicField$l = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3915
+ var __publicField$l = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3970
3916
  const BOOLEAN_TYPE = "boolean";
3971
3917
  const STRING_TYPE = "string";
3972
3918
  const _ItemProperties = class _ItemProperties {
@@ -4014,7 +3960,7 @@ const _ItemProperties = class _ItemProperties {
4014
3960
  _setPropertyHandler(propOpt) {
4015
3961
  const Handler = this._getHandler(propOpt);
4016
3962
  if (Handler && propOpt.name) {
4017
- const options = __spreadValues$l({}, propOpt);
3963
+ const options = __spreadValues$n({}, propOpt);
4018
3964
  this._properties[propOpt.name] = new Handler(
4019
3965
  propOpt.name,
4020
3966
  this.item,
@@ -4144,9 +4090,9 @@ function treeEvery_(item, filterFunc = (x) => !!x, relation, _filtered = []) {
4144
4090
  return true;
4145
4091
  }
4146
4092
 
4147
- var __defProp$t = Object.defineProperty;
4148
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4149
- var __publicField$k = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
4093
+ var __defProp$v = Object.defineProperty;
4094
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4095
+ var __publicField$k = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
4150
4096
  class TreeHelper {
4151
4097
  constructor(item) {
4152
4098
  __publicField$k(this, "item");
@@ -4214,23 +4160,23 @@ class TreeHelper {
4214
4160
  }
4215
4161
  }
4216
4162
 
4217
- var __defProp$s = Object.defineProperty;
4218
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
4219
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
4220
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
4221
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4222
- var __spreadValues$k = (a, b) => {
4163
+ var __defProp$u = Object.defineProperty;
4164
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
4165
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
4166
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
4167
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4168
+ var __spreadValues$m = (a, b) => {
4223
4169
  for (var prop in b || (b = {}))
4224
- if (__hasOwnProp$l.call(b, prop))
4225
- __defNormalProp$s(a, prop, b[prop]);
4226
- if (__getOwnPropSymbols$l)
4227
- for (var prop of __getOwnPropSymbols$l(b)) {
4228
- if (__propIsEnum$l.call(b, prop))
4229
- __defNormalProp$s(a, prop, b[prop]);
4170
+ if (__hasOwnProp$n.call(b, prop))
4171
+ __defNormalProp$u(a, prop, b[prop]);
4172
+ if (__getOwnPropSymbols$n)
4173
+ for (var prop of __getOwnPropSymbols$n(b)) {
4174
+ if (__propIsEnum$n.call(b, prop))
4175
+ __defNormalProp$u(a, prop, b[prop]);
4230
4176
  }
4231
4177
  return a;
4232
4178
  };
4233
- var __publicField$j = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
4179
+ var __publicField$j = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
4234
4180
  let ID$1 = 0;
4235
4181
  class Item {
4236
4182
  constructor(options) {
@@ -4239,7 +4185,7 @@ class Item {
4239
4185
  __publicField$j(this, "tree");
4240
4186
  __publicField$j(this, "id", ID$1);
4241
4187
  ID$1 += 1;
4242
- this.options = __spreadValues$k({}, options);
4188
+ this.options = __spreadValues$m({}, options);
4243
4189
  this.tree = new TreeHelper(this);
4244
4190
  }
4245
4191
  initProperties() {
@@ -4295,26 +4241,26 @@ function createLayerSymbolParam(resourceId, intervals) {
4295
4241
  return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
4296
4242
  }
4297
4243
 
4298
- var __defProp$r = Object.defineProperty;
4299
- var __defProps$c = Object.defineProperties;
4300
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4301
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
4302
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
4303
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
4304
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4305
- var __spreadValues$j = (a, b) => {
4244
+ var __defProp$t = Object.defineProperty;
4245
+ var __defProps$e = Object.defineProperties;
4246
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
4247
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
4248
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
4249
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
4250
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4251
+ var __spreadValues$l = (a, b) => {
4306
4252
  for (var prop in b || (b = {}))
4307
- if (__hasOwnProp$k.call(b, prop))
4308
- __defNormalProp$r(a, prop, b[prop]);
4309
- if (__getOwnPropSymbols$k)
4310
- for (var prop of __getOwnPropSymbols$k(b)) {
4311
- if (__propIsEnum$k.call(b, prop))
4312
- __defNormalProp$r(a, prop, b[prop]);
4253
+ if (__hasOwnProp$m.call(b, prop))
4254
+ __defNormalProp$t(a, prop, b[prop]);
4255
+ if (__getOwnPropSymbols$m)
4256
+ for (var prop of __getOwnPropSymbols$m(b)) {
4257
+ if (__propIsEnum$m.call(b, prop))
4258
+ __defNormalProp$t(a, prop, b[prop]);
4313
4259
  }
4314
4260
  return a;
4315
4261
  };
4316
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
4317
- var __publicField$i = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
4262
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
4263
+ var __publicField$i = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
4318
4264
  var __async$k = (__this, __arguments, generator) => {
4319
4265
  return new Promise((resolve, reject) => {
4320
4266
  var fulfilled = (value) => {
@@ -4379,14 +4325,14 @@ class Legend {
4379
4325
  if (this.connector) {
4380
4326
  const ngwLegend = yield this.connector.route("render.legend_symbols", {
4381
4327
  id: this.resourceId
4382
- }).get(__spreadValues$j({}, options));
4328
+ }).get(__spreadValues$l({}, options));
4383
4329
  this.legend = ngwLegend;
4384
4330
  return this.createLegend(ngwLegend);
4385
4331
  }
4386
4332
  });
4387
4333
  }
4388
4334
  createLegend(items) {
4389
- return items.map((params) => __spreadProps$c(__spreadValues$j({}, params), {
4335
+ return items.map((params) => __spreadProps$e(__spreadValues$l({}, params), {
4390
4336
  /** @deprecated use display_name instead */
4391
4337
  name: params.display_name,
4392
4338
  /** @deprecated use icon instead */
@@ -4416,7 +4362,7 @@ class Legend {
4416
4362
  }
4417
4363
  if (this.layer.updateLayer) {
4418
4364
  this.layer.updateLayer({
4419
- params: __spreadValues$j({}, createLayerSymbolParam(this.resourceId, intervals))
4365
+ params: __spreadValues$l({}, createLayerSymbolParam(this.resourceId, intervals))
4420
4366
  });
4421
4367
  }
4422
4368
  if (intervals.length) {
@@ -4453,26 +4399,26 @@ class Legend {
4453
4399
  }
4454
4400
  }
4455
4401
 
4456
- var __defProp$q = Object.defineProperty;
4457
- var __defProps$b = Object.defineProperties;
4458
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
4459
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
4460
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
4461
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
4462
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4463
- var __spreadValues$i = (a, b) => {
4402
+ var __defProp$s = Object.defineProperty;
4403
+ var __defProps$d = Object.defineProperties;
4404
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
4405
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
4406
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
4407
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
4408
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4409
+ var __spreadValues$k = (a, b) => {
4464
4410
  for (var prop in b || (b = {}))
4465
- if (__hasOwnProp$j.call(b, prop))
4466
- __defNormalProp$q(a, prop, b[prop]);
4467
- if (__getOwnPropSymbols$j)
4468
- for (var prop of __getOwnPropSymbols$j(b)) {
4469
- if (__propIsEnum$j.call(b, prop))
4470
- __defNormalProp$q(a, prop, b[prop]);
4411
+ if (__hasOwnProp$l.call(b, prop))
4412
+ __defNormalProp$s(a, prop, b[prop]);
4413
+ if (__getOwnPropSymbols$l)
4414
+ for (var prop of __getOwnPropSymbols$l(b)) {
4415
+ if (__propIsEnum$l.call(b, prop))
4416
+ __defNormalProp$s(a, prop, b[prop]);
4471
4417
  }
4472
4418
  return a;
4473
4419
  };
4474
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
4475
- var __publicField$h = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4420
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
4421
+ var __publicField$h = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
4476
4422
  var __async$j = (__this, __arguments, generator) => {
4477
4423
  return new Promise((resolve, reject) => {
4478
4424
  var fulfilled = (value) => {
@@ -4502,7 +4448,7 @@ const _NgwWebmapItem = class _NgwWebmapItem extends Item {
4502
4448
  parent,
4503
4449
  noInit
4504
4450
  }) {
4505
- super(__spreadValues$i(__spreadValues$i({}, _NgwWebmapItem.options), options));
4451
+ super(__spreadValues$k(__spreadValues$k({}, _NgwWebmapItem.options), options));
4506
4452
  __publicField$h(this, "item");
4507
4453
  __publicField$h(this, "webMap");
4508
4454
  __publicField$h(this, "connector");
@@ -4598,7 +4544,7 @@ const _NgwWebmapItem = class _NgwWebmapItem extends Item {
4598
4544
  getItemOptions(item) {
4599
4545
  const transparency = item.item_type === "layer" && item.layer_transparency;
4600
4546
  const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
4601
- const options = __spreadProps$b(__spreadValues$i({
4547
+ const options = __spreadProps$d(__spreadValues$k({
4602
4548
  visibility: false,
4603
4549
  name: item.display_name
4604
4550
  }, this.options), {
@@ -4618,7 +4564,7 @@ const _NgwWebmapItem = class _NgwWebmapItem extends Item {
4618
4564
  }
4619
4565
  if (item.item_type === "layer") {
4620
4566
  const { maxZoom, minZoom } = this._getZoomRange(item);
4621
- Object.assign(options, __spreadProps$b(__spreadValues$i({
4567
+ Object.assign(options, __spreadProps$d(__spreadValues$k({
4622
4568
  updateWmsParams: item.updateWmsParams
4623
4569
  }, options), {
4624
4570
  url: item.url,
@@ -4762,26 +4708,26 @@ __publicField$h(_NgwWebmapItem, "options", {
4762
4708
  });
4763
4709
  let NgwWebmapItem = _NgwWebmapItem;
4764
4710
 
4765
- var __defProp$p = Object.defineProperty;
4766
- var __defProps$a = Object.defineProperties;
4767
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
4768
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
4769
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
4770
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
4771
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4772
- var __spreadValues$h = (a, b) => {
4711
+ var __defProp$r = Object.defineProperty;
4712
+ var __defProps$c = Object.defineProperties;
4713
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4714
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
4715
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
4716
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
4717
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4718
+ var __spreadValues$j = (a, b) => {
4773
4719
  for (var prop in b || (b = {}))
4774
- if (__hasOwnProp$i.call(b, prop))
4775
- __defNormalProp$p(a, prop, b[prop]);
4776
- if (__getOwnPropSymbols$i)
4777
- for (var prop of __getOwnPropSymbols$i(b)) {
4778
- if (__propIsEnum$i.call(b, prop))
4779
- __defNormalProp$p(a, prop, b[prop]);
4720
+ if (__hasOwnProp$k.call(b, prop))
4721
+ __defNormalProp$r(a, prop, b[prop]);
4722
+ if (__getOwnPropSymbols$k)
4723
+ for (var prop of __getOwnPropSymbols$k(b)) {
4724
+ if (__propIsEnum$k.call(b, prop))
4725
+ __defNormalProp$r(a, prop, b[prop]);
4780
4726
  }
4781
4727
  return a;
4782
4728
  };
4783
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
4784
- var __publicField$g = (obj, key, value) => __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
4729
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
4730
+ var __publicField$g = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
4785
4731
  var __async$i = (__this, __arguments, generator) => {
4786
4732
  return new Promise((resolve, reject) => {
4787
4733
  var fulfilled = (value) => {
@@ -4834,7 +4780,7 @@ class NgwWebmapLayerAdapter {
4834
4780
  addLayer(options) {
4835
4781
  return __async$i(this, null, function* () {
4836
4782
  var _a;
4837
- this.options = __spreadValues$h(__spreadValues$h({}, this.options), options);
4783
+ this.options = __spreadValues$j(__spreadValues$j({}, this.options), options);
4838
4784
  this.layer = yield this._getWebMapLayerItem();
4839
4785
  const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
4840
4786
  if (this.options.useExtentConstrained && this._extent && extentConstrained) {
@@ -4913,7 +4859,7 @@ class NgwWebmapLayerAdapter {
4913
4859
  (x) => x.label_field
4914
4860
  );
4915
4861
  const keyname = labelField && labelField.keyname;
4916
- return fetchNgwLayerItems(__spreadValues$h({
4862
+ return fetchNgwLayerItems(__spreadValues$j({
4917
4863
  connector,
4918
4864
  resourceId: bookmarkResId,
4919
4865
  geom: false,
@@ -4982,7 +4928,7 @@ class NgwWebmapLayerAdapter {
4982
4928
  const connector = this.options.connector;
4983
4929
  const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
4984
4930
  const withCredentials = connector.withCredentials;
4985
- const options = __spreadProps$a(__spreadValues$h({}, this.options), {
4931
+ const options = __spreadProps$c(__spreadValues$j({}, this.options), {
4986
4932
  withCredentials,
4987
4933
  headers,
4988
4934
  drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
@@ -5088,7 +5034,7 @@ class NgwWebmapLayerAdapter {
5088
5034
  webMap,
5089
5035
  baseUrl: this.options.connector.options.baseUrl || ""
5090
5036
  });
5091
- item = __spreadValues$h(__spreadValues$h({}, layerItem), layerAdapterOptions);
5037
+ item = __spreadValues$j(__spreadValues$j({}, layerItem), layerAdapterOptions);
5092
5038
  }
5093
5039
  }
5094
5040
  if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
@@ -5098,40 +5044,40 @@ class NgwWebmapLayerAdapter {
5098
5044
  }
5099
5045
  }
5100
5046
 
5101
- var __defProp$o = Object.defineProperty;
5102
- var __defProps$9 = Object.defineProperties;
5103
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
5104
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
5105
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
5106
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
5107
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5108
- var __spreadValues$g = (a, b) => {
5047
+ var __defProp$q = Object.defineProperty;
5048
+ var __defProps$b = Object.defineProperties;
5049
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
5050
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
5051
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
5052
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
5053
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5054
+ var __spreadValues$i = (a, b) => {
5109
5055
  for (var prop in b || (b = {}))
5110
- if (__hasOwnProp$h.call(b, prop))
5111
- __defNormalProp$o(a, prop, b[prop]);
5112
- if (__getOwnPropSymbols$h)
5113
- for (var prop of __getOwnPropSymbols$h(b)) {
5114
- if (__propIsEnum$h.call(b, prop))
5115
- __defNormalProp$o(a, prop, b[prop]);
5056
+ if (__hasOwnProp$j.call(b, prop))
5057
+ __defNormalProp$q(a, prop, b[prop]);
5058
+ if (__getOwnPropSymbols$j)
5059
+ for (var prop of __getOwnPropSymbols$j(b)) {
5060
+ if (__propIsEnum$j.call(b, prop))
5061
+ __defNormalProp$q(a, prop, b[prop]);
5116
5062
  }
5117
5063
  return a;
5118
5064
  };
5119
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
5120
- var __objRest$3 = (source, exclude) => {
5065
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
5066
+ var __objRest$4 = (source, exclude) => {
5121
5067
  var target = {};
5122
5068
  for (var prop in source)
5123
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
5069
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
5124
5070
  target[prop] = source[prop];
5125
- if (source != null && __getOwnPropSymbols$h)
5126
- for (var prop of __getOwnPropSymbols$h(source)) {
5127
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
5071
+ if (source != null && __getOwnPropSymbols$j)
5072
+ for (var prop of __getOwnPropSymbols$j(source)) {
5073
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
5128
5074
  target[prop] = source[prop];
5129
5075
  }
5130
5076
  return target;
5131
5077
  };
5132
5078
  function updateImageParams(params, resourceId) {
5133
- const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$3(_a, ["bbox", "width", "height", "nd"]);
5134
- return __spreadProps$9(__spreadValues$g({}, rest), {
5079
+ const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$4(_a, ["bbox", "width", "height", "nd"]);
5080
+ return __spreadProps$b(__spreadValues$i({}, rest), {
5135
5081
  resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
5136
5082
  extent: bbox,
5137
5083
  size: width + "," + height,
@@ -5166,7 +5112,7 @@ function createNgwLayerAdapter(options, webMap, connector) {
5166
5112
  function extendNgwWebmapLayerAdapter(opt) {
5167
5113
  class A extends NgwWebmapLayerAdapter {
5168
5114
  constructor(map, options) {
5169
- options = __spreadValues$g(__spreadValues$g({}, opt), options);
5115
+ options = __spreadValues$i(__spreadValues$i({}, opt), options);
5170
5116
  super(map, options);
5171
5117
  }
5172
5118
  }
@@ -5245,35 +5191,35 @@ function updateQmsOptions(qms) {
5245
5191
  };
5246
5192
  }
5247
5193
 
5248
- var __defProp$n = Object.defineProperty;
5249
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
5250
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
5251
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
5252
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5253
- var __spreadValues$f = (a, b) => {
5194
+ var __defProp$p = Object.defineProperty;
5195
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
5196
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
5197
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
5198
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5199
+ var __spreadValues$h = (a, b) => {
5254
5200
  for (var prop in b || (b = {}))
5255
- if (__hasOwnProp$g.call(b, prop))
5256
- __defNormalProp$n(a, prop, b[prop]);
5257
- if (__getOwnPropSymbols$g)
5258
- for (var prop of __getOwnPropSymbols$g(b)) {
5259
- if (__propIsEnum$g.call(b, prop))
5260
- __defNormalProp$n(a, prop, b[prop]);
5201
+ if (__hasOwnProp$i.call(b, prop))
5202
+ __defNormalProp$p(a, prop, b[prop]);
5203
+ if (__getOwnPropSymbols$i)
5204
+ for (var prop of __getOwnPropSymbols$i(b)) {
5205
+ if (__propIsEnum$i.call(b, prop))
5206
+ __defNormalProp$p(a, prop, b[prop]);
5261
5207
  }
5262
5208
  return a;
5263
5209
  };
5264
- var __objRest$2 = (source, exclude) => {
5210
+ var __objRest$3 = (source, exclude) => {
5265
5211
  var target = {};
5266
5212
  for (var prop in source)
5267
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
5213
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
5268
5214
  target[prop] = source[prop];
5269
- if (source != null && __getOwnPropSymbols$g)
5270
- for (var prop of __getOwnPropSymbols$g(source)) {
5271
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
5215
+ if (source != null && __getOwnPropSymbols$i)
5216
+ for (var prop of __getOwnPropSymbols$i(source)) {
5217
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
5272
5218
  target[prop] = source[prop];
5273
5219
  }
5274
5220
  return target;
5275
5221
  };
5276
- var __publicField$f = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
5222
+ var __publicField$f = (obj, key, value) => __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
5277
5223
  var __async$h = (__this, __arguments, generator) => {
5278
5224
  return new Promise((resolve, reject) => {
5279
5225
  var fulfilled = (value) => {
@@ -5298,7 +5244,7 @@ const URL$1 = "https://qms.nextgis.com";
5298
5244
  function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5299
5245
  let webMap;
5300
5246
  if ("webMap" in webMapOrOptions) {
5301
- const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$2(_a, ["webMap", "url"]);
5247
+ const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$3(_a, ["webMap", "url"]);
5302
5248
  webMap = webMap_;
5303
5249
  if (url_) {
5304
5250
  url = url_;
@@ -5318,7 +5264,7 @@ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5318
5264
  __publicField$f(this, "options");
5319
5265
  __publicField$f(this, "map");
5320
5266
  this.map = map;
5321
- const opt = __spreadValues$f(__spreadValues$f({}, createOpt), options);
5267
+ const opt = __spreadValues$h(__spreadValues$h({}, createOpt), options);
5322
5268
  this.options = opt;
5323
5269
  this.options.baselayer = true;
5324
5270
  if (opt.qms) {
@@ -5346,7 +5292,7 @@ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5346
5292
  "hideLayer"
5347
5293
  ]);
5348
5294
  if (type === "TILE") {
5349
- options = __spreadValues$f(__spreadValues$f({
5295
+ options = __spreadValues$h(__spreadValues$h({
5350
5296
  order: 0,
5351
5297
  maxZoom: webMap.options.maxZoom,
5352
5298
  minZoom: webMap.options.minZoom
@@ -5370,30 +5316,30 @@ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5370
5316
  return QmsAdapter;
5371
5317
  }
5372
5318
 
5373
- var __defProp$m = Object.defineProperty;
5374
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
5375
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
5376
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
5377
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5378
- var __spreadValues$e = (a, b) => {
5319
+ var __defProp$o = Object.defineProperty;
5320
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
5321
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
5322
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
5323
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5324
+ var __spreadValues$g = (a, b) => {
5379
5325
  for (var prop in b || (b = {}))
5380
- if (__hasOwnProp$f.call(b, prop))
5381
- __defNormalProp$m(a, prop, b[prop]);
5382
- if (__getOwnPropSymbols$f)
5383
- for (var prop of __getOwnPropSymbols$f(b)) {
5384
- if (__propIsEnum$f.call(b, prop))
5385
- __defNormalProp$m(a, prop, b[prop]);
5326
+ if (__hasOwnProp$h.call(b, prop))
5327
+ __defNormalProp$o(a, prop, b[prop]);
5328
+ if (__getOwnPropSymbols$h)
5329
+ for (var prop of __getOwnPropSymbols$h(b)) {
5330
+ if (__propIsEnum$h.call(b, prop))
5331
+ __defNormalProp$o(a, prop, b[prop]);
5386
5332
  }
5387
5333
  return a;
5388
5334
  };
5389
- var __publicField$e = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
5335
+ var __publicField$e = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
5390
5336
  class QmsKit {
5391
5337
  constructor(options) {
5392
5338
  __publicField$e(this, "options", {
5393
5339
  url: "https://qms.nextgis.com"
5394
5340
  });
5395
5341
  __publicField$e(this, "url");
5396
- this.options = __spreadValues$e(__spreadValues$e({}, this.options), options);
5342
+ this.options = __spreadValues$g(__spreadValues$g({}, this.options), options);
5397
5343
  this.url = this.options.url;
5398
5344
  }
5399
5345
  getLayerAdapters() {
@@ -5412,27 +5358,27 @@ __publicField$e(QmsKit, "utils", {
5412
5358
  createQmsAdapter
5413
5359
  });
5414
5360
 
5415
- var __defProp$l = Object.defineProperty;
5416
- var __defProps$8 = Object.defineProperties;
5417
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
5418
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
5361
+ var __defProp$n = Object.defineProperty;
5362
+ var __defProps$a = Object.defineProperties;
5363
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
5364
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
5419
5365
  var __getProtoOf$2 = Object.getPrototypeOf;
5420
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
5421
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
5366
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
5367
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
5422
5368
  var __reflectGet$2 = Reflect.get;
5423
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5424
- var __spreadValues$d = (a, b) => {
5369
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5370
+ var __spreadValues$f = (a, b) => {
5425
5371
  for (var prop in b || (b = {}))
5426
- if (__hasOwnProp$e.call(b, prop))
5427
- __defNormalProp$l(a, prop, b[prop]);
5428
- if (__getOwnPropSymbols$e)
5429
- for (var prop of __getOwnPropSymbols$e(b)) {
5430
- if (__propIsEnum$e.call(b, prop))
5431
- __defNormalProp$l(a, prop, b[prop]);
5372
+ if (__hasOwnProp$g.call(b, prop))
5373
+ __defNormalProp$n(a, prop, b[prop]);
5374
+ if (__getOwnPropSymbols$g)
5375
+ for (var prop of __getOwnPropSymbols$g(b)) {
5376
+ if (__propIsEnum$g.call(b, prop))
5377
+ __defNormalProp$n(a, prop, b[prop]);
5432
5378
  }
5433
5379
  return a;
5434
5380
  };
5435
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
5381
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
5436
5382
  var __superGet$2 = (cls, obj, key) => __reflectGet$2(__getProtoOf$2(cls), key, obj);
5437
5383
  var __async$g = (__this, __arguments, generator) => {
5438
5384
  return new Promise((resolve, reject) => {
@@ -5478,7 +5424,7 @@ function createBasemapLayerAdapter(_0) {
5478
5424
  addLayer(opt) {
5479
5425
  return __async$g(this, null, function* () {
5480
5426
  if (url) {
5481
- return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$8(__spreadValues$d({}, opt), { url }));
5427
+ return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$a(__spreadValues$f({}, opt), { url }));
5482
5428
  }
5483
5429
  });
5484
5430
  }
@@ -5587,28 +5533,28 @@ function getLayerFilterOptions(options) {
5587
5533
  return filterOptions;
5588
5534
  }
5589
5535
 
5590
- var __defProp$k = Object.defineProperty;
5591
- var __defProps$7 = Object.defineProperties;
5592
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
5593
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
5536
+ var __defProp$m = Object.defineProperty;
5537
+ var __defProps$9 = Object.defineProperties;
5538
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
5539
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
5594
5540
  var __getProtoOf$1 = Object.getPrototypeOf;
5595
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
5596
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
5541
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
5542
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
5597
5543
  var __reflectGet$1 = Reflect.get;
5598
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5599
- var __spreadValues$c = (a, b) => {
5544
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5545
+ var __spreadValues$e = (a, b) => {
5600
5546
  for (var prop in b || (b = {}))
5601
- if (__hasOwnProp$d.call(b, prop))
5602
- __defNormalProp$k(a, prop, b[prop]);
5603
- if (__getOwnPropSymbols$d)
5604
- for (var prop of __getOwnPropSymbols$d(b)) {
5605
- if (__propIsEnum$d.call(b, prop))
5606
- __defNormalProp$k(a, prop, b[prop]);
5547
+ if (__hasOwnProp$f.call(b, prop))
5548
+ __defNormalProp$m(a, prop, b[prop]);
5549
+ if (__getOwnPropSymbols$f)
5550
+ for (var prop of __getOwnPropSymbols$f(b)) {
5551
+ if (__propIsEnum$f.call(b, prop))
5552
+ __defNormalProp$m(a, prop, b[prop]);
5607
5553
  }
5608
5554
  return a;
5609
5555
  };
5610
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
5611
- var __publicField$d = (obj, key, value) => __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
5556
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
5557
+ var __publicField$d = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
5612
5558
  var __superGet$1 = (cls, obj, key) => __reflectGet$1(__getProtoOf$1(cls), key, obj);
5613
5559
  var __async$e = (__this, __arguments, generator) => {
5614
5560
  return new Promise((resolve, reject) => {
@@ -5664,7 +5610,7 @@ function createGeoJsonAdapter(props) {
5664
5610
  filterOpt = filterOpt || {};
5665
5611
  filterOpt.signal = internalSignal;
5666
5612
  _lastFilterArgs = { filters, options: filterOpt };
5667
- return fetchNgwLayerFeatureCollection(__spreadValues$c({
5613
+ return fetchNgwLayerFeatureCollection(__spreadValues$e({
5668
5614
  resourceId,
5669
5615
  filters,
5670
5616
  connector,
@@ -5699,9 +5645,9 @@ function createGeoJsonAdapter(props) {
5699
5645
  }
5700
5646
  if (options.adapterOptions) {
5701
5647
  if (addLayerOptionsPriority) {
5702
- opt = __spreadValues$c(__spreadValues$c({}, options.adapterOptions), opt);
5648
+ opt = __spreadValues$e(__spreadValues$e({}, options.adapterOptions), opt);
5703
5649
  } else {
5704
- opt = __spreadValues$c(__spreadValues$c({}, opt), options.adapterOptions);
5650
+ opt = __spreadValues$e(__spreadValues$e({}, opt), options.adapterOptions);
5705
5651
  }
5706
5652
  }
5707
5653
  if (opt.data && Object.keys(opt.data).length === 0) {
@@ -5786,7 +5732,7 @@ function createGeoJsonAdapter(props) {
5786
5732
  try {
5787
5733
  this.emitter.emit("preupdate", filterArgs);
5788
5734
  webMap._emitLayerEvent("layer:preupdate", options.id || "", filterArgs);
5789
- const data = yield getData(filterArgs.filters, __spreadProps$7(__spreadValues$c({}, filterArgs.options), {
5735
+ const data = yield getData(filterArgs.filters, __spreadProps$9(__spreadValues$e({}, filterArgs.options), {
5790
5736
  srs: this.options.srs
5791
5737
  }));
5792
5738
  let newData = data;
@@ -5829,7 +5775,7 @@ function createGeoJsonAdapter(props) {
5829
5775
  abort();
5830
5776
  if (this.filter && _fullDataLoad) {
5831
5777
  this.filter((e) => {
5832
- const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$c({}, e.feature.properties));
5778
+ const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$e({}, e.feature.properties));
5833
5779
  if (props_) {
5834
5780
  return propertiesFilter(props_, filters);
5835
5781
  }
@@ -5839,7 +5785,7 @@ function createGeoJsonAdapter(props) {
5839
5785
  if (this.clearLayer) {
5840
5786
  this.clearLayer();
5841
5787
  }
5842
- const data = yield getData(filters, __spreadProps$7(__spreadValues$c({}, opt), {
5788
+ const data = yield getData(filters, __spreadProps$9(__spreadValues$e({}, opt), {
5843
5789
  srs: this.options.srs
5844
5790
  }));
5845
5791
  this.setData(data);
@@ -6067,38 +6013,38 @@ function createLayerFilterParam(resourceId, filter) {
6067
6013
  };
6068
6014
  }
6069
6015
 
6070
- var __defProp$j = Object.defineProperty;
6071
- var __defProps$6 = Object.defineProperties;
6072
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
6073
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
6074
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
6075
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
6076
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6077
- var __spreadValues$b = (a, b) => {
6016
+ var __defProp$l = Object.defineProperty;
6017
+ var __defProps$8 = Object.defineProperties;
6018
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
6019
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
6020
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
6021
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
6022
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6023
+ var __spreadValues$d = (a, b) => {
6078
6024
  for (var prop in b || (b = {}))
6079
- if (__hasOwnProp$c.call(b, prop))
6080
- __defNormalProp$j(a, prop, b[prop]);
6081
- if (__getOwnPropSymbols$c)
6082
- for (var prop of __getOwnPropSymbols$c(b)) {
6083
- if (__propIsEnum$c.call(b, prop))
6084
- __defNormalProp$j(a, prop, b[prop]);
6025
+ if (__hasOwnProp$e.call(b, prop))
6026
+ __defNormalProp$l(a, prop, b[prop]);
6027
+ if (__getOwnPropSymbols$e)
6028
+ for (var prop of __getOwnPropSymbols$e(b)) {
6029
+ if (__propIsEnum$e.call(b, prop))
6030
+ __defNormalProp$l(a, prop, b[prop]);
6085
6031
  }
6086
6032
  return a;
6087
6033
  };
6088
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
6089
- var __objRest$1 = (source, exclude) => {
6034
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
6035
+ var __objRest$2 = (source, exclude) => {
6090
6036
  var target = {};
6091
6037
  for (var prop in source)
6092
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
6038
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
6093
6039
  target[prop] = source[prop];
6094
- if (source != null && __getOwnPropSymbols$c)
6095
- for (var prop of __getOwnPropSymbols$c(source)) {
6096
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
6040
+ if (source != null && __getOwnPropSymbols$e)
6041
+ for (var prop of __getOwnPropSymbols$e(source)) {
6042
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
6097
6043
  target[prop] = source[prop];
6098
6044
  }
6099
6045
  return target;
6100
6046
  };
6101
- var __publicField$c = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
6047
+ var __publicField$c = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
6102
6048
  var __async$c = (__this, __arguments, generator) => {
6103
6049
  return new Promise((resolve, reject) => {
6104
6050
  var fulfilled = (value) => {
@@ -6162,16 +6108,16 @@ function createRasterAdapter(_0) {
6162
6108
  baseUrl: connector.options.baseUrl || ""
6163
6109
  });
6164
6110
  if (opt) {
6165
- const _a = layerOptions.adapterOptions || {}, { propertiesFilter } = _a, restAdapterOptions = __objRest$1(_a, ["propertiesFilter"]);
6111
+ const _a = layerOptions.adapterOptions || {}, { propertiesFilter } = _a, restAdapterOptions = __objRest$2(_a, ["propertiesFilter"]);
6166
6112
  const filterParams = createLayerFilterParam(
6167
6113
  resourceId,
6168
6114
  propertiesFilter
6169
6115
  );
6170
- const layerAdapterOptions = __spreadProps$6(__spreadValues$b(__spreadValues$b({}, opt), restAdapterOptions), {
6171
- params: __spreadValues$b({
6116
+ const layerAdapterOptions = __spreadProps$8(__spreadValues$d(__spreadValues$d({}, opt), restAdapterOptions), {
6117
+ params: __spreadValues$d({
6172
6118
  resource: resourceId
6173
6119
  }, filterParams),
6174
- url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$b({
6120
+ url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$d({
6175
6121
  resource: String(resourceId)
6176
6122
  }, filterParams)) : opt.url,
6177
6123
  layers: opt.layers || String(resourceId),
@@ -6180,17 +6126,17 @@ function createRasterAdapter(_0) {
6180
6126
  if (layerOptions.adapterOptions && defined(layerOptions.adapterOptions.setViewDelay)) {
6181
6127
  layerAdapterOptions.setViewDelay = layerOptions.adapterOptions.setViewDelay;
6182
6128
  }
6183
- this.options = __spreadValues$b(__spreadValues$b({}, this.options), layerAdapterOptions);
6129
+ this.options = __spreadValues$d(__spreadValues$d({}, this.options), layerAdapterOptions);
6184
6130
  }
6185
6131
  }
6186
6132
  addLayer(addOptions) {
6187
- return super.addLayer(__spreadValues$b(__spreadValues$b({}, this.options), addOptions));
6133
+ return super.addLayer(__spreadValues$d(__spreadValues$d({}, this.options), addOptions));
6188
6134
  }
6189
6135
  propertiesFilter(filters) {
6190
6136
  return __async$c(this, null, function* () {
6191
6137
  var _a;
6192
6138
  const opt = this.options;
6193
- const params = __spreadValues$b(__spreadValues$b({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
6139
+ const params = __spreadValues$d(__spreadValues$d({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
6194
6140
  opt.params = params;
6195
6141
  (_a = this.updateLayer) == null ? void 0 : _a.call(this, { params });
6196
6142
  });
@@ -6215,7 +6161,7 @@ function createRasterAdapter(_0) {
6215
6161
  return __async$c(this, null, function* () {
6216
6162
  const id = this.options.id;
6217
6163
  if (id !== void 0) {
6218
- const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$b({
6164
+ const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$d({
6219
6165
  cache: true
6220
6166
  }, options));
6221
6167
  const legend = new Legend({
@@ -6237,25 +6183,25 @@ function createRasterAdapter(_0) {
6237
6183
  });
6238
6184
  }
6239
6185
 
6240
- var __defProp$i = Object.defineProperty;
6241
- var __defProps$5 = Object.defineProperties;
6242
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
6243
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
6244
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
6245
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
6246
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6247
- var __spreadValues$a = (a, b) => {
6186
+ var __defProp$k = Object.defineProperty;
6187
+ var __defProps$7 = Object.defineProperties;
6188
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
6189
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
6190
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
6191
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
6192
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6193
+ var __spreadValues$c = (a, b) => {
6248
6194
  for (var prop in b || (b = {}))
6249
- if (__hasOwnProp$b.call(b, prop))
6250
- __defNormalProp$i(a, prop, b[prop]);
6251
- if (__getOwnPropSymbols$b)
6252
- for (var prop of __getOwnPropSymbols$b(b)) {
6253
- if (__propIsEnum$b.call(b, prop))
6254
- __defNormalProp$i(a, prop, b[prop]);
6195
+ if (__hasOwnProp$d.call(b, prop))
6196
+ __defNormalProp$k(a, prop, b[prop]);
6197
+ if (__getOwnPropSymbols$d)
6198
+ for (var prop of __getOwnPropSymbols$d(b)) {
6199
+ if (__propIsEnum$d.call(b, prop))
6200
+ __defNormalProp$k(a, prop, b[prop]);
6255
6201
  }
6256
6202
  return a;
6257
6203
  };
6258
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
6204
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
6259
6205
  var __async$b = (__this, __arguments, generator) => {
6260
6206
  return new Promise((resolve, reject) => {
6261
6207
  var fulfilled = (value) => {
@@ -6303,7 +6249,7 @@ function createAdapterFromFirstStyle(_0) {
6303
6249
  const firstStyle = childrenStyles && childrenStyles[0];
6304
6250
  if (firstStyle) {
6305
6251
  return createAsyncAdapter(
6306
- __spreadProps$5(__spreadValues$a({}, layerOptions), { resource: firstStyle.resource.id }),
6252
+ __spreadProps$7(__spreadValues$c({}, layerOptions), { resource: firstStyle.resource.id }),
6307
6253
  webMap,
6308
6254
  connector
6309
6255
  );
@@ -6326,7 +6272,7 @@ function createAsyncAdapter(options, webMap, connector) {
6326
6272
  }
6327
6273
  if (item) {
6328
6274
  const cls = item.resource.cls;
6329
- const layerOptions = __spreadProps$5(__spreadValues$a({}, options), {
6275
+ const layerOptions = __spreadProps$7(__spreadValues$c({}, options), {
6330
6276
  resource: resourceId
6331
6277
  });
6332
6278
  const adapterOptions = {
@@ -6363,10 +6309,10 @@ function createAsyncAdapter(options, webMap, connector) {
6363
6309
  item.resource.parent.id
6364
6310
  );
6365
6311
  if (parentItem) {
6366
- const parentOptions = __spreadProps$5(__spreadValues$a({}, options), {
6312
+ const parentOptions = __spreadProps$7(__spreadValues$c({}, options), {
6367
6313
  resource: item.resource.parent.id
6368
6314
  });
6369
- adapter = createGeoJsonAdapter(__spreadProps$5(__spreadValues$a({}, adapterOptions), {
6315
+ adapter = createGeoJsonAdapter(__spreadProps$7(__spreadValues$c({}, adapterOptions), {
6370
6316
  item: parentItem,
6371
6317
  layerOptions: parentOptions
6372
6318
  }));
@@ -6410,23 +6356,23 @@ function createAsyncAdapter(options, webMap, connector) {
6410
6356
  });
6411
6357
  }
6412
6358
 
6413
- var __defProp$h = Object.defineProperty;
6414
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
6415
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
6416
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
6417
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6418
- var __spreadValues$9 = (a, b) => {
6359
+ var __defProp$j = Object.defineProperty;
6360
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
6361
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
6362
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
6363
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6364
+ var __spreadValues$b = (a, b) => {
6419
6365
  for (var prop in b || (b = {}))
6420
- if (__hasOwnProp$a.call(b, prop))
6421
- __defNormalProp$h(a, prop, b[prop]);
6422
- if (__getOwnPropSymbols$a)
6423
- for (var prop of __getOwnPropSymbols$a(b)) {
6424
- if (__propIsEnum$a.call(b, prop))
6425
- __defNormalProp$h(a, prop, b[prop]);
6366
+ if (__hasOwnProp$c.call(b, prop))
6367
+ __defNormalProp$j(a, prop, b[prop]);
6368
+ if (__getOwnPropSymbols$c)
6369
+ for (var prop of __getOwnPropSymbols$c(b)) {
6370
+ if (__propIsEnum$c.call(b, prop))
6371
+ __defNormalProp$j(a, prop, b[prop]);
6426
6372
  }
6427
6373
  return a;
6428
6374
  };
6429
- var __publicField$b = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
6375
+ var __publicField$b = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
6430
6376
  var __async$a = (__this, __arguments, generator) => {
6431
6377
  return new Promise((resolve, reject) => {
6432
6378
  var fulfilled = (value) => {
@@ -6482,7 +6428,7 @@ class NgwKit {
6482
6428
  connector: this.connector,
6483
6429
  webMap
6484
6430
  };
6485
- const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$9({
6431
+ const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$b({
6486
6432
  visibility: true,
6487
6433
  fit: true,
6488
6434
  pixelRadius: this.options.pixelRadius
@@ -6513,23 +6459,23 @@ class NgwKit {
6513
6459
  }
6514
6460
  }
6515
6461
 
6516
- var __defProp$g = Object.defineProperty;
6517
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
6518
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
6519
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
6520
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6521
- var __spreadValues$8 = (a, b) => {
6462
+ var __defProp$i = Object.defineProperty;
6463
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
6464
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
6465
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
6466
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6467
+ var __spreadValues$a = (a, b) => {
6522
6468
  for (var prop in b || (b = {}))
6523
- if (__hasOwnProp$9.call(b, prop))
6524
- __defNormalProp$g(a, prop, b[prop]);
6525
- if (__getOwnPropSymbols$9)
6526
- for (var prop of __getOwnPropSymbols$9(b)) {
6527
- if (__propIsEnum$9.call(b, prop))
6528
- __defNormalProp$g(a, prop, b[prop]);
6469
+ if (__hasOwnProp$b.call(b, prop))
6470
+ __defNormalProp$i(a, prop, b[prop]);
6471
+ if (__getOwnPropSymbols$b)
6472
+ for (var prop of __getOwnPropSymbols$b(b)) {
6473
+ if (__propIsEnum$b.call(b, prop))
6474
+ __defNormalProp$i(a, prop, b[prop]);
6529
6475
  }
6530
6476
  return a;
6531
6477
  };
6532
- var __publicField$a = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
6478
+ var __publicField$a = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
6533
6479
  var __async$9 = (__this, __arguments, generator) => {
6534
6480
  return new Promise((resolve, reject) => {
6535
6481
  var fulfilled = (value) => {
@@ -6577,7 +6523,7 @@ class IdentifyItem {
6577
6523
  if (this._item) {
6578
6524
  return Promise.resolve(this._item);
6579
6525
  }
6580
- return fetchNgwLayerItem(__spreadValues$8({
6526
+ return fetchNgwLayerItem(__spreadValues$a({
6581
6527
  connector: this.connector,
6582
6528
  featureId: this.id,
6583
6529
  resourceId: this.layerId,
@@ -6616,7 +6562,7 @@ class IdentifyItem {
6616
6562
  if (this._extent) {
6617
6563
  return Promise.resolve(this._extent);
6618
6564
  }
6619
- return fetchNgwLayerItemExtent(__spreadValues$8({
6565
+ return fetchNgwLayerItemExtent(__spreadValues$a({
6620
6566
  connector: this.connector,
6621
6567
  featureId: this.id,
6622
6568
  resourceId: this.layerId
@@ -6739,25 +6685,25 @@ function getCompanyLogo(connector, options) {
6739
6685
  });
6740
6686
  }
6741
6687
 
6742
- var __defProp$f = Object.defineProperty;
6743
- var __defProps$4 = Object.defineProperties;
6744
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
6745
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
6746
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
6747
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
6748
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6749
- var __spreadValues$7 = (a, b) => {
6688
+ var __defProp$h = Object.defineProperty;
6689
+ var __defProps$6 = Object.defineProperties;
6690
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
6691
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
6692
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
6693
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
6694
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6695
+ var __spreadValues$9 = (a, b) => {
6750
6696
  for (var prop in b || (b = {}))
6751
- if (__hasOwnProp$8.call(b, prop))
6752
- __defNormalProp$f(a, prop, b[prop]);
6753
- if (__getOwnPropSymbols$8)
6754
- for (var prop of __getOwnPropSymbols$8(b)) {
6755
- if (__propIsEnum$8.call(b, prop))
6756
- __defNormalProp$f(a, prop, b[prop]);
6697
+ if (__hasOwnProp$a.call(b, prop))
6698
+ __defNormalProp$h(a, prop, b[prop]);
6699
+ if (__getOwnPropSymbols$a)
6700
+ for (var prop of __getOwnPropSymbols$a(b)) {
6701
+ if (__propIsEnum$a.call(b, prop))
6702
+ __defNormalProp$h(a, prop, b[prop]);
6757
6703
  }
6758
6704
  return a;
6759
6705
  };
6760
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
6706
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
6761
6707
  function getIdentifyItems(identify, multiple = false) {
6762
6708
  const resources = [];
6763
6709
  const paramsList = [];
@@ -6820,7 +6766,7 @@ function fetchIdentifyGeoJson(options) {
6820
6766
  if (withGeom && withGeom.geom) {
6821
6767
  const geom = withGeom.geom;
6822
6768
  return Promise.resolve(
6823
- createGeoJsonFeature(__spreadProps$4(__spreadValues$7({}, withGeom), {
6769
+ createGeoJsonFeature(__spreadProps$6(__spreadValues$9({}, withGeom), {
6824
6770
  geom
6825
6771
  }))
6826
6772
  );
@@ -6830,7 +6776,7 @@ function fetchIdentifyGeoJson(options) {
6830
6776
  }
6831
6777
  const params = getIdentifyItems(identify);
6832
6778
  if (params && params.length) {
6833
- return fetchNgwLayerFeature(__spreadValues$7(__spreadProps$4(__spreadValues$7({}, requestOptions), { connector }), params[0]));
6779
+ return fetchNgwLayerFeature(__spreadValues$9(__spreadProps$6(__spreadValues$9({}, requestOptions), { connector }), params[0]));
6834
6780
  }
6835
6781
  return Promise.resolve(void 0);
6836
6782
  }
@@ -6838,7 +6784,7 @@ function fetchIdentifyItem(options) {
6838
6784
  const { connector, identify } = options;
6839
6785
  const params = getIdentifyItems(identify);
6840
6786
  if (params && params.length) {
6841
- return fetchNgwLayerItem(__spreadValues$7(__spreadValues$7({
6787
+ return fetchNgwLayerItem(__spreadValues$9(__spreadValues$9({
6842
6788
  connector
6843
6789
  }, options.requestOptions), params[0]));
6844
6790
  }
@@ -6888,7 +6834,7 @@ function sendIdentifyRequest(ev, options) {
6888
6834
  const [lng, lat] = ev.lngLat;
6889
6835
  const { geom, radius } = options;
6890
6836
  const geom_ = geom != null ? geom : getCirclePolygonCoordinates(lng, lat, radius);
6891
- return featureLayerIdentify(__spreadProps$4(__spreadValues$7({}, options), { geom: geom_ }));
6837
+ return featureLayerIdentify(__spreadProps$6(__spreadValues$9({}, options), { geom: geom_ }));
6892
6838
  }
6893
6839
  function createIdentifyItem(opt) {
6894
6840
  return new IdentifyItem(opt);
@@ -6904,6 +6850,7 @@ function setWebMap(id, webMap) {
6904
6850
 
6905
6851
  function createToggleControl(createButtonControl, options) {
6906
6852
  const link = document.createElement("div");
6853
+ const statusListeners = /* @__PURE__ */ new Set();
6907
6854
  let status = false;
6908
6855
  if (options.getStatus) {
6909
6856
  status = options.getStatus();
@@ -6963,6 +6910,9 @@ function createToggleControl(createButtonControl, options) {
6963
6910
  _setClass(options.addClass, true);
6964
6911
  }
6965
6912
  setClass();
6913
+ function notifyStatusChange(control) {
6914
+ statusListeners.forEach((listener) => listener(status, control));
6915
+ }
6966
6916
  const changeStatus = (status_) => {
6967
6917
  if (status_ !== void 0) {
6968
6918
  status = status_;
@@ -6971,13 +6921,36 @@ function createToggleControl(createButtonControl, options) {
6971
6921
  setTitle();
6972
6922
  setClass();
6973
6923
  };
6924
+ const getStatus = () => status;
6974
6925
  const onClick = (status_) => {
6926
+ if (status_ === void 0 && status && buttonControl.disableOnSecondClick) {
6927
+ return;
6928
+ }
6929
+ const previousStatus = status;
6975
6930
  status = status_ !== void 0 ? status_ : !status;
6976
6931
  if (options.onClick) {
6977
- const afterClick = options.onClick(status);
6978
- Promise.resolve(afterClick).then(() => changeStatus()).catch(() => status = !status);
6932
+ let afterClick;
6933
+ try {
6934
+ afterClick = options.onClick(status);
6935
+ } catch (er) {
6936
+ status = previousStatus;
6937
+ changeStatus();
6938
+ throw er;
6939
+ }
6940
+ Promise.resolve(afterClick).then(() => {
6941
+ changeStatus();
6942
+ if (previousStatus !== status) {
6943
+ notifyStatusChange(buttonControl);
6944
+ }
6945
+ }).catch(() => {
6946
+ status = previousStatus;
6947
+ changeStatus();
6948
+ });
6979
6949
  } else {
6980
6950
  changeStatus();
6951
+ if (previousStatus !== status) {
6952
+ notifyStatusChange(buttonControl);
6953
+ }
6981
6954
  }
6982
6955
  };
6983
6956
  const buttonControl = createButtonControl({
@@ -6986,6 +6959,15 @@ function createToggleControl(createButtonControl, options) {
6986
6959
  });
6987
6960
  buttonControl.onClick = onClick;
6988
6961
  buttonControl.changeStatus = changeStatus;
6962
+ buttonControl.getStatus = getStatus;
6963
+ buttonControl.switch = options.switch;
6964
+ if (options.disableOnSecondClick !== void 0) {
6965
+ buttonControl.disableOnSecondClick = options.disableOnSecondClick;
6966
+ }
6967
+ buttonControl.onStatusChange = (listener) => {
6968
+ statusListeners.add(listener);
6969
+ return () => statusListeners.delete(listener);
6970
+ };
6989
6971
  return buttonControl;
6990
6972
  }
6991
6973
 
@@ -7610,19 +7592,19 @@ const typeExpressions = {
7610
7592
  typeof: evaluateArgs(([arg]) => typeOfValue(arg))
7611
7593
  };
7612
7594
 
7613
- var __defProp$e = Object.defineProperty;
7614
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
7615
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
7616
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
7617
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7618
- var __spreadValues$6 = (a, b) => {
7595
+ var __defProp$g = Object.defineProperty;
7596
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
7597
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
7598
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
7599
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7600
+ var __spreadValues$8 = (a, b) => {
7619
7601
  for (var prop in b || (b = {}))
7620
- if (__hasOwnProp$7.call(b, prop))
7621
- __defNormalProp$e(a, prop, b[prop]);
7622
- if (__getOwnPropSymbols$7)
7623
- for (var prop of __getOwnPropSymbols$7(b)) {
7624
- if (__propIsEnum$7.call(b, prop))
7625
- __defNormalProp$e(a, prop, b[prop]);
7602
+ if (__hasOwnProp$9.call(b, prop))
7603
+ __defNormalProp$g(a, prop, b[prop]);
7604
+ if (__getOwnPropSymbols$9)
7605
+ for (var prop of __getOwnPropSymbols$9(b)) {
7606
+ if (__propIsEnum$9.call(b, prop))
7607
+ __defNormalProp$g(a, prop, b[prop]);
7626
7608
  }
7627
7609
  return a;
7628
7610
  };
@@ -7634,7 +7616,7 @@ function isExpression(value) {
7634
7616
  }
7635
7617
  return false;
7636
7618
  }
7637
- const expressions = __spreadValues$6(__spreadValues$6(__spreadValues$6(__spreadValues$6(__spreadValues$6(__spreadValues$6({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
7619
+ const expressions = __spreadValues$8(__spreadValues$8(__spreadValues$8(__spreadValues$8(__spreadValues$8(__spreadValues$8({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
7638
7620
  function evaluate(expression, data = {}) {
7639
7621
  const [name, ...args] = expression;
7640
7622
  const expressionFun = expressions[name];
@@ -7647,19 +7629,19 @@ function evaluate(expression, data = {}) {
7647
7629
  throw new Error(`Expression "${name}" is not supported.`);
7648
7630
  }
7649
7631
 
7650
- var __defProp$d = Object.defineProperty;
7651
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
7652
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
7653
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
7654
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7655
- var __spreadValues$5 = (a, b) => {
7632
+ var __defProp$f = Object.defineProperty;
7633
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
7634
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
7635
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
7636
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7637
+ var __spreadValues$7 = (a, b) => {
7656
7638
  for (var prop in b || (b = {}))
7657
- if (__hasOwnProp$6.call(b, prop))
7658
- __defNormalProp$d(a, prop, b[prop]);
7659
- if (__getOwnPropSymbols$6)
7660
- for (var prop of __getOwnPropSymbols$6(b)) {
7661
- if (__propIsEnum$6.call(b, prop))
7662
- __defNormalProp$d(a, prop, b[prop]);
7639
+ if (__hasOwnProp$8.call(b, prop))
7640
+ __defNormalProp$f(a, prop, b[prop]);
7641
+ if (__getOwnPropSymbols$8)
7642
+ for (var prop of __getOwnPropSymbols$8(b)) {
7643
+ if (__propIsEnum$8.call(b, prop))
7644
+ __defNormalProp$f(a, prop, b[prop]);
7663
7645
  }
7664
7646
  return a;
7665
7647
  };
@@ -7692,7 +7674,7 @@ function createExpressionCallback(paint) {
7692
7674
  for (const p in expressions) {
7693
7675
  fromCb[p] = expressions[p](feature);
7694
7676
  }
7695
- return __spreadValues$5(__spreadValues$5({}, paint), fromCb);
7677
+ return __spreadValues$7(__spreadValues$7({}, paint), fromCb);
7696
7678
  };
7697
7679
  }
7698
7680
  return;
@@ -7717,19 +7699,19 @@ function isPaintCallback(paint) {
7717
7699
  return false;
7718
7700
  }
7719
7701
 
7720
- var __defProp$c = Object.defineProperty;
7721
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
7722
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
7723
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
7724
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7725
- var __spreadValues$4 = (a, b) => {
7702
+ var __defProp$e = Object.defineProperty;
7703
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
7704
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
7705
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
7706
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7707
+ var __spreadValues$6 = (a, b) => {
7726
7708
  for (var prop in b || (b = {}))
7727
- if (__hasOwnProp$5.call(b, prop))
7728
- __defNormalProp$c(a, prop, b[prop]);
7729
- if (__getOwnPropSymbols$5)
7730
- for (var prop of __getOwnPropSymbols$5(b)) {
7731
- if (__propIsEnum$5.call(b, prop))
7732
- __defNormalProp$c(a, prop, b[prop]);
7709
+ if (__hasOwnProp$7.call(b, prop))
7710
+ __defNormalProp$e(a, prop, b[prop]);
7711
+ if (__getOwnPropSymbols$7)
7712
+ for (var prop of __getOwnPropSymbols$7(b)) {
7713
+ if (__propIsEnum$7.call(b, prop))
7714
+ __defNormalProp$e(a, prop, b[prop]);
7733
7715
  }
7734
7716
  return a;
7735
7717
  };
@@ -7758,7 +7740,7 @@ function createPropertiesPaint(propertiesPaint) {
7758
7740
  return (feature) => {
7759
7741
  const paint = paintsFilters.find((x) => featureFilter(feature, x[0]));
7760
7742
  if (paint) {
7761
- return __spreadValues$4(__spreadValues$4({}, mask), paint[1]);
7743
+ return __spreadValues$6(__spreadValues$6({}, mask), paint[1]);
7762
7744
  }
7763
7745
  return mask;
7764
7746
  };
@@ -7782,8 +7764,8 @@ function expressionCallback({
7782
7764
  }
7783
7765
  function finalizePaint({ paint, defaultPaint }) {
7784
7766
  var _a;
7785
- let newPaint = __spreadValues$4({}, defaultPaint);
7786
- newPaint = __spreadValues$4(__spreadValues$4({}, newPaint), paint);
7767
+ let newPaint = __spreadValues$6({}, defaultPaint);
7768
+ newPaint = __spreadValues$6(__spreadValues$6({}, newPaint), paint);
7787
7769
  newPaint.fill = (_a = newPaint.fill) != null ? _a : true;
7788
7770
  newPaint.stroke = newPaint.stroke !== void 0 ? newPaint.stroke : !newPaint.fill || !!(newPaint.strokeColor || newPaint.strokeOpacity);
7789
7771
  return newPaint;
@@ -7796,7 +7778,7 @@ function preparePaint({
7796
7778
  if (!paint) {
7797
7779
  throw new Error("paint is empty");
7798
7780
  }
7799
- let newPaint = __spreadValues$4({}, defaultPaint);
7781
+ let newPaint = __spreadValues$6({}, defaultPaint);
7800
7782
  if (isPaintCallback(paint)) {
7801
7783
  const getPaintFunction = (feature) => {
7802
7784
  const getPaint = preparePaint({
@@ -7853,6 +7835,63 @@ function preparePaint({
7853
7835
  return newPaint;
7854
7836
  }
7855
7837
 
7838
+ var __defProp$d = Object.defineProperty;
7839
+ var __defProps$5 = Object.defineProperties;
7840
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
7841
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
7842
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
7843
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
7844
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7845
+ var __spreadValues$5 = (a, b) => {
7846
+ for (var prop in b || (b = {}))
7847
+ if (__hasOwnProp$6.call(b, prop))
7848
+ __defNormalProp$d(a, prop, b[prop]);
7849
+ if (__getOwnPropSymbols$6)
7850
+ for (var prop of __getOwnPropSymbols$6(b)) {
7851
+ if (__propIsEnum$6.call(b, prop))
7852
+ __defNormalProp$d(a, prop, b[prop]);
7853
+ }
7854
+ return a;
7855
+ };
7856
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
7857
+ function hasHeaders(headers) {
7858
+ return !!headers && Object.keys(headers).length > 0;
7859
+ }
7860
+ function normalizeLayerRequestOptions(request) {
7861
+ if (!request) {
7862
+ return void 0;
7863
+ }
7864
+ const normalized = __spreadValues$5({}, request);
7865
+ return hasLayerRequestOptions(normalized) ? normalized : void 0;
7866
+ }
7867
+ function getLayerRequestOptions(options) {
7868
+ const request = options == null ? void 0 : options.request;
7869
+ const headers = __spreadValues$5(__spreadValues$5({}, (options == null ? void 0 : options.headers) || {}), (request == null ? void 0 : request.headers) || {});
7870
+ const result = {};
7871
+ if (hasHeaders(headers)) {
7872
+ result.headers = headers;
7873
+ }
7874
+ if (options == null ? void 0 : options.withCredentials) {
7875
+ result.credentials = "include";
7876
+ }
7877
+ if ((request == null ? void 0 : request.credentials) !== void 0) {
7878
+ result.credentials = request.credentials;
7879
+ }
7880
+ if ((request == null ? void 0 : request.cache) !== void 0) {
7881
+ result.cache = request.cache;
7882
+ }
7883
+ return normalizeLayerRequestOptions(result);
7884
+ }
7885
+ function applyLayerRequestOptions(options) {
7886
+ const request = getLayerRequestOptions(options);
7887
+ return __spreadProps$5(__spreadValues$5({}, options), {
7888
+ request
7889
+ });
7890
+ }
7891
+ function hasLayerRequestOptions(request) {
7892
+ return !!(request && (hasHeaders(request.headers) || request.credentials !== void 0 || request.cache !== void 0 && request.cache !== "default"));
7893
+ }
7894
+
7856
7895
  function findMostFrequentGeomType(arr) {
7857
7896
  const counts = {};
7858
7897
  for (let fry = 0; fry < arr.length; fry++) {
@@ -7912,9 +7951,9 @@ function updateGeoJsonAdapterOptions(opt) {
7912
7951
  return opt;
7913
7952
  }
7914
7953
 
7915
- var __defProp$b = Object.defineProperty;
7916
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7917
- var __publicField$9 = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
7954
+ var __defProp$c = Object.defineProperty;
7955
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7956
+ var __publicField$9 = (obj, key, value) => __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
7918
7957
  class KeyCodes {
7919
7958
  constructor() {
7920
7959
  __publicField$9(this, "backspace", 8);
@@ -7991,9 +8030,9 @@ class KeyCodes {
7991
8030
  // "single quote"
7992
8031
  }
7993
8032
 
7994
- var __defProp$a = Object.defineProperty;
7995
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7996
- var __publicField$8 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
8033
+ var __defProp$b = Object.defineProperty;
8034
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8035
+ var __publicField$8 = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
7997
8036
  class Keys {
7998
8037
  constructor() {
7999
8038
  __publicField$8(this, "keyCodeAlias", new KeyCodes());
@@ -8039,9 +8078,9 @@ class Keys {
8039
8078
  }
8040
8079
  }
8041
8080
 
8042
- var __defProp$9 = Object.defineProperty;
8043
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8044
- var __publicField$7 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
8081
+ var __defProp$a = Object.defineProperty;
8082
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8083
+ var __publicField$7 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
8045
8084
  class StateItem {
8046
8085
  constructor(webMap, opt) {
8047
8086
  this.webMap = webMap;
@@ -8072,9 +8111,9 @@ class StateItem {
8072
8111
  }
8073
8112
  }
8074
8113
 
8075
- var __defProp$8 = Object.defineProperty;
8076
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8077
- var __publicField$6 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
8114
+ var __defProp$9 = Object.defineProperty;
8115
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8116
+ var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
8078
8117
  class BoundState extends StateItem {
8079
8118
  constructor() {
8080
8119
  super(...arguments);
@@ -8100,9 +8139,9 @@ class BoundState extends StateItem {
8100
8139
  }
8101
8140
  }
8102
8141
 
8103
- var __defProp$7 = Object.defineProperty;
8104
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8105
- var __publicField$5 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
8142
+ var __defProp$8 = Object.defineProperty;
8143
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8144
+ var __publicField$5 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
8106
8145
  class CenterState extends StateItem {
8107
8146
  constructor() {
8108
8147
  super(...arguments);
@@ -8129,9 +8168,9 @@ class CenterState extends StateItem {
8129
8168
  }
8130
8169
  }
8131
8170
 
8132
- var __defProp$6 = Object.defineProperty;
8133
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8134
- var __publicField$4 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
8171
+ var __defProp$7 = Object.defineProperty;
8172
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8173
+ var __publicField$4 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
8135
8174
  class ZoomState extends StateItem {
8136
8175
  constructor() {
8137
8176
  super(...arguments);
@@ -8159,9 +8198,9 @@ function clearObject(obj) {
8159
8198
  }
8160
8199
  }
8161
8200
 
8162
- var __defProp$5 = Object.defineProperty;
8163
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8164
- var __publicField$3 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
8201
+ var __defProp$6 = Object.defineProperty;
8202
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8203
+ var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
8165
8204
  var __async$6 = (__this, __arguments, generator) => {
8166
8205
  return new Promise((resolve, reject) => {
8167
8206
  var fulfilled = (value) => {
@@ -8708,26 +8747,26 @@ __publicField$3(_WebMapMain, "keys", new Keys());
8708
8747
  __publicField$3(_WebMapMain, "getPaintFunctions");
8709
8748
  let WebMapMain = _WebMapMain;
8710
8749
 
8711
- var __defProp$4 = Object.defineProperty;
8712
- var __defProps$3 = Object.defineProperties;
8713
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
8714
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
8715
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
8716
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
8717
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8718
- var __spreadValues$3 = (a, b) => {
8750
+ var __defProp$5 = Object.defineProperty;
8751
+ var __defProps$4 = Object.defineProperties;
8752
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
8753
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
8754
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
8755
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
8756
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8757
+ var __spreadValues$4 = (a, b) => {
8719
8758
  for (var prop in b || (b = {}))
8720
- if (__hasOwnProp$4.call(b, prop))
8721
- __defNormalProp$4(a, prop, b[prop]);
8722
- if (__getOwnPropSymbols$4)
8723
- for (var prop of __getOwnPropSymbols$4(b)) {
8724
- if (__propIsEnum$4.call(b, prop))
8725
- __defNormalProp$4(a, prop, b[prop]);
8759
+ if (__hasOwnProp$5.call(b, prop))
8760
+ __defNormalProp$5(a, prop, b[prop]);
8761
+ if (__getOwnPropSymbols$5)
8762
+ for (var prop of __getOwnPropSymbols$5(b)) {
8763
+ if (__propIsEnum$5.call(b, prop))
8764
+ __defNormalProp$5(a, prop, b[prop]);
8726
8765
  }
8727
8766
  return a;
8728
8767
  };
8729
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
8730
- var __publicField$2 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
8768
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
8769
+ var __publicField$2 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
8731
8770
  var __async$5 = (__this, __arguments, generator) => {
8732
8771
  return new Promise((resolve, reject) => {
8733
8772
  var fulfilled = (value) => {
@@ -8862,7 +8901,7 @@ class WebMapLayers extends WebMapMain {
8862
8901
  return __async$5(this, null, function* () {
8863
8902
  const layer = yield this.addLayer(
8864
8903
  adapter,
8865
- __spreadProps$3(__spreadValues$3({}, options), {
8904
+ __spreadProps$4(__spreadValues$4({}, options), {
8866
8905
  baselayer: true
8867
8906
  }),
8868
8907
  void 0
@@ -8899,7 +8938,7 @@ class WebMapLayers extends WebMapMain {
8899
8938
  }
8900
8939
  const geoJsonOptions = options;
8901
8940
  this._updateGeoJsonOptions(geoJsonOptions);
8902
- options = __spreadValues$3({
8941
+ options = __spreadValues$4({
8903
8942
  id: String(id),
8904
8943
  order: _order
8905
8944
  }, options);
@@ -8922,9 +8961,12 @@ class WebMapLayers extends WebMapMain {
8922
8961
  }
8923
8962
  }
8924
8963
  }
8964
+ options = __spreadProps$4(__spreadValues$4({}, options), {
8965
+ request: this._getLayerRequestOptions(options)
8966
+ });
8925
8967
  if (adapterEngine !== void 0) {
8926
8968
  const _adapter = new adapterEngine(this.mapAdapter.map, options);
8927
- _adapter.options = __spreadValues$3(__spreadValues$3({}, options), _adapter.options);
8969
+ _adapter.options = __spreadValues$4(__spreadValues$4({}, options), _adapter.options);
8928
8970
  if (_adapter.options.baselayer) {
8929
8971
  options.baselayer = true;
8930
8972
  options.order = 0;
@@ -9111,7 +9153,7 @@ class WebMapLayers extends WebMapMain {
9111
9153
  }
9112
9154
  /** Shortcut for {@link WebMapLayers.addLayer} to create TileLayer adapter */
9113
9155
  addTileLayer(url, options = {}) {
9114
- return this.addLayer("TILE", __spreadProps$3(__spreadValues$3({}, options), { url }));
9156
+ return this.addLayer("TILE", __spreadProps$4(__spreadValues$4({}, options), { url }));
9115
9157
  }
9116
9158
  addImageLayer(urlOrOptions, options) {
9117
9159
  let url;
@@ -9121,7 +9163,7 @@ class WebMapLayers extends WebMapMain {
9121
9163
  url = urlOrOptions.url;
9122
9164
  options = urlOrOptions;
9123
9165
  }
9124
- return this.addLayer("IMAGE", __spreadProps$3(__spreadValues$3({}, options), { url }));
9166
+ return this.addLayer("IMAGE", __spreadProps$4(__spreadValues$4({}, options), { url }));
9125
9167
  }
9126
9168
  /**
9127
9169
  * Show added layer on the map by it definition.
@@ -9491,6 +9533,23 @@ class WebMapLayers extends WebMapMain {
9491
9533
  attribution: tileJson.attribution
9492
9534
  });
9493
9535
  }
9536
+ /**
9537
+ * Merges global and per-layer request options while preserving backward
9538
+ * compatibility for deprecated `headers` and `withCredentials` options.
9539
+ * The returned value is normalized so adapters receive only meaningful
9540
+ * request options.
9541
+ */
9542
+ _getLayerRequestOptions(options) {
9543
+ var _a, _b, _c, _d;
9544
+ const defaultRequest = normalizeLayerRequestOptions(
9545
+ this.options.layerRequest
9546
+ );
9547
+ const layerRequest = getLayerRequestOptions(options);
9548
+ const headers = __spreadValues$4(__spreadValues$4({}, (defaultRequest == null ? void 0 : defaultRequest.headers) || {}), (layerRequest == null ? void 0 : layerRequest.headers) || {});
9549
+ const credentials = options.withCredentials === false && ((_a = options.request) == null ? void 0 : _a.credentials) === void 0 && (defaultRequest == null ? void 0 : defaultRequest.credentials) !== void 0 ? "same-origin" : (_b = layerRequest == null ? void 0 : layerRequest.credentials) != null ? _b : defaultRequest == null ? void 0 : defaultRequest.credentials;
9550
+ const cache = ((_c = options.request) == null ? void 0 : _c.cache) !== void 0 ? options.request.cache : (_d = layerRequest == null ? void 0 : layerRequest.cache) != null ? _d : defaultRequest == null ? void 0 : defaultRequest.cache;
9551
+ return normalizeLayerRequestOptions(__spreadValues$4(__spreadValues$4(__spreadValues$4(__spreadValues$4(__spreadValues$4({}, defaultRequest), layerRequest), Object.keys(headers).length ? { headers } : {}), credentials !== void 0 ? { credentials } : {}), cache !== void 0 ? { cache } : {}));
9552
+ }
9494
9553
  /** @internal */
9495
9554
  _emitLayerEvent(name, id, options) {
9496
9555
  const name_ = String(name);
@@ -9584,9 +9643,24 @@ class WebMapLayers extends WebMapMain {
9584
9643
  }
9585
9644
  }
9586
9645
 
9587
- var __defProp$3 = Object.defineProperty;
9588
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9589
- var __publicField$1 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
9646
+ var __defProp$4 = Object.defineProperty;
9647
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9648
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9649
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9650
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9651
+ var __objRest$1 = (source, exclude) => {
9652
+ var target = {};
9653
+ for (var prop in source)
9654
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
9655
+ target[prop] = source[prop];
9656
+ if (source != null && __getOwnPropSymbols$4)
9657
+ for (var prop of __getOwnPropSymbols$4(source)) {
9658
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
9659
+ target[prop] = source[prop];
9660
+ }
9661
+ return target;
9662
+ };
9663
+ var __publicField$1 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
9590
9664
  var __async$4 = (__this, __arguments, generator) => {
9591
9665
  return new Promise((resolve, reject) => {
9592
9666
  var fulfilled = (value) => {
@@ -9614,21 +9688,24 @@ const _WebMapControls = class _WebMapControls extends WebMapLayers {
9614
9688
  "top-right": [],
9615
9689
  "bottom-right": [],
9616
9690
  "top-left": [],
9617
- "bottom-left": []
9691
+ "bottom-left": [],
9692
+ inside: []
9618
9693
  });
9619
9694
  __publicField$1(this, "_isControlLoading", {
9620
9695
  "top-right": false,
9621
9696
  "bottom-right": false,
9622
9697
  "top-left": false,
9623
- "bottom-left": false
9698
+ "bottom-left": false,
9699
+ inside: false
9624
9700
  });
9625
9701
  }
9626
9702
  addControl(controlDef, position, options) {
9627
9703
  return __async$4(this, null, function* () {
9628
9704
  let control;
9705
+ const { addOptions, createOptions } = this._splitControlOptions(options);
9629
9706
  position = position != null ? position : "top-left";
9630
9707
  if (typeof controlDef === "string") {
9631
- control = this.getControl(controlDef, options);
9708
+ control = this.getControl(controlDef, createOptions);
9632
9709
  } else {
9633
9710
  control = controlDef;
9634
9711
  }
@@ -9636,10 +9713,10 @@ const _WebMapControls = class _WebMapControls extends WebMapLayers {
9636
9713
  return new Promise((resolve) => {
9637
9714
  const promise = () => __async$4(this, null, function* () {
9638
9715
  const _control = yield control;
9639
- const c = this.mapAdapter.addControl(_control, position);
9716
+ const c = this.mapAdapter.addControl(_control, position, addOptions);
9640
9717
  resolve(c);
9641
9718
  });
9642
- this._setControlQueue(position, promise);
9719
+ this._setControlQueue(this._getControlQueueKey(position), promise);
9643
9720
  });
9644
9721
  }
9645
9722
  });
@@ -9741,6 +9818,9 @@ const _WebMapControls = class _WebMapControls extends WebMapLayers {
9741
9818
  return this.mapAdapter.getControlContainer();
9742
9819
  }
9743
9820
  }
9821
+ _getControlQueueKey(position) {
9822
+ return typeof position === "string" ? position : "inside";
9823
+ }
9744
9824
  _setControlQueue(position, cb) {
9745
9825
  this._loadControlQueue[position].push(cb);
9746
9826
  if (!this._isControlLoading[position]) {
@@ -9760,6 +9840,20 @@ const _WebMapControls = class _WebMapControls extends WebMapLayers {
9760
9840
  }
9761
9841
  });
9762
9842
  }
9843
+ _splitControlOptions(options) {
9844
+ if (!options) {
9845
+ return {};
9846
+ }
9847
+ const _a = options, { id, order } = _a, createOptions = __objRest$1(_a, ["id", "order"]);
9848
+ const addOptions = this._getAddControlOptions(id, order);
9849
+ return {
9850
+ addOptions,
9851
+ createOptions
9852
+ };
9853
+ }
9854
+ _getAddControlOptions(id, order) {
9855
+ return id !== void 0 || order !== void 0 ? { id, order } : void 0;
9856
+ }
9763
9857
  };
9764
9858
  __publicField$1(_WebMapControls, "controls", {
9765
9859
  CONTROL: (webMap, options) => {
@@ -9774,10 +9868,26 @@ __publicField$1(_WebMapControls, "controls", {
9774
9868
  });
9775
9869
  let WebMapControls = _WebMapControls;
9776
9870
 
9871
+ var __defProp$3 = Object.defineProperty;
9872
+ var __defProps$3 = Object.defineProperties;
9873
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
9777
9874
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9778
9875
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9779
9876
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9780
9877
  var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
9878
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9879
+ var __spreadValues$3 = (a, b) => {
9880
+ for (var prop in b || (b = {}))
9881
+ if (__hasOwnProp$3.call(b, prop))
9882
+ __defNormalProp$3(a, prop, b[prop]);
9883
+ if (__getOwnPropSymbols$3)
9884
+ for (var prop of __getOwnPropSymbols$3(b)) {
9885
+ if (__propIsEnum$3.call(b, prop))
9886
+ __defNormalProp$3(a, prop, b[prop]);
9887
+ }
9888
+ return a;
9889
+ };
9890
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
9781
9891
  var __objRest = (source, exclude) => {
9782
9892
  var target = {};
9783
9893
  for (var prop in source)
@@ -9905,8 +10015,11 @@ class WebMap extends WebMapControls {
9905
10015
  }
9906
10016
  }
9907
10017
  }
9908
- const _a = controlOptions, { position } = _a, options = __objRest(_a, ["position"]);
9909
- this.addControl(controlAdapterName, position || "top-left", options);
10018
+ const _a = controlOptions, { id, order, position } = _a, options = __objRest(_a, ["id", "order", "position"]);
10019
+ this.addControl(controlAdapterName, position || "top-left", __spreadProps$3(__spreadValues$3({}, options), {
10020
+ id,
10021
+ order
10022
+ }));
9910
10023
  });
9911
10024
  }
9912
10025
  this._emitStatusEvent("controls:create");
@@ -10271,7 +10384,6 @@ const _NgwMap = class _NgwMap extends WebMap {
10271
10384
  const promise = fetchIdentifyGeoJson({
10272
10385
  identify,
10273
10386
  connector: this.connector,
10274
- multiple,
10275
10387
  requestOptions: { signal: abortController.signal }
10276
10388
  });
10277
10389
  if (promise && "then" in promise) {
@@ -10721,5 +10833,5 @@ function createNgwMap(options) {
10721
10833
  });
10722
10834
  }
10723
10835
 
10724
- export { NgwMap, WebMap, WebMapControls, WebMapLayers, WebMapMain, createNgwMap, createToggleControl, createWebMap, detectGeometryType, findMostFrequentGeomType, getDefaultControls, getWebMap, paintTypeAlias, setWebMap, typeAlias, updateGeoJsonAdapterOptions };
10836
+ export { NgwMap, WebMap, WebMapControls, WebMapLayers, WebMapMain, applyLayerRequestOptions, createNgwMap, createToggleControl, createWebMap, detectGeometryType, findMostFrequentGeomType, getDefaultControls, getLayerRequestOptions, getWebMap, normalizeLayerRequestOptions, paintTypeAlias, setWebMap, typeAlias, updateGeoJsonAdapterOptions };
10725
10837
  //# sourceMappingURL=ngw-map.esm-browser.js.map