@nextgis/ngw-map 4.0.0-alpha.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: 4.0.0-alpha.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$S = Object.defineProperty;
383
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
384
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
385
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
386
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
387
- var __spreadValues$z = (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$A.call(b, prop))
390
- __defNormalProp$S(a, prop, b[prop]);
391
- if (__getOwnPropSymbols$A)
392
- for (var prop of __getOwnPropSymbols$A(b)) {
393
- if (__propIsEnum$A.call(b, prop))
394
- __defNormalProp$S(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$z({
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$R = Object.defineProperty;
470
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
471
- var __publicField$A = (obj, key, value) => __defNormalProp$R(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", []);
@@ -1089,9 +1089,9 @@ class AbortError extends Error {
1089
1089
  }
1090
1090
  }
1091
1091
 
1092
- var __defProp$Q = Object.defineProperty;
1093
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1094
- var __publicField$z = (obj, key, value) => __defNormalProp$Q(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);
1095
1095
  class NgwError extends Error {
1096
1096
  constructor(er) {
1097
1097
  super();
@@ -1108,9 +1108,9 @@ class NgwError extends Error {
1108
1108
  }
1109
1109
  }
1110
1110
 
1111
- var __defProp$P = Object.defineProperty;
1112
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1113
- var __publicField$y = (obj, key, value) => __defNormalProp$P(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);
1114
1114
  class InsufficientPermissionsError extends NgwError {
1115
1115
  constructor(obj) {
1116
1116
  super(obj);
@@ -1120,9 +1120,9 @@ class InsufficientPermissionsError extends NgwError {
1120
1120
  }
1121
1121
  }
1122
1122
 
1123
- var __defProp$O = Object.defineProperty;
1124
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1125
- var __publicField$x = (obj, key, value) => __defNormalProp$O(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);
1126
1126
  let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
1127
1127
  constructor(obj) {
1128
1128
  super(obj);
@@ -1165,9 +1165,9 @@ function isError(error) {
1165
1165
  return false;
1166
1166
  }
1167
1167
 
1168
- var __defProp$N = Object.defineProperty;
1169
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1170
- var __publicField$w = (obj, key, value) => __defNormalProp$N(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);
1171
1171
  class NetworkError extends Error {
1172
1172
  constructor(url) {
1173
1173
  super();
@@ -1178,9 +1178,9 @@ class NetworkError extends Error {
1178
1178
  }
1179
1179
  }
1180
1180
 
1181
- var __defProp$M = Object.defineProperty;
1182
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1183
- var __publicField$v = (obj, key, value) => __defNormalProp$M(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);
1184
1184
  class ResourceNotFoundError extends NgwError {
1185
1185
  constructor(obj) {
1186
1186
  super(obj);
@@ -1202,9 +1202,9 @@ var errors = /*#__PURE__*/Object.freeze({
1202
1202
  isError: isError
1203
1203
  });
1204
1204
 
1205
- var __defProp$L = Object.defineProperty;
1206
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1207
- var __publicField$u = (obj, key, value) => __defNormalProp$L(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);
1208
1208
  class BaseAPIError extends Error {
1209
1209
  constructor(message) {
1210
1210
  super(message || "Something went wrong.");
@@ -1266,30 +1266,30 @@ class LunkwillRequestFailed extends LunkwillError {
1266
1266
  }
1267
1267
  }
1268
1268
 
1269
- var __defProp$K = Object.defineProperty;
1270
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
1271
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
1272
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
1273
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1274
- var __spreadValues$y = (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) => {
1275
1275
  for (var prop in b || (b = {}))
1276
- if (__hasOwnProp$z.call(b, prop))
1277
- __defNormalProp$K(a, prop, b[prop]);
1278
- if (__getOwnPropSymbols$z)
1279
- for (var prop of __getOwnPropSymbols$z(b)) {
1280
- if (__propIsEnum$z.call(b, prop))
1281
- __defNormalProp$K(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]);
1282
1282
  }
1283
1283
  return a;
1284
1284
  };
1285
1285
  var __objRest$7 = (source, exclude) => {
1286
1286
  var target = {};
1287
1287
  for (var prop in source)
1288
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
1288
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
1289
1289
  target[prop] = source[prop];
1290
- if (source != null && __getOwnPropSymbols$z)
1291
- for (var prop of __getOwnPropSymbols$z(source)) {
1292
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.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))
1293
1293
  target[prop] = source[prop];
1294
1294
  }
1295
1295
  return target;
@@ -1427,7 +1427,7 @@ function request(path, options, cacheEngine) {
1427
1427
  credentials: "same-origin",
1428
1428
  headers: {}
1429
1429
  };
1430
- const _a = __spreadValues$y(__spreadValues$y({}, defaults), options), {
1430
+ const _a = __spreadValues$z(__spreadValues$z({}, defaults), options), {
1431
1431
  withCredentials,
1432
1432
  responseType,
1433
1433
  cacheProps,
@@ -1507,7 +1507,7 @@ function request(path, options, cacheEngine) {
1507
1507
  if (cacheEngine) {
1508
1508
  if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
1509
1509
  if (cache !== false) {
1510
- const props = cacheProps ? cacheProps : __spreadValues$y({}, objectRemoveEmpty({
1510
+ const props = cacheProps ? cacheProps : __spreadValues$z({}, objectRemoveEmpty({
1511
1511
  withCredentials,
1512
1512
  responseType
1513
1513
  }));
@@ -1527,33 +1527,33 @@ function request(path, options, cacheEngine) {
1527
1527
  });
1528
1528
  }
1529
1529
 
1530
- var __defProp$J = Object.defineProperty;
1531
- var __defProps$k = Object.defineProperties;
1532
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1533
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
1534
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
1535
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
1536
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1537
- var __spreadValues$x = (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) => {
1538
1538
  for (var prop in b || (b = {}))
1539
- if (__hasOwnProp$y.call(b, prop))
1540
- __defNormalProp$J(a, prop, b[prop]);
1541
- if (__getOwnPropSymbols$y)
1542
- for (var prop of __getOwnPropSymbols$y(b)) {
1543
- if (__propIsEnum$y.call(b, prop))
1544
- __defNormalProp$J(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]);
1545
1545
  }
1546
1546
  return a;
1547
1547
  };
1548
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1548
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
1549
1549
  var __objRest$6 = (source, exclude) => {
1550
1550
  var target = {};
1551
1551
  for (var prop in source)
1552
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
1552
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
1553
1553
  target[prop] = source[prop];
1554
- if (source != null && __getOwnPropSymbols$y)
1555
- for (var prop of __getOwnPropSymbols$y(source)) {
1556
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.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))
1557
1557
  target[prop] = source[prop];
1558
1558
  }
1559
1559
  return target;
@@ -1637,10 +1637,10 @@ function route(name, connector, ...rest) {
1637
1637
  routeData,
1638
1638
  ...rest
1639
1639
  );
1640
- const headers = objectRemoveEmpty(__spreadValues$x(__spreadValues$x({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
1640
+ const headers = objectRemoveEmpty(__spreadValues$y(__spreadValues$y({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
1641
1641
  return request(
1642
1642
  template,
1643
- __spreadProps$k(__spreadValues$x({
1643
+ __spreadProps$l(__spreadValues$y({
1644
1644
  headers
1645
1645
  }, restOpt), {
1646
1646
  method
@@ -1764,38 +1764,38 @@ function removeConnector(connector) {
1764
1764
  }
1765
1765
  }
1766
1766
 
1767
- var __defProp$I = Object.defineProperty;
1768
- var __defProps$j = Object.defineProperties;
1769
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1770
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1771
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1772
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1773
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1774
- var __spreadValues$w = (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) => {
1775
1775
  for (var prop in b || (b = {}))
1776
- if (__hasOwnProp$x.call(b, prop))
1777
- __defNormalProp$I(a, prop, b[prop]);
1778
- if (__getOwnPropSymbols$x)
1779
- for (var prop of __getOwnPropSymbols$x(b)) {
1780
- if (__propIsEnum$x.call(b, prop))
1781
- __defNormalProp$I(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]);
1782
1782
  }
1783
1783
  return a;
1784
1784
  };
1785
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1785
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1786
1786
  var __objRest$5 = (source, exclude) => {
1787
1787
  var target = {};
1788
1788
  for (var prop in source)
1789
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
1789
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
1790
1790
  target[prop] = source[prop];
1791
- if (source != null && __getOwnPropSymbols$x)
1792
- for (var prop of __getOwnPropSymbols$x(source)) {
1793
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.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))
1794
1794
  target[prop] = source[prop];
1795
1795
  }
1796
1796
  return target;
1797
1797
  };
1798
- var __publicField$t = (obj, key, value) => __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
1798
+ var __publicField$t = (obj, key, value) => __defNormalProp$J(obj, typeof key !== "symbol" ? key + "" : key, value);
1799
1799
  var __async$t = (__this, __arguments, generator) => {
1800
1800
  return new Promise((resolve, reject) => {
1801
1801
  var fulfilled = (value) => {
@@ -1931,7 +1931,7 @@ class NgwConnector {
1931
1931
  if (credentials) {
1932
1932
  this.options.auth = credentials;
1933
1933
  }
1934
- const options_ = __spreadValues$w({
1934
+ const options_ = __spreadValues$x({
1935
1935
  headers: this.getAuthorizationHeaders(credentials),
1936
1936
  cache: true
1937
1937
  }, options);
@@ -1972,7 +1972,7 @@ class NgwConnector {
1972
1972
  this.activeRequests = {};
1973
1973
  }
1974
1974
  getActiveApiRequests() {
1975
- return __spreadValues$w({}, this.activeRequests);
1975
+ return __spreadValues$x({}, this.activeRequests);
1976
1976
  }
1977
1977
  route(name, ...rest) {
1978
1978
  return route(name, this, ...rest);
@@ -1995,7 +1995,7 @@ class NgwConnector {
1995
1995
  url = template(url, restParams);
1996
1996
  }
1997
1997
  url = encodeURI(fixUrlStr(url));
1998
- options = __spreadValues$w({ withCredentials: this.withCredentials }, options);
1998
+ options = __spreadValues$x({ withCredentials: this.withCredentials }, options);
1999
1999
  const {
2000
2000
  cache,
2001
2001
  signal: externalSignal,
@@ -2027,7 +2027,7 @@ class NgwConnector {
2027
2027
  }
2028
2028
  });
2029
2029
  if (method === "GET" && cache !== false) {
2030
- const cacheOptions = cacheProps ? cacheProps : __spreadProps$j(__spreadValues$w({}, objectRemoveEmpty({
2030
+ const cacheOptions = cacheProps ? cacheProps : __spreadProps$k(__spreadValues$x({}, objectRemoveEmpty({
2031
2031
  headers,
2032
2032
  withCredentials,
2033
2033
  responseType,
@@ -2050,7 +2050,7 @@ class NgwConnector {
2050
2050
  var _a;
2051
2051
  if (this.user) {
2052
2052
  options = options || {};
2053
- options.headers = __spreadValues$w(__spreadValues$w({}, this.getAuthorizationHeaders()), options.headers);
2053
+ options.headers = __spreadValues$x(__spreadValues$x({}, this.getAuthorizationHeaders()), options.headers);
2054
2054
  }
2055
2055
  if (this.requestTransform) {
2056
2056
  const [transUrl, transOptions] = this.requestTransform(url, options);
@@ -2139,26 +2139,26 @@ function resourceToQuery(resource, prefix = "") {
2139
2139
  return query;
2140
2140
  }
2141
2141
 
2142
- var __defProp$H = Object.defineProperty;
2143
- var __defProps$i = Object.defineProperties;
2144
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
2145
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
2146
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
2147
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
2148
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2149
- var __spreadValues$v = (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) => {
2150
2150
  for (var prop in b || (b = {}))
2151
- if (__hasOwnProp$w.call(b, prop))
2152
- __defNormalProp$H(a, prop, b[prop]);
2153
- if (__getOwnPropSymbols$w)
2154
- for (var prop of __getOwnPropSymbols$w(b)) {
2155
- if (__propIsEnum$w.call(b, prop))
2156
- __defNormalProp$H(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]);
2157
2157
  }
2158
2158
  return a;
2159
2159
  };
2160
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
2161
- var __publicField$s = (obj, key, value) => __defNormalProp$H(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);
2162
2162
  var __async$s = (__this, __arguments, generator) => {
2163
2163
  return new Promise((resolve, reject) => {
2164
2164
  var fulfilled = (value) => {
@@ -2200,7 +2200,7 @@ class ResourcesControl {
2200
2200
  * Fetching resource would be cached to speed up next call
2201
2201
  */
2202
2202
  getOne(resource, requestOptions) {
2203
- const opt = __spreadValues$v({}, requestOptions);
2203
+ const opt = __spreadValues$w({}, requestOptions);
2204
2204
  if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
2205
2205
  if (resource.id !== void 0) {
2206
2206
  resource.id;
@@ -2277,8 +2277,8 @@ class ResourcesControl {
2277
2277
  } else {
2278
2278
  Object.assign(query, resourceToQuery(resource));
2279
2279
  }
2280
- return this.connector.route("resource.search").get(__spreadProps$i(__spreadValues$v({}, requestOptions), {
2281
- query: __spreadValues$v({
2280
+ return this.connector.route("resource.search").get(__spreadProps$j(__spreadValues$w({}, requestOptions), {
2281
+ query: __spreadValues$w({
2282
2282
  serialization: "full"
2283
2283
  }, query)
2284
2284
  })).then((resources) => {
@@ -2340,7 +2340,7 @@ class ResourcesControl {
2340
2340
  } else {
2341
2341
  parent = parentDef;
2342
2342
  }
2343
- const items = yield this.connector.route("resource.collection").get(__spreadProps$i(__spreadValues$v({}, requestOptions), {
2343
+ const items = yield this.connector.route("resource.collection").get(__spreadProps$j(__spreadValues$w({}, requestOptions), {
2344
2344
  query: {
2345
2345
  parent
2346
2346
  }
@@ -2421,9 +2421,9 @@ class ResourcesControl {
2421
2421
  }
2422
2422
  }
2423
2423
 
2424
- var __defProp$G = Object.defineProperty;
2425
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2426
- var __publicField$r = (obj, key, value) => __defNormalProp$G(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);
2427
2427
  class NgwConnectorExtended extends NgwConnector {
2428
2428
  constructor(options) {
2429
2429
  super(options);
@@ -2637,25 +2637,25 @@ class NgwConnectorExtended extends NgwConnector {
2637
2637
  }
2638
2638
  }
2639
2639
 
2640
- var __defProp$F = Object.defineProperty;
2641
- var __defProps$h = Object.defineProperties;
2642
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
2643
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
2644
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
2645
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
2646
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2647
- var __spreadValues$u = (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) => {
2648
2648
  for (var prop in b || (b = {}))
2649
- if (__hasOwnProp$v.call(b, prop))
2650
- __defNormalProp$F(a, prop, b[prop]);
2651
- if (__getOwnPropSymbols$v)
2652
- for (var prop of __getOwnPropSymbols$v(b)) {
2653
- if (__propIsEnum$v.call(b, prop))
2654
- __defNormalProp$F(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]);
2655
2655
  }
2656
2656
  return a;
2657
2657
  };
2658
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
2658
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
2659
2659
  function getNgwWebmapExtent(webmap) {
2660
2660
  const bottom = webmap["extent_bottom"];
2661
2661
  const left = webmap["extent_left"];
@@ -2722,14 +2722,14 @@ function fetchNgwResourceExtent(item, connector, options) {
2722
2722
  if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
2723
2723
  return connector.getResource(resource.parent.id, options).then((res) => {
2724
2724
  if (res) {
2725
- return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$u({}, options), {
2725
+ return fetchNgwLayerExtent(__spreadProps$i(__spreadValues$v({}, options), {
2726
2726
  resourceId: res.resource.id,
2727
2727
  connector
2728
2728
  }));
2729
2729
  }
2730
2730
  });
2731
2731
  } else {
2732
- return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$u({}, options), {
2732
+ return fetchNgwLayerExtent(__spreadProps$i(__spreadValues$v({}, options), {
2733
2733
  resourceId: resource.id,
2734
2734
  connector
2735
2735
  }));
@@ -2737,9 +2737,9 @@ function fetchNgwResourceExtent(item, connector, options) {
2737
2737
  }
2738
2738
  }
2739
2739
 
2740
- var __defProp$E = Object.defineProperty;
2741
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2742
- var __publicField$q = (obj, key, value) => __defNormalProp$E(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);
2743
2743
  var __async$r = (__this, __arguments, generator) => {
2744
2744
  return new Promise((resolve, reject) => {
2745
2745
  var fulfilled = (value) => {
@@ -2835,23 +2835,23 @@ function resourceIdFromLayerOptions(options, connector) {
2835
2835
  });
2836
2836
  }
2837
2837
 
2838
- var __defProp$D = Object.defineProperty;
2839
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
2840
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
2841
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
2842
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2843
- var __spreadValues$t = (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) => {
2844
2844
  for (var prop in b || (b = {}))
2845
- if (__hasOwnProp$u.call(b, prop))
2846
- __defNormalProp$D(a, prop, b[prop]);
2847
- if (__getOwnPropSymbols$u)
2848
- for (var prop of __getOwnPropSymbols$u(b)) {
2849
- if (__propIsEnum$u.call(b, prop))
2850
- __defNormalProp$D(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]);
2851
2851
  }
2852
2852
  return a;
2853
2853
  };
2854
- var __publicField$p = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
2854
+ var __publicField$p = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
2855
2855
  var __async$p = (__this, __arguments, generator) => {
2856
2856
  return new Promise((resolve, reject) => {
2857
2857
  var fulfilled = (value) => {
@@ -2926,7 +2926,7 @@ function createOnFirstShowAdapter(_0) {
2926
2926
  this._creatingInProgress = true;
2927
2927
  const Adapter = yield createAdapter(this);
2928
2928
  if (Adapter) {
2929
- const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$t({}, adapterOptions));
2929
+ const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$u({}, adapterOptions));
2930
2930
  const realLayer = yield adapter.addLayer({
2931
2931
  order: this.options.order,
2932
2932
  headers: this.options.headers,
@@ -3010,19 +3010,19 @@ function createOnFirstShowNgwAdapter(_0) {
3010
3010
  });
3011
3011
  }
3012
3012
 
3013
- var __defProp$C = Object.defineProperty;
3014
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
3015
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
3016
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
3017
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3018
- var __spreadValues$s = (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) => {
3019
3019
  for (var prop in b || (b = {}))
3020
- if (__hasOwnProp$t.call(b, prop))
3021
- __defNormalProp$C(a, prop, b[prop]);
3022
- if (__getOwnPropSymbols$t)
3023
- for (var prop of __getOwnPropSymbols$t(b)) {
3024
- if (__propIsEnum$t.call(b, prop))
3025
- __defNormalProp$C(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]);
3026
3026
  }
3027
3027
  return a;
3028
3028
  };
@@ -3069,7 +3069,7 @@ function isPropertyFilter$1(filter) {
3069
3069
  return false;
3070
3070
  }
3071
3071
  function featureFilter(feature, filters) {
3072
- const properties = __spreadValues$s({}, feature.properties);
3072
+ const properties = __spreadValues$t({}, feature.properties);
3073
3073
  if (properties) {
3074
3074
  properties.$id = feature.id;
3075
3075
  return propertiesFilter(properties, filters);
@@ -3104,25 +3104,25 @@ function propertiesFilter(properties, filters) {
3104
3104
  return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
3105
3105
  }
3106
3106
 
3107
- var __defProp$B = Object.defineProperty;
3108
- var __defProps$g = Object.defineProperties;
3109
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
3110
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
3111
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
3112
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
3113
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3114
- var __spreadValues$r = (a, b) => {
3115
- for (var prop in b || (b = {}))
3116
- if (__hasOwnProp$s.call(b, prop))
3117
- __defNormalProp$B(a, prop, b[prop]);
3118
- if (__getOwnPropSymbols$s)
3119
- for (var prop of __getOwnPropSymbols$s(b)) {
3120
- if (__propIsEnum$s.call(b, prop))
3121
- __defNormalProp$B(a, prop, b[prop]);
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) => {
3115
+ for (var prop in b || (b = {}))
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
3122
  }
3123
3123
  return a;
3124
3124
  };
3125
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
3125
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
3126
3126
  var __async$n = (__this, __arguments, generator) => {
3127
3127
  return new Promise((resolve, reject) => {
3128
3128
  var fulfilled = (value) => {
@@ -3234,12 +3234,12 @@ function getQueries(opt, _queries = [], _parentAllParams = []) {
3234
3234
  for (const f of filters_) {
3235
3235
  if (isPropertyFilter$1(f)) {
3236
3236
  _queries.push(
3237
- fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$r({}, opt), {
3237
+ fetchNgwLayerItemsRequest(__spreadProps$h(__spreadValues$s({}, opt), {
3238
3238
  paramList: [..._parentAllParams, ...paramList, createParam(f)]
3239
3239
  }))
3240
3240
  );
3241
3241
  } else {
3242
- getQueries(__spreadProps$g(__spreadValues$r({}, opt), { filters: f }), _queries, [..._parentAllParams]);
3242
+ getQueries(__spreadProps$h(__spreadValues$s({}, opt), { filters: f }), _queries, [..._parentAllParams]);
3243
3243
  }
3244
3244
  }
3245
3245
  } else if (logic === "all") {
@@ -3254,14 +3254,14 @@ function getQueries(opt, _queries = [], _parentAllParams = []) {
3254
3254
  }
3255
3255
  if (propertiesFilterList.length) {
3256
3256
  for (const x of propertiesFilterList) {
3257
- getQueries(__spreadProps$g(__spreadValues$r({}, opt), { filters: x }), _queries, [
3257
+ getQueries(__spreadProps$h(__spreadValues$s({}, opt), { filters: x }), _queries, [
3258
3258
  ..._parentAllParams,
3259
3259
  ...filters2
3260
3260
  ]);
3261
3261
  }
3262
3262
  } else {
3263
3263
  _queries.push(
3264
- fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$r({}, opt), {
3264
+ fetchNgwLayerItemsRequest(__spreadProps$h(__spreadValues$s({}, opt), {
3265
3265
  paramList: [..._parentAllParams, ...paramList, ...filters2]
3266
3266
  }))
3267
3267
  );
@@ -3277,7 +3277,7 @@ function createWktFromCoordArray(coord) {
3277
3277
  return `POLYGON((${polygon.join(", ")}))`;
3278
3278
  }
3279
3279
  function fetchNgwLayerItemsRequest(options) {
3280
- const params = __spreadValues$r({}, FEATURE_REQUEST_PARAMS);
3280
+ const params = __spreadValues$s({}, FEATURE_REQUEST_PARAMS);
3281
3281
  const {
3282
3282
  limit,
3283
3283
  query,
@@ -3313,7 +3313,7 @@ function fetchNgwLayerItemsRequest(options) {
3313
3313
  if (paramList) {
3314
3314
  Object.assign(params, paramListToQuery(paramList));
3315
3315
  }
3316
- return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$r(__spreadValues$r({}, 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 });
3317
3317
  }
3318
3318
 
3319
3319
  function prepareNgwFieldsToPropertiesFilter(fields) {
@@ -3342,25 +3342,25 @@ function prepareNgwFieldsToPropertiesFilter(fields) {
3342
3342
  return fields;
3343
3343
  }
3344
3344
 
3345
- var __defProp$A = Object.defineProperty;
3346
- var __defProps$f = Object.defineProperties;
3347
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3348
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
3349
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
3350
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
3351
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3352
- var __spreadValues$q = (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) => {
3353
3353
  for (var prop in b || (b = {}))
3354
- if (__hasOwnProp$r.call(b, prop))
3355
- __defNormalProp$A(a, prop, b[prop]);
3356
- if (__getOwnPropSymbols$r)
3357
- for (var prop of __getOwnPropSymbols$r(b)) {
3358
- if (__propIsEnum$r.call(b, prop))
3359
- __defNormalProp$A(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]);
3360
3360
  }
3361
3361
  return a;
3362
3362
  };
3363
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3363
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
3364
3364
  var __async$m = (__this, __arguments, generator) => {
3365
3365
  return new Promise((resolve, reject) => {
3366
3366
  var fulfilled = (value) => {
@@ -3386,13 +3386,13 @@ function fetchNgwLayerItems(options) {
3386
3386
  var _a;
3387
3387
  const filters = options.filters;
3388
3388
  if (filters) {
3389
- let data = yield createFeatureFieldFilterQueries(__spreadProps$f(__spreadValues$q({}, options), {
3389
+ let data = yield createFeatureFieldFilterQueries(__spreadProps$g(__spreadValues$r({}, options), {
3390
3390
  filters
3391
3391
  }));
3392
3392
  const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
3393
3393
  if (clientFilterValidate) {
3394
3394
  data = data.filter((y) => {
3395
- const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$f(__spreadValues$q({}, y.fields), {
3395
+ const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$g(__spreadValues$r({}, y.fields), {
3396
3396
  id: y.id
3397
3397
  }));
3398
3398
  const result = propertiesFilter(fields, filters);
@@ -3510,25 +3510,25 @@ function ngwApiToAdapterOptions({
3510
3510
  }
3511
3511
  }
3512
3512
 
3513
- var __defProp$z = Object.defineProperty;
3514
- var __defProps$e = Object.defineProperties;
3515
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3516
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
3517
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
3518
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
3519
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3520
- var __spreadValues$p = (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) => {
3521
3521
  for (var prop in b || (b = {}))
3522
- if (__hasOwnProp$q.call(b, prop))
3523
- __defNormalProp$z(a, prop, b[prop]);
3524
- if (__getOwnPropSymbols$q)
3525
- for (var prop of __getOwnPropSymbols$q(b)) {
3526
- if (__propIsEnum$q.call(b, prop))
3527
- __defNormalProp$z(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]);
3528
3528
  }
3529
3529
  return a;
3530
3530
  };
3531
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3531
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3532
3532
  var __async$l = (__this, __arguments, generator) => {
3533
3533
  return new Promise((resolve, reject) => {
3534
3534
  var fulfilled = (value) => {
@@ -3551,48 +3551,48 @@ var __async$l = (__this, __arguments, generator) => {
3551
3551
  };
3552
3552
  function fetchNgwLayerItem(options) {
3553
3553
  return __async$l(this, null, function* () {
3554
- const params = __spreadValues$p({}, FEATURE_REQUEST_PARAMS);
3554
+ const params = __spreadValues$q({}, FEATURE_REQUEST_PARAMS);
3555
3555
  updateItemRequestParam(params, options);
3556
3556
  const resp = yield options.connector.route("feature_layer.feature.item", {
3557
3557
  id: Number(options.resourceId),
3558
3558
  fid: options.featureId
3559
- }).get(__spreadProps$e(__spreadValues$p({}, options), { query: params }));
3559
+ }).get(__spreadProps$f(__spreadValues$q({}, options), { query: params }));
3560
3560
  const toGeojson = () => __async$l(null, null, function* () {
3561
3561
  if (resp.geom) {
3562
3562
  return createGeoJsonFeature(resp);
3563
3563
  } else {
3564
- const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$e(__spreadValues$p({}, options), {
3564
+ const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$f(__spreadValues$q({}, options), {
3565
3565
  geom: true,
3566
3566
  fields: null,
3567
3567
  extensions: null
3568
3568
  }));
3569
3569
  const geom = onlyGeomItem.geom;
3570
- return createGeoJsonFeature(__spreadProps$e(__spreadValues$p({}, resp), { geom }));
3570
+ return createGeoJsonFeature(__spreadProps$f(__spreadValues$q({}, resp), { geom }));
3571
3571
  }
3572
3572
  });
3573
- return __spreadProps$e(__spreadValues$p({}, resp), {
3573
+ return __spreadProps$f(__spreadValues$q({}, resp), {
3574
3574
  toGeojson
3575
3575
  });
3576
3576
  });
3577
3577
  }
3578
3578
 
3579
- var __defProp$y = Object.defineProperty;
3580
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
3581
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
3582
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
3583
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3584
- var __spreadValues$o = (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) => {
3585
3585
  for (var prop in b || (b = {}))
3586
- if (__hasOwnProp$p.call(b, prop))
3587
- __defNormalProp$y(a, prop, b[prop]);
3588
- if (__getOwnPropSymbols$p)
3589
- for (var prop of __getOwnPropSymbols$p(b)) {
3590
- if (__propIsEnum$p.call(b, prop))
3591
- __defNormalProp$y(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]);
3592
3592
  }
3593
3593
  return a;
3594
3594
  };
3595
- var __publicField$o = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3595
+ var __publicField$o = (obj, key, value) => __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
3596
3596
  class BookmarkItem {
3597
3597
  constructor(options) {
3598
3598
  this.options = options;
@@ -3629,7 +3629,7 @@ class BookmarkItem {
3629
3629
  if (this.item.geom) {
3630
3630
  return Promise.resolve(createGeoJsonFeature(this.item));
3631
3631
  } else {
3632
- return fetchNgwLayerItem(__spreadValues$o({
3632
+ return fetchNgwLayerItem(__spreadValues$p({
3633
3633
  resourceId: this.resourceId,
3634
3634
  featureId: this.item.id,
3635
3635
  connector: this.options.connector,
@@ -3647,9 +3647,9 @@ class BookmarkItem {
3647
3647
 
3648
3648
  const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
3649
3649
 
3650
- var __defProp$x = Object.defineProperty;
3651
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3652
- var __publicField$n = (obj, key, value) => __defNormalProp$x(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);
3653
3653
  class BaseProperty {
3654
3654
  constructor(name, item, options) {
3655
3655
  __publicField$n(this, "options");
@@ -3762,26 +3762,26 @@ class BaseProperty {
3762
3762
  }
3763
3763
  }
3764
3764
 
3765
- var __defProp$w = Object.defineProperty;
3766
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3767
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3768
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3769
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3770
- var __spreadValues$n = (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) => {
3771
3771
  for (var prop in b || (b = {}))
3772
- if (__hasOwnProp$o.call(b, prop))
3773
- __defNormalProp$w(a, prop, b[prop]);
3774
- if (__getOwnPropSymbols$o)
3775
- for (var prop of __getOwnPropSymbols$o(b)) {
3776
- if (__propIsEnum$o.call(b, prop))
3777
- __defNormalProp$w(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]);
3778
3778
  }
3779
3779
  return a;
3780
3780
  };
3781
- var __publicField$m = (obj, key, value) => __defNormalProp$w(obj, key + "" , value);
3781
+ var __publicField$m = (obj, key, value) => __defNormalProp$x(obj, key + "" , value);
3782
3782
  const _CheckProperty = class _CheckProperty extends BaseProperty {
3783
3783
  constructor(name, item, options) {
3784
- super(name, item, __spreadValues$n(__spreadValues$n({}, _CheckProperty.options), options));
3784
+ super(name, item, __spreadValues$o(__spreadValues$o({}, _CheckProperty.options), options));
3785
3785
  this.set(this.get());
3786
3786
  }
3787
3787
  update(value, options) {
@@ -3862,13 +3862,13 @@ const _CheckProperty = class _CheckProperty extends BaseProperty {
3862
3862
  _blockChild(item, options) {
3863
3863
  const prop = item.properties && item.properties.property(this.name);
3864
3864
  if (prop && prop.block) {
3865
- prop.block(__spreadValues$n({ silent: true }, options || {}));
3865
+ prop.block(__spreadValues$o({ silent: true }, options || {}));
3866
3866
  }
3867
3867
  }
3868
3868
  _unBlockChild(item, options) {
3869
3869
  const prop = item.properties && item.properties.property(this.name);
3870
3870
  if (prop && prop.unBlock) {
3871
- prop.unBlock(__spreadValues$n({ silent: true }, options || {}));
3871
+ prop.unBlock(__spreadValues$o({ silent: true }, options || {}));
3872
3872
  }
3873
3873
  }
3874
3874
  _propagation(value, options) {
@@ -3878,7 +3878,7 @@ const _CheckProperty = class _CheckProperty extends BaseProperty {
3878
3878
  const child = children[fry];
3879
3879
  const property = child.properties && child.properties.property(this.name);
3880
3880
  if (property) {
3881
- property.set(value, __spreadValues$n(__spreadValues$n({}, options), {
3881
+ property.set(value, __spreadValues$o(__spreadValues$o({}, options), {
3882
3882
  propagation: true,
3883
3883
  bubble: false
3884
3884
  }));
@@ -3896,23 +3896,23 @@ __publicField$m(_CheckProperty, "options", {
3896
3896
  });
3897
3897
  let CheckProperty = _CheckProperty;
3898
3898
 
3899
- var __defProp$v = Object.defineProperty;
3900
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3901
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3902
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3903
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3904
- var __spreadValues$m = (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) => {
3905
3905
  for (var prop in b || (b = {}))
3906
- if (__hasOwnProp$n.call(b, prop))
3907
- __defNormalProp$v(a, prop, b[prop]);
3908
- if (__getOwnPropSymbols$n)
3909
- for (var prop of __getOwnPropSymbols$n(b)) {
3910
- if (__propIsEnum$n.call(b, prop))
3911
- __defNormalProp$v(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]);
3912
3912
  }
3913
3913
  return a;
3914
3914
  };
3915
- var __publicField$l = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3915
+ var __publicField$l = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3916
3916
  const BOOLEAN_TYPE = "boolean";
3917
3917
  const STRING_TYPE = "string";
3918
3918
  const _ItemProperties = class _ItemProperties {
@@ -3960,7 +3960,7 @@ const _ItemProperties = class _ItemProperties {
3960
3960
  _setPropertyHandler(propOpt) {
3961
3961
  const Handler = this._getHandler(propOpt);
3962
3962
  if (Handler && propOpt.name) {
3963
- const options = __spreadValues$m({}, propOpt);
3963
+ const options = __spreadValues$n({}, propOpt);
3964
3964
  this._properties[propOpt.name] = new Handler(
3965
3965
  propOpt.name,
3966
3966
  this.item,
@@ -4090,9 +4090,9 @@ function treeEvery_(item, filterFunc = (x) => !!x, relation, _filtered = []) {
4090
4090
  return true;
4091
4091
  }
4092
4092
 
4093
- var __defProp$u = Object.defineProperty;
4094
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4095
- var __publicField$k = (obj, key, value) => __defNormalProp$u(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);
4096
4096
  class TreeHelper {
4097
4097
  constructor(item) {
4098
4098
  __publicField$k(this, "item");
@@ -4160,23 +4160,23 @@ class TreeHelper {
4160
4160
  }
4161
4161
  }
4162
4162
 
4163
- var __defProp$t = Object.defineProperty;
4164
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
4165
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
4166
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
4167
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4168
- var __spreadValues$l = (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) => {
4169
4169
  for (var prop in b || (b = {}))
4170
- if (__hasOwnProp$m.call(b, prop))
4171
- __defNormalProp$t(a, prop, b[prop]);
4172
- if (__getOwnPropSymbols$m)
4173
- for (var prop of __getOwnPropSymbols$m(b)) {
4174
- if (__propIsEnum$m.call(b, prop))
4175
- __defNormalProp$t(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]);
4176
4176
  }
4177
4177
  return a;
4178
4178
  };
4179
- var __publicField$j = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
4179
+ var __publicField$j = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
4180
4180
  let ID$1 = 0;
4181
4181
  class Item {
4182
4182
  constructor(options) {
@@ -4185,7 +4185,7 @@ class Item {
4185
4185
  __publicField$j(this, "tree");
4186
4186
  __publicField$j(this, "id", ID$1);
4187
4187
  ID$1 += 1;
4188
- this.options = __spreadValues$l({}, options);
4188
+ this.options = __spreadValues$m({}, options);
4189
4189
  this.tree = new TreeHelper(this);
4190
4190
  }
4191
4191
  initProperties() {
@@ -4241,26 +4241,26 @@ function createLayerSymbolParam(resourceId, intervals) {
4241
4241
  return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
4242
4242
  }
4243
4243
 
4244
- var __defProp$s = Object.defineProperty;
4245
- var __defProps$d = Object.defineProperties;
4246
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
4247
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
4248
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
4249
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
4250
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4251
- var __spreadValues$k = (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) => {
4252
4252
  for (var prop in b || (b = {}))
4253
- if (__hasOwnProp$l.call(b, prop))
4254
- __defNormalProp$s(a, prop, b[prop]);
4255
- if (__getOwnPropSymbols$l)
4256
- for (var prop of __getOwnPropSymbols$l(b)) {
4257
- if (__propIsEnum$l.call(b, prop))
4258
- __defNormalProp$s(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]);
4259
4259
  }
4260
4260
  return a;
4261
4261
  };
4262
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
4263
- var __publicField$i = (obj, key, value) => __defNormalProp$s(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);
4264
4264
  var __async$k = (__this, __arguments, generator) => {
4265
4265
  return new Promise((resolve, reject) => {
4266
4266
  var fulfilled = (value) => {
@@ -4325,14 +4325,14 @@ class Legend {
4325
4325
  if (this.connector) {
4326
4326
  const ngwLegend = yield this.connector.route("render.legend_symbols", {
4327
4327
  id: this.resourceId
4328
- }).get(__spreadValues$k({}, options));
4328
+ }).get(__spreadValues$l({}, options));
4329
4329
  this.legend = ngwLegend;
4330
4330
  return this.createLegend(ngwLegend);
4331
4331
  }
4332
4332
  });
4333
4333
  }
4334
4334
  createLegend(items) {
4335
- return items.map((params) => __spreadProps$d(__spreadValues$k({}, params), {
4335
+ return items.map((params) => __spreadProps$e(__spreadValues$l({}, params), {
4336
4336
  /** @deprecated use display_name instead */
4337
4337
  name: params.display_name,
4338
4338
  /** @deprecated use icon instead */
@@ -4362,7 +4362,7 @@ class Legend {
4362
4362
  }
4363
4363
  if (this.layer.updateLayer) {
4364
4364
  this.layer.updateLayer({
4365
- params: __spreadValues$k({}, createLayerSymbolParam(this.resourceId, intervals))
4365
+ params: __spreadValues$l({}, createLayerSymbolParam(this.resourceId, intervals))
4366
4366
  });
4367
4367
  }
4368
4368
  if (intervals.length) {
@@ -4399,26 +4399,26 @@ class Legend {
4399
4399
  }
4400
4400
  }
4401
4401
 
4402
- var __defProp$r = Object.defineProperty;
4403
- var __defProps$c = Object.defineProperties;
4404
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4405
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
4406
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
4407
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
4408
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4409
- var __spreadValues$j = (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) => {
4410
4410
  for (var prop in b || (b = {}))
4411
- if (__hasOwnProp$k.call(b, prop))
4412
- __defNormalProp$r(a, prop, b[prop]);
4413
- if (__getOwnPropSymbols$k)
4414
- for (var prop of __getOwnPropSymbols$k(b)) {
4415
- if (__propIsEnum$k.call(b, prop))
4416
- __defNormalProp$r(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]);
4417
4417
  }
4418
4418
  return a;
4419
4419
  };
4420
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
4421
- var __publicField$h = (obj, key, value) => __defNormalProp$r(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);
4422
4422
  var __async$j = (__this, __arguments, generator) => {
4423
4423
  return new Promise((resolve, reject) => {
4424
4424
  var fulfilled = (value) => {
@@ -4448,7 +4448,7 @@ const _NgwWebmapItem = class _NgwWebmapItem extends Item {
4448
4448
  parent,
4449
4449
  noInit
4450
4450
  }) {
4451
- super(__spreadValues$j(__spreadValues$j({}, _NgwWebmapItem.options), options));
4451
+ super(__spreadValues$k(__spreadValues$k({}, _NgwWebmapItem.options), options));
4452
4452
  __publicField$h(this, "item");
4453
4453
  __publicField$h(this, "webMap");
4454
4454
  __publicField$h(this, "connector");
@@ -4544,7 +4544,7 @@ const _NgwWebmapItem = class _NgwWebmapItem extends Item {
4544
4544
  getItemOptions(item) {
4545
4545
  const transparency = item.item_type === "layer" && item.layer_transparency;
4546
4546
  const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
4547
- const options = __spreadProps$c(__spreadValues$j({
4547
+ const options = __spreadProps$d(__spreadValues$k({
4548
4548
  visibility: false,
4549
4549
  name: item.display_name
4550
4550
  }, this.options), {
@@ -4564,7 +4564,7 @@ const _NgwWebmapItem = class _NgwWebmapItem extends Item {
4564
4564
  }
4565
4565
  if (item.item_type === "layer") {
4566
4566
  const { maxZoom, minZoom } = this._getZoomRange(item);
4567
- Object.assign(options, __spreadProps$c(__spreadValues$j({
4567
+ Object.assign(options, __spreadProps$d(__spreadValues$k({
4568
4568
  updateWmsParams: item.updateWmsParams
4569
4569
  }, options), {
4570
4570
  url: item.url,
@@ -4708,26 +4708,26 @@ __publicField$h(_NgwWebmapItem, "options", {
4708
4708
  });
4709
4709
  let NgwWebmapItem = _NgwWebmapItem;
4710
4710
 
4711
- var __defProp$q = Object.defineProperty;
4712
- var __defProps$b = Object.defineProperties;
4713
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
4714
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
4715
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
4716
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
4717
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4718
- var __spreadValues$i = (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) => {
4719
4719
  for (var prop in b || (b = {}))
4720
- if (__hasOwnProp$j.call(b, prop))
4721
- __defNormalProp$q(a, prop, b[prop]);
4722
- if (__getOwnPropSymbols$j)
4723
- for (var prop of __getOwnPropSymbols$j(b)) {
4724
- if (__propIsEnum$j.call(b, prop))
4725
- __defNormalProp$q(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]);
4726
4726
  }
4727
4727
  return a;
4728
4728
  };
4729
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
4730
- var __publicField$g = (obj, key, value) => __defNormalProp$q(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);
4731
4731
  var __async$i = (__this, __arguments, generator) => {
4732
4732
  return new Promise((resolve, reject) => {
4733
4733
  var fulfilled = (value) => {
@@ -4780,7 +4780,7 @@ class NgwWebmapLayerAdapter {
4780
4780
  addLayer(options) {
4781
4781
  return __async$i(this, null, function* () {
4782
4782
  var _a;
4783
- this.options = __spreadValues$i(__spreadValues$i({}, this.options), options);
4783
+ this.options = __spreadValues$j(__spreadValues$j({}, this.options), options);
4784
4784
  this.layer = yield this._getWebMapLayerItem();
4785
4785
  const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
4786
4786
  if (this.options.useExtentConstrained && this._extent && extentConstrained) {
@@ -4859,7 +4859,7 @@ class NgwWebmapLayerAdapter {
4859
4859
  (x) => x.label_field
4860
4860
  );
4861
4861
  const keyname = labelField && labelField.keyname;
4862
- return fetchNgwLayerItems(__spreadValues$i({
4862
+ return fetchNgwLayerItems(__spreadValues$j({
4863
4863
  connector,
4864
4864
  resourceId: bookmarkResId,
4865
4865
  geom: false,
@@ -4928,7 +4928,7 @@ class NgwWebmapLayerAdapter {
4928
4928
  const connector = this.options.connector;
4929
4929
  const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
4930
4930
  const withCredentials = connector.withCredentials;
4931
- const options = __spreadProps$b(__spreadValues$i({}, this.options), {
4931
+ const options = __spreadProps$c(__spreadValues$j({}, this.options), {
4932
4932
  withCredentials,
4933
4933
  headers,
4934
4934
  drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
@@ -5034,7 +5034,7 @@ class NgwWebmapLayerAdapter {
5034
5034
  webMap,
5035
5035
  baseUrl: this.options.connector.options.baseUrl || ""
5036
5036
  });
5037
- item = __spreadValues$i(__spreadValues$i({}, layerItem), layerAdapterOptions);
5037
+ item = __spreadValues$j(__spreadValues$j({}, layerItem), layerAdapterOptions);
5038
5038
  }
5039
5039
  }
5040
5040
  if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
@@ -5044,40 +5044,40 @@ class NgwWebmapLayerAdapter {
5044
5044
  }
5045
5045
  }
5046
5046
 
5047
- var __defProp$p = Object.defineProperty;
5048
- var __defProps$a = Object.defineProperties;
5049
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
5050
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
5051
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
5052
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
5053
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5054
- var __spreadValues$h = (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) => {
5055
5055
  for (var prop in b || (b = {}))
5056
- if (__hasOwnProp$i.call(b, prop))
5057
- __defNormalProp$p(a, prop, b[prop]);
5058
- if (__getOwnPropSymbols$i)
5059
- for (var prop of __getOwnPropSymbols$i(b)) {
5060
- if (__propIsEnum$i.call(b, prop))
5061
- __defNormalProp$p(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]);
5062
5062
  }
5063
5063
  return a;
5064
5064
  };
5065
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
5065
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
5066
5066
  var __objRest$4 = (source, exclude) => {
5067
5067
  var target = {};
5068
5068
  for (var prop in source)
5069
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
5069
+ if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
5070
5070
  target[prop] = source[prop];
5071
- if (source != null && __getOwnPropSymbols$i)
5072
- for (var prop of __getOwnPropSymbols$i(source)) {
5073
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.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))
5074
5074
  target[prop] = source[prop];
5075
5075
  }
5076
5076
  return target;
5077
5077
  };
5078
5078
  function updateImageParams(params, resourceId) {
5079
5079
  const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$4(_a, ["bbox", "width", "height", "nd"]);
5080
- return __spreadProps$a(__spreadValues$h({}, rest), {
5080
+ return __spreadProps$b(__spreadValues$i({}, rest), {
5081
5081
  resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
5082
5082
  extent: bbox,
5083
5083
  size: width + "," + height,
@@ -5112,7 +5112,7 @@ function createNgwLayerAdapter(options, webMap, connector) {
5112
5112
  function extendNgwWebmapLayerAdapter(opt) {
5113
5113
  class A extends NgwWebmapLayerAdapter {
5114
5114
  constructor(map, options) {
5115
- options = __spreadValues$h(__spreadValues$h({}, opt), options);
5115
+ options = __spreadValues$i(__spreadValues$i({}, opt), options);
5116
5116
  super(map, options);
5117
5117
  }
5118
5118
  }
@@ -5191,35 +5191,35 @@ function updateQmsOptions(qms) {
5191
5191
  };
5192
5192
  }
5193
5193
 
5194
- var __defProp$o = Object.defineProperty;
5195
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
5196
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
5197
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
5198
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5199
- var __spreadValues$g = (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) => {
5200
5200
  for (var prop in b || (b = {}))
5201
- if (__hasOwnProp$h.call(b, prop))
5202
- __defNormalProp$o(a, prop, b[prop]);
5203
- if (__getOwnPropSymbols$h)
5204
- for (var prop of __getOwnPropSymbols$h(b)) {
5205
- if (__propIsEnum$h.call(b, prop))
5206
- __defNormalProp$o(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]);
5207
5207
  }
5208
5208
  return a;
5209
5209
  };
5210
5210
  var __objRest$3 = (source, exclude) => {
5211
5211
  var target = {};
5212
5212
  for (var prop in source)
5213
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
5213
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
5214
5214
  target[prop] = source[prop];
5215
- if (source != null && __getOwnPropSymbols$h)
5216
- for (var prop of __getOwnPropSymbols$h(source)) {
5217
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.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))
5218
5218
  target[prop] = source[prop];
5219
5219
  }
5220
5220
  return target;
5221
5221
  };
5222
- var __publicField$f = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
5222
+ var __publicField$f = (obj, key, value) => __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
5223
5223
  var __async$h = (__this, __arguments, generator) => {
5224
5224
  return new Promise((resolve, reject) => {
5225
5225
  var fulfilled = (value) => {
@@ -5264,7 +5264,7 @@ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5264
5264
  __publicField$f(this, "options");
5265
5265
  __publicField$f(this, "map");
5266
5266
  this.map = map;
5267
- const opt = __spreadValues$g(__spreadValues$g({}, createOpt), options);
5267
+ const opt = __spreadValues$h(__spreadValues$h({}, createOpt), options);
5268
5268
  this.options = opt;
5269
5269
  this.options.baselayer = true;
5270
5270
  if (opt.qms) {
@@ -5292,7 +5292,7 @@ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5292
5292
  "hideLayer"
5293
5293
  ]);
5294
5294
  if (type === "TILE") {
5295
- options = __spreadValues$g(__spreadValues$g({
5295
+ options = __spreadValues$h(__spreadValues$h({
5296
5296
  order: 0,
5297
5297
  maxZoom: webMap.options.maxZoom,
5298
5298
  minZoom: webMap.options.minZoom
@@ -5316,30 +5316,30 @@ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5316
5316
  return QmsAdapter;
5317
5317
  }
5318
5318
 
5319
- var __defProp$n = Object.defineProperty;
5320
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
5321
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
5322
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
5323
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5324
- var __spreadValues$f = (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) => {
5325
5325
  for (var prop in b || (b = {}))
5326
- if (__hasOwnProp$g.call(b, prop))
5327
- __defNormalProp$n(a, prop, b[prop]);
5328
- if (__getOwnPropSymbols$g)
5329
- for (var prop of __getOwnPropSymbols$g(b)) {
5330
- if (__propIsEnum$g.call(b, prop))
5331
- __defNormalProp$n(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]);
5332
5332
  }
5333
5333
  return a;
5334
5334
  };
5335
- var __publicField$e = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
5335
+ var __publicField$e = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
5336
5336
  class QmsKit {
5337
5337
  constructor(options) {
5338
5338
  __publicField$e(this, "options", {
5339
5339
  url: "https://qms.nextgis.com"
5340
5340
  });
5341
5341
  __publicField$e(this, "url");
5342
- this.options = __spreadValues$f(__spreadValues$f({}, this.options), options);
5342
+ this.options = __spreadValues$g(__spreadValues$g({}, this.options), options);
5343
5343
  this.url = this.options.url;
5344
5344
  }
5345
5345
  getLayerAdapters() {
@@ -5358,27 +5358,27 @@ __publicField$e(QmsKit, "utils", {
5358
5358
  createQmsAdapter
5359
5359
  });
5360
5360
 
5361
- var __defProp$m = Object.defineProperty;
5362
- var __defProps$9 = Object.defineProperties;
5363
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
5364
- var __getOwnPropSymbols$f = 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;
5365
5365
  var __getProtoOf$2 = Object.getPrototypeOf;
5366
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
5367
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
5366
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
5367
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
5368
5368
  var __reflectGet$2 = Reflect.get;
5369
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5370
- var __spreadValues$e = (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) => {
5371
5371
  for (var prop in b || (b = {}))
5372
- if (__hasOwnProp$f.call(b, prop))
5373
- __defNormalProp$m(a, prop, b[prop]);
5374
- if (__getOwnPropSymbols$f)
5375
- for (var prop of __getOwnPropSymbols$f(b)) {
5376
- if (__propIsEnum$f.call(b, prop))
5377
- __defNormalProp$m(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]);
5378
5378
  }
5379
5379
  return a;
5380
5380
  };
5381
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
5381
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
5382
5382
  var __superGet$2 = (cls, obj, key) => __reflectGet$2(__getProtoOf$2(cls), key, obj);
5383
5383
  var __async$g = (__this, __arguments, generator) => {
5384
5384
  return new Promise((resolve, reject) => {
@@ -5424,7 +5424,7 @@ function createBasemapLayerAdapter(_0) {
5424
5424
  addLayer(opt) {
5425
5425
  return __async$g(this, null, function* () {
5426
5426
  if (url) {
5427
- return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$9(__spreadValues$e({}, opt), { url }));
5427
+ return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$a(__spreadValues$f({}, opt), { url }));
5428
5428
  }
5429
5429
  });
5430
5430
  }
@@ -5533,28 +5533,28 @@ function getLayerFilterOptions(options) {
5533
5533
  return filterOptions;
5534
5534
  }
5535
5535
 
5536
- var __defProp$l = Object.defineProperty;
5537
- var __defProps$8 = Object.defineProperties;
5538
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
5539
- var __getOwnPropSymbols$e = 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;
5540
5540
  var __getProtoOf$1 = Object.getPrototypeOf;
5541
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
5542
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
5541
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
5542
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
5543
5543
  var __reflectGet$1 = Reflect.get;
5544
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5545
- var __spreadValues$d = (a, b) => {
5546
- for (var prop in b || (b = {}))
5547
- if (__hasOwnProp$e.call(b, prop))
5548
- __defNormalProp$l(a, prop, b[prop]);
5549
- if (__getOwnPropSymbols$e)
5550
- for (var prop of __getOwnPropSymbols$e(b)) {
5551
- if (__propIsEnum$e.call(b, prop))
5552
- __defNormalProp$l(a, prop, b[prop]);
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) => {
5546
+ for (var prop in b || (b = {}))
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]);
5553
5553
  }
5554
5554
  return a;
5555
5555
  };
5556
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
5557
- var __publicField$d = (obj, key, value) => __defNormalProp$l(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);
5558
5558
  var __superGet$1 = (cls, obj, key) => __reflectGet$1(__getProtoOf$1(cls), key, obj);
5559
5559
  var __async$e = (__this, __arguments, generator) => {
5560
5560
  return new Promise((resolve, reject) => {
@@ -5610,7 +5610,7 @@ function createGeoJsonAdapter(props) {
5610
5610
  filterOpt = filterOpt || {};
5611
5611
  filterOpt.signal = internalSignal;
5612
5612
  _lastFilterArgs = { filters, options: filterOpt };
5613
- return fetchNgwLayerFeatureCollection(__spreadValues$d({
5613
+ return fetchNgwLayerFeatureCollection(__spreadValues$e({
5614
5614
  resourceId,
5615
5615
  filters,
5616
5616
  connector,
@@ -5645,9 +5645,9 @@ function createGeoJsonAdapter(props) {
5645
5645
  }
5646
5646
  if (options.adapterOptions) {
5647
5647
  if (addLayerOptionsPriority) {
5648
- opt = __spreadValues$d(__spreadValues$d({}, options.adapterOptions), opt);
5648
+ opt = __spreadValues$e(__spreadValues$e({}, options.adapterOptions), opt);
5649
5649
  } else {
5650
- opt = __spreadValues$d(__spreadValues$d({}, opt), options.adapterOptions);
5650
+ opt = __spreadValues$e(__spreadValues$e({}, opt), options.adapterOptions);
5651
5651
  }
5652
5652
  }
5653
5653
  if (opt.data && Object.keys(opt.data).length === 0) {
@@ -5732,7 +5732,7 @@ function createGeoJsonAdapter(props) {
5732
5732
  try {
5733
5733
  this.emitter.emit("preupdate", filterArgs);
5734
5734
  webMap._emitLayerEvent("layer:preupdate", options.id || "", filterArgs);
5735
- const data = yield getData(filterArgs.filters, __spreadProps$8(__spreadValues$d({}, filterArgs.options), {
5735
+ const data = yield getData(filterArgs.filters, __spreadProps$9(__spreadValues$e({}, filterArgs.options), {
5736
5736
  srs: this.options.srs
5737
5737
  }));
5738
5738
  let newData = data;
@@ -5775,7 +5775,7 @@ function createGeoJsonAdapter(props) {
5775
5775
  abort();
5776
5776
  if (this.filter && _fullDataLoad) {
5777
5777
  this.filter((e) => {
5778
- const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$d({}, e.feature.properties));
5778
+ const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$e({}, e.feature.properties));
5779
5779
  if (props_) {
5780
5780
  return propertiesFilter(props_, filters);
5781
5781
  }
@@ -5785,7 +5785,7 @@ function createGeoJsonAdapter(props) {
5785
5785
  if (this.clearLayer) {
5786
5786
  this.clearLayer();
5787
5787
  }
5788
- const data = yield getData(filters, __spreadProps$8(__spreadValues$d({}, opt), {
5788
+ const data = yield getData(filters, __spreadProps$9(__spreadValues$e({}, opt), {
5789
5789
  srs: this.options.srs
5790
5790
  }));
5791
5791
  this.setData(data);
@@ -6013,38 +6013,38 @@ function createLayerFilterParam(resourceId, filter) {
6013
6013
  };
6014
6014
  }
6015
6015
 
6016
- var __defProp$k = Object.defineProperty;
6017
- var __defProps$7 = Object.defineProperties;
6018
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
6019
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
6020
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
6021
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
6022
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6023
- var __spreadValues$c = (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) => {
6024
6024
  for (var prop in b || (b = {}))
6025
- if (__hasOwnProp$d.call(b, prop))
6026
- __defNormalProp$k(a, prop, b[prop]);
6027
- if (__getOwnPropSymbols$d)
6028
- for (var prop of __getOwnPropSymbols$d(b)) {
6029
- if (__propIsEnum$d.call(b, prop))
6030
- __defNormalProp$k(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]);
6031
6031
  }
6032
6032
  return a;
6033
6033
  };
6034
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
6034
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
6035
6035
  var __objRest$2 = (source, exclude) => {
6036
6036
  var target = {};
6037
6037
  for (var prop in source)
6038
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
6038
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
6039
6039
  target[prop] = source[prop];
6040
- if (source != null && __getOwnPropSymbols$d)
6041
- for (var prop of __getOwnPropSymbols$d(source)) {
6042
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.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))
6043
6043
  target[prop] = source[prop];
6044
6044
  }
6045
6045
  return target;
6046
6046
  };
6047
- var __publicField$c = (obj, key, value) => __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
6047
+ var __publicField$c = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
6048
6048
  var __async$c = (__this, __arguments, generator) => {
6049
6049
  return new Promise((resolve, reject) => {
6050
6050
  var fulfilled = (value) => {
@@ -6113,11 +6113,11 @@ function createRasterAdapter(_0) {
6113
6113
  resourceId,
6114
6114
  propertiesFilter
6115
6115
  );
6116
- const layerAdapterOptions = __spreadProps$7(__spreadValues$c(__spreadValues$c({}, opt), restAdapterOptions), {
6117
- params: __spreadValues$c({
6116
+ const layerAdapterOptions = __spreadProps$8(__spreadValues$d(__spreadValues$d({}, opt), restAdapterOptions), {
6117
+ params: __spreadValues$d({
6118
6118
  resource: resourceId
6119
6119
  }, filterParams),
6120
- url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$c({
6120
+ url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$d({
6121
6121
  resource: String(resourceId)
6122
6122
  }, filterParams)) : opt.url,
6123
6123
  layers: opt.layers || String(resourceId),
@@ -6126,17 +6126,17 @@ function createRasterAdapter(_0) {
6126
6126
  if (layerOptions.adapterOptions && defined(layerOptions.adapterOptions.setViewDelay)) {
6127
6127
  layerAdapterOptions.setViewDelay = layerOptions.adapterOptions.setViewDelay;
6128
6128
  }
6129
- this.options = __spreadValues$c(__spreadValues$c({}, this.options), layerAdapterOptions);
6129
+ this.options = __spreadValues$d(__spreadValues$d({}, this.options), layerAdapterOptions);
6130
6130
  }
6131
6131
  }
6132
6132
  addLayer(addOptions) {
6133
- return super.addLayer(__spreadValues$c(__spreadValues$c({}, this.options), addOptions));
6133
+ return super.addLayer(__spreadValues$d(__spreadValues$d({}, this.options), addOptions));
6134
6134
  }
6135
6135
  propertiesFilter(filters) {
6136
6136
  return __async$c(this, null, function* () {
6137
6137
  var _a;
6138
6138
  const opt = this.options;
6139
- const params = __spreadValues$c(__spreadValues$c({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
6139
+ const params = __spreadValues$d(__spreadValues$d({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
6140
6140
  opt.params = params;
6141
6141
  (_a = this.updateLayer) == null ? void 0 : _a.call(this, { params });
6142
6142
  });
@@ -6161,7 +6161,7 @@ function createRasterAdapter(_0) {
6161
6161
  return __async$c(this, null, function* () {
6162
6162
  const id = this.options.id;
6163
6163
  if (id !== void 0) {
6164
- const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$c({
6164
+ const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$d({
6165
6165
  cache: true
6166
6166
  }, options));
6167
6167
  const legend = new Legend({
@@ -6183,25 +6183,25 @@ function createRasterAdapter(_0) {
6183
6183
  });
6184
6184
  }
6185
6185
 
6186
- var __defProp$j = Object.defineProperty;
6187
- var __defProps$6 = Object.defineProperties;
6188
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
6189
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
6190
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
6191
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
6192
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6193
- var __spreadValues$b = (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) => {
6194
6194
  for (var prop in b || (b = {}))
6195
- if (__hasOwnProp$c.call(b, prop))
6196
- __defNormalProp$j(a, prop, b[prop]);
6197
- if (__getOwnPropSymbols$c)
6198
- for (var prop of __getOwnPropSymbols$c(b)) {
6199
- if (__propIsEnum$c.call(b, prop))
6200
- __defNormalProp$j(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]);
6201
6201
  }
6202
6202
  return a;
6203
6203
  };
6204
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
6204
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
6205
6205
  var __async$b = (__this, __arguments, generator) => {
6206
6206
  return new Promise((resolve, reject) => {
6207
6207
  var fulfilled = (value) => {
@@ -6249,7 +6249,7 @@ function createAdapterFromFirstStyle(_0) {
6249
6249
  const firstStyle = childrenStyles && childrenStyles[0];
6250
6250
  if (firstStyle) {
6251
6251
  return createAsyncAdapter(
6252
- __spreadProps$6(__spreadValues$b({}, layerOptions), { resource: firstStyle.resource.id }),
6252
+ __spreadProps$7(__spreadValues$c({}, layerOptions), { resource: firstStyle.resource.id }),
6253
6253
  webMap,
6254
6254
  connector
6255
6255
  );
@@ -6272,7 +6272,7 @@ function createAsyncAdapter(options, webMap, connector) {
6272
6272
  }
6273
6273
  if (item) {
6274
6274
  const cls = item.resource.cls;
6275
- const layerOptions = __spreadProps$6(__spreadValues$b({}, options), {
6275
+ const layerOptions = __spreadProps$7(__spreadValues$c({}, options), {
6276
6276
  resource: resourceId
6277
6277
  });
6278
6278
  const adapterOptions = {
@@ -6309,10 +6309,10 @@ function createAsyncAdapter(options, webMap, connector) {
6309
6309
  item.resource.parent.id
6310
6310
  );
6311
6311
  if (parentItem) {
6312
- const parentOptions = __spreadProps$6(__spreadValues$b({}, options), {
6312
+ const parentOptions = __spreadProps$7(__spreadValues$c({}, options), {
6313
6313
  resource: item.resource.parent.id
6314
6314
  });
6315
- adapter = createGeoJsonAdapter(__spreadProps$6(__spreadValues$b({}, adapterOptions), {
6315
+ adapter = createGeoJsonAdapter(__spreadProps$7(__spreadValues$c({}, adapterOptions), {
6316
6316
  item: parentItem,
6317
6317
  layerOptions: parentOptions
6318
6318
  }));
@@ -6356,23 +6356,23 @@ function createAsyncAdapter(options, webMap, connector) {
6356
6356
  });
6357
6357
  }
6358
6358
 
6359
- var __defProp$i = Object.defineProperty;
6360
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
6361
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
6362
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
6363
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6364
- var __spreadValues$a = (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) => {
6365
6365
  for (var prop in b || (b = {}))
6366
- if (__hasOwnProp$b.call(b, prop))
6367
- __defNormalProp$i(a, prop, b[prop]);
6368
- if (__getOwnPropSymbols$b)
6369
- for (var prop of __getOwnPropSymbols$b(b)) {
6370
- if (__propIsEnum$b.call(b, prop))
6371
- __defNormalProp$i(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]);
6372
6372
  }
6373
6373
  return a;
6374
6374
  };
6375
- var __publicField$b = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
6375
+ var __publicField$b = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
6376
6376
  var __async$a = (__this, __arguments, generator) => {
6377
6377
  return new Promise((resolve, reject) => {
6378
6378
  var fulfilled = (value) => {
@@ -6428,7 +6428,7 @@ class NgwKit {
6428
6428
  connector: this.connector,
6429
6429
  webMap
6430
6430
  };
6431
- const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$a({
6431
+ const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$b({
6432
6432
  visibility: true,
6433
6433
  fit: true,
6434
6434
  pixelRadius: this.options.pixelRadius
@@ -6459,23 +6459,23 @@ class NgwKit {
6459
6459
  }
6460
6460
  }
6461
6461
 
6462
- var __defProp$h = Object.defineProperty;
6463
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
6464
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
6465
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
6466
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6467
- var __spreadValues$9 = (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) => {
6468
6468
  for (var prop in b || (b = {}))
6469
- if (__hasOwnProp$a.call(b, prop))
6470
- __defNormalProp$h(a, prop, b[prop]);
6471
- if (__getOwnPropSymbols$a)
6472
- for (var prop of __getOwnPropSymbols$a(b)) {
6473
- if (__propIsEnum$a.call(b, prop))
6474
- __defNormalProp$h(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]);
6475
6475
  }
6476
6476
  return a;
6477
6477
  };
6478
- var __publicField$a = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
6478
+ var __publicField$a = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
6479
6479
  var __async$9 = (__this, __arguments, generator) => {
6480
6480
  return new Promise((resolve, reject) => {
6481
6481
  var fulfilled = (value) => {
@@ -6523,7 +6523,7 @@ class IdentifyItem {
6523
6523
  if (this._item) {
6524
6524
  return Promise.resolve(this._item);
6525
6525
  }
6526
- return fetchNgwLayerItem(__spreadValues$9({
6526
+ return fetchNgwLayerItem(__spreadValues$a({
6527
6527
  connector: this.connector,
6528
6528
  featureId: this.id,
6529
6529
  resourceId: this.layerId,
@@ -6562,7 +6562,7 @@ class IdentifyItem {
6562
6562
  if (this._extent) {
6563
6563
  return Promise.resolve(this._extent);
6564
6564
  }
6565
- return fetchNgwLayerItemExtent(__spreadValues$9({
6565
+ return fetchNgwLayerItemExtent(__spreadValues$a({
6566
6566
  connector: this.connector,
6567
6567
  featureId: this.id,
6568
6568
  resourceId: this.layerId
@@ -6685,25 +6685,25 @@ function getCompanyLogo(connector, options) {
6685
6685
  });
6686
6686
  }
6687
6687
 
6688
- var __defProp$g = Object.defineProperty;
6689
- var __defProps$5 = Object.defineProperties;
6690
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
6691
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
6692
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
6693
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
6694
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6695
- var __spreadValues$8 = (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) => {
6696
6696
  for (var prop in b || (b = {}))
6697
- if (__hasOwnProp$9.call(b, prop))
6698
- __defNormalProp$g(a, prop, b[prop]);
6699
- if (__getOwnPropSymbols$9)
6700
- for (var prop of __getOwnPropSymbols$9(b)) {
6701
- if (__propIsEnum$9.call(b, prop))
6702
- __defNormalProp$g(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]);
6703
6703
  }
6704
6704
  return a;
6705
6705
  };
6706
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
6706
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
6707
6707
  function getIdentifyItems(identify, multiple = false) {
6708
6708
  const resources = [];
6709
6709
  const paramsList = [];
@@ -6766,7 +6766,7 @@ function fetchIdentifyGeoJson(options) {
6766
6766
  if (withGeom && withGeom.geom) {
6767
6767
  const geom = withGeom.geom;
6768
6768
  return Promise.resolve(
6769
- createGeoJsonFeature(__spreadProps$5(__spreadValues$8({}, withGeom), {
6769
+ createGeoJsonFeature(__spreadProps$6(__spreadValues$9({}, withGeom), {
6770
6770
  geom
6771
6771
  }))
6772
6772
  );
@@ -6776,7 +6776,7 @@ function fetchIdentifyGeoJson(options) {
6776
6776
  }
6777
6777
  const params = getIdentifyItems(identify);
6778
6778
  if (params && params.length) {
6779
- return fetchNgwLayerFeature(__spreadValues$8(__spreadProps$5(__spreadValues$8({}, requestOptions), { connector }), params[0]));
6779
+ return fetchNgwLayerFeature(__spreadValues$9(__spreadProps$6(__spreadValues$9({}, requestOptions), { connector }), params[0]));
6780
6780
  }
6781
6781
  return Promise.resolve(void 0);
6782
6782
  }
@@ -6784,7 +6784,7 @@ function fetchIdentifyItem(options) {
6784
6784
  const { connector, identify } = options;
6785
6785
  const params = getIdentifyItems(identify);
6786
6786
  if (params && params.length) {
6787
- return fetchNgwLayerItem(__spreadValues$8(__spreadValues$8({
6787
+ return fetchNgwLayerItem(__spreadValues$9(__spreadValues$9({
6788
6788
  connector
6789
6789
  }, options.requestOptions), params[0]));
6790
6790
  }
@@ -6834,7 +6834,7 @@ function sendIdentifyRequest(ev, options) {
6834
6834
  const [lng, lat] = ev.lngLat;
6835
6835
  const { geom, radius } = options;
6836
6836
  const geom_ = geom != null ? geom : getCirclePolygonCoordinates(lng, lat, radius);
6837
- return featureLayerIdentify(__spreadProps$5(__spreadValues$8({}, options), { geom: geom_ }));
6837
+ return featureLayerIdentify(__spreadProps$6(__spreadValues$9({}, options), { geom: geom_ }));
6838
6838
  }
6839
6839
  function createIdentifyItem(opt) {
6840
6840
  return new IdentifyItem(opt);
@@ -7592,19 +7592,19 @@ const typeExpressions = {
7592
7592
  typeof: evaluateArgs(([arg]) => typeOfValue(arg))
7593
7593
  };
7594
7594
 
7595
- var __defProp$f = Object.defineProperty;
7596
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
7597
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
7598
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
7599
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7600
- var __spreadValues$7 = (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) => {
7601
7601
  for (var prop in b || (b = {}))
7602
- if (__hasOwnProp$8.call(b, prop))
7603
- __defNormalProp$f(a, prop, b[prop]);
7604
- if (__getOwnPropSymbols$8)
7605
- for (var prop of __getOwnPropSymbols$8(b)) {
7606
- if (__propIsEnum$8.call(b, prop))
7607
- __defNormalProp$f(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]);
7608
7608
  }
7609
7609
  return a;
7610
7610
  };
@@ -7616,7 +7616,7 @@ function isExpression(value) {
7616
7616
  }
7617
7617
  return false;
7618
7618
  }
7619
- const expressions = __spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7({}, 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);
7620
7620
  function evaluate(expression, data = {}) {
7621
7621
  const [name, ...args] = expression;
7622
7622
  const expressionFun = expressions[name];
@@ -7629,19 +7629,19 @@ function evaluate(expression, data = {}) {
7629
7629
  throw new Error(`Expression "${name}" is not supported.`);
7630
7630
  }
7631
7631
 
7632
- var __defProp$e = Object.defineProperty;
7633
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
7634
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
7635
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
7636
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7637
- var __spreadValues$6 = (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) => {
7638
7638
  for (var prop in b || (b = {}))
7639
- if (__hasOwnProp$7.call(b, prop))
7640
- __defNormalProp$e(a, prop, b[prop]);
7641
- if (__getOwnPropSymbols$7)
7642
- for (var prop of __getOwnPropSymbols$7(b)) {
7643
- if (__propIsEnum$7.call(b, prop))
7644
- __defNormalProp$e(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]);
7645
7645
  }
7646
7646
  return a;
7647
7647
  };
@@ -7674,7 +7674,7 @@ function createExpressionCallback(paint) {
7674
7674
  for (const p in expressions) {
7675
7675
  fromCb[p] = expressions[p](feature);
7676
7676
  }
7677
- return __spreadValues$6(__spreadValues$6({}, paint), fromCb);
7677
+ return __spreadValues$7(__spreadValues$7({}, paint), fromCb);
7678
7678
  };
7679
7679
  }
7680
7680
  return;
@@ -7699,19 +7699,19 @@ function isPaintCallback(paint) {
7699
7699
  return false;
7700
7700
  }
7701
7701
 
7702
- var __defProp$d = Object.defineProperty;
7703
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
7704
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
7705
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
7706
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7707
- var __spreadValues$5 = (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) => {
7708
7708
  for (var prop in b || (b = {}))
7709
- if (__hasOwnProp$6.call(b, prop))
7710
- __defNormalProp$d(a, prop, b[prop]);
7711
- if (__getOwnPropSymbols$6)
7712
- for (var prop of __getOwnPropSymbols$6(b)) {
7713
- if (__propIsEnum$6.call(b, prop))
7714
- __defNormalProp$d(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]);
7715
7715
  }
7716
7716
  return a;
7717
7717
  };
@@ -7740,7 +7740,7 @@ function createPropertiesPaint(propertiesPaint) {
7740
7740
  return (feature) => {
7741
7741
  const paint = paintsFilters.find((x) => featureFilter(feature, x[0]));
7742
7742
  if (paint) {
7743
- return __spreadValues$5(__spreadValues$5({}, mask), paint[1]);
7743
+ return __spreadValues$6(__spreadValues$6({}, mask), paint[1]);
7744
7744
  }
7745
7745
  return mask;
7746
7746
  };
@@ -7764,8 +7764,8 @@ function expressionCallback({
7764
7764
  }
7765
7765
  function finalizePaint({ paint, defaultPaint }) {
7766
7766
  var _a;
7767
- let newPaint = __spreadValues$5({}, defaultPaint);
7768
- newPaint = __spreadValues$5(__spreadValues$5({}, newPaint), paint);
7767
+ let newPaint = __spreadValues$6({}, defaultPaint);
7768
+ newPaint = __spreadValues$6(__spreadValues$6({}, newPaint), paint);
7769
7769
  newPaint.fill = (_a = newPaint.fill) != null ? _a : true;
7770
7770
  newPaint.stroke = newPaint.stroke !== void 0 ? newPaint.stroke : !newPaint.fill || !!(newPaint.strokeColor || newPaint.strokeOpacity);
7771
7771
  return newPaint;
@@ -7778,7 +7778,7 @@ function preparePaint({
7778
7778
  if (!paint) {
7779
7779
  throw new Error("paint is empty");
7780
7780
  }
7781
- let newPaint = __spreadValues$5({}, defaultPaint);
7781
+ let newPaint = __spreadValues$6({}, defaultPaint);
7782
7782
  if (isPaintCallback(paint)) {
7783
7783
  const getPaintFunction = (feature) => {
7784
7784
  const getPaint = preparePaint({
@@ -7835,6 +7835,63 @@ function preparePaint({
7835
7835
  return newPaint;
7836
7836
  }
7837
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
+
7838
7895
  function findMostFrequentGeomType(arr) {
7839
7896
  const counts = {};
7840
7897
  for (let fry = 0; fry < arr.length; fry++) {
@@ -8904,6 +8961,9 @@ class WebMapLayers extends WebMapMain {
8904
8961
  }
8905
8962
  }
8906
8963
  }
8964
+ options = __spreadProps$4(__spreadValues$4({}, options), {
8965
+ request: this._getLayerRequestOptions(options)
8966
+ });
8907
8967
  if (adapterEngine !== void 0) {
8908
8968
  const _adapter = new adapterEngine(this.mapAdapter.map, options);
8909
8969
  _adapter.options = __spreadValues$4(__spreadValues$4({}, options), _adapter.options);
@@ -9473,6 +9533,23 @@ class WebMapLayers extends WebMapMain {
9473
9533
  attribution: tileJson.attribution
9474
9534
  });
9475
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
+ }
9476
9553
  /** @internal */
9477
9554
  _emitLayerEvent(name, id, options) {
9478
9555
  const name_ = String(name);
@@ -10756,5 +10833,5 @@ function createNgwMap(options) {
10756
10833
  });
10757
10834
  }
10758
10835
 
10759
- 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 };
10760
10837
  //# sourceMappingURL=ngw-map.esm-browser.js.map