@nextgis/ngw-map 3.0.1 → 4.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 3.0.1; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 4.0.0-alpha.0; author: NextGIS */
2
2
  var NgwMap = (function (exports) {
3
3
  'use strict';
4
4
 
@@ -354,6 +354,20 @@ var NgwMap = (function (exports) {
354
354
  function fixUrlStr(url) {
355
355
  return url.replace(/([^:]\/)\/+/g, "$1");
356
356
  }
357
+ function updateUrlParams(urlStr, params) {
358
+ const url = new URL(urlStr);
359
+ const searchParams = new URLSearchParams(url.search);
360
+ Object.entries(params).forEach(([key, value]) => {
361
+ if (value === void 0) {
362
+ searchParams.delete(key);
363
+ } else {
364
+ searchParams.set(key, value);
365
+ }
366
+ });
367
+ searchParams.set("timestamp", String((/* @__PURE__ */ new Date()).getTime()));
368
+ const newSearch = [...searchParams.entries()].map(([key, value]) => `${key}=${value}`).join("&");
369
+ return `${url.origin}${url.pathname}?${newSearch}`;
370
+ }
357
371
 
358
372
  const templateRe = /\{ *([\w_-]+) *\}/g;
359
373
  function template(str, data) {
@@ -368,19 +382,19 @@ var NgwMap = (function (exports) {
368
382
  });
369
383
  }
370
384
 
371
- var __defProp$R = Object.defineProperty;
372
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
373
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
374
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
375
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
376
- var __spreadValues$y = (a, b) => {
385
+ var __defProp$S = Object.defineProperty;
386
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
387
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
388
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
389
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
390
+ var __spreadValues$z = (a, b) => {
377
391
  for (var prop in b || (b = {}))
378
- if (__hasOwnProp$z.call(b, prop))
379
- __defNormalProp$R(a, prop, b[prop]);
380
- if (__getOwnPropSymbols$z)
381
- for (var prop of __getOwnPropSymbols$z(b)) {
382
- if (__propIsEnum$z.call(b, prop))
383
- __defNormalProp$R(a, prop, b[prop]);
392
+ if (__hasOwnProp$A.call(b, prop))
393
+ __defNormalProp$S(a, prop, b[prop]);
394
+ if (__getOwnPropSymbols$A)
395
+ for (var prop of __getOwnPropSymbols$A(b)) {
396
+ if (__propIsEnum$A.call(b, prop))
397
+ __defNormalProp$S(a, prop, b[prop]);
384
398
  }
385
399
  return a;
386
400
  };
@@ -443,7 +457,7 @@ var NgwMap = (function (exports) {
443
457
  }
444
458
  }
445
459
  if (url) {
446
- return connector.makeQuery(url, params, __spreadValues$y({
460
+ return connector.makeQuery(url, params, __spreadValues$z({
447
461
  cacheName: name
448
462
  }, requestOptions));
449
463
  } else {
@@ -455,9 +469,9 @@ var NgwMap = (function (exports) {
455
469
  });
456
470
  }
457
471
 
458
- var __defProp$Q = Object.defineProperty;
459
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
460
- var __publicField$A = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
472
+ var __defProp$R = Object.defineProperty;
473
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
474
+ var __publicField$A = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
461
475
  const _Cache = class _Cache {
462
476
  constructor(options = {}) {
463
477
  __publicField$A(this, "cache", []);
@@ -624,7 +638,9 @@ var NgwMap = (function (exports) {
624
638
  this.domain = null;
625
639
  if (EventEmitter.usingDomains) {
626
640
  // if there is an active domain, then attach to it.
627
- if (domain.active) ;
641
+ if (domain.active && !(this instanceof domain.Domain)) {
642
+ this.domain = domain.active;
643
+ }
628
644
  }
629
645
 
630
646
  if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
@@ -1067,63 +1083,7 @@ var NgwMap = (function (exports) {
1067
1083
  }
1068
1084
 
1069
1085
  var pkg = {
1070
- name: "@nextgis/ngw-connector",
1071
- version: "3.0.1",
1072
- _priority: 12,
1073
- description: "A lightweight HTTP client optimized for use with NextGIS Web API",
1074
- main: "index.js",
1075
- module: "lib/ngw-connector.esm-bundler.js",
1076
- unpkg: "lib/ngw-connector.global.prod.js",
1077
- jsdelivr: "lib/ngw-connector.global.prod.js",
1078
- types: "lib/index.d.ts",
1079
- dependencies: {
1080
- "@nextgis/cache": "3.0.0",
1081
- "@nextgis/cancelable-promise": "3.0.0",
1082
- "@nextgis/utils": "3.0.0",
1083
- "@types/events": "^3.0.0",
1084
- events: "*",
1085
- "form-data": "^4.0.0"
1086
- },
1087
- devDependencies: {
1088
- "@nextgis/build-tools": "3.0.0"
1089
- },
1090
- scripts: {
1091
- clean: "rimraf ./lib",
1092
- dev: "node ../build-tools/lib/build.js",
1093
- prod: "npm run dev -- --release",
1094
- lint: "eslint ./src/**/*.ts --fix --c ../../.eslintrc",
1095
- watch: "npm run dev -- --watch",
1096
- "gen:types": "node ./scripts/generator"
1097
- },
1098
- buildOptions: {
1099
- name: "NgwConnector",
1100
- formats: [
1101
- "esm-bundler",
1102
- "esm-browser",
1103
- "cjs",
1104
- "global"
1105
- ]
1106
- },
1107
- keywords: [
1108
- "NextGIS",
1109
- "MAP"
1110
- ],
1111
- author: "NextGIS",
1112
- files: [
1113
- "index.js",
1114
- "lib"
1115
- ],
1116
- license: "MIT",
1117
- homepage: "https://github.com/nextgis/nextgis_frontend/tree/master/packages/ngw-connector#readme",
1118
- repository: {
1119
- type: "git",
1120
- url: "git://github.com/nextgis/nextgis_frontend.git"
1121
- },
1122
- engines: {
1123
- node: ">=18.20.4"
1124
- },
1125
- gitHead: "edc68033f914f6c95c4125b9738bba6d36e990b4"
1126
- };
1086
+ version: "3.0.1"};
1127
1087
 
1128
1088
  class AbortError extends Error {
1129
1089
  constructor(message = "AbortError") {
@@ -1132,9 +1092,9 @@ var NgwMap = (function (exports) {
1132
1092
  }
1133
1093
  }
1134
1094
 
1135
- var __defProp$P = Object.defineProperty;
1136
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1137
- var __publicField$z = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
1095
+ var __defProp$Q = Object.defineProperty;
1096
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1097
+ var __publicField$z = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
1138
1098
  class NgwError extends Error {
1139
1099
  constructor(er) {
1140
1100
  super();
@@ -1151,9 +1111,9 @@ var NgwMap = (function (exports) {
1151
1111
  }
1152
1112
  }
1153
1113
 
1154
- var __defProp$O = Object.defineProperty;
1155
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1156
- var __publicField$y = (obj, key, value) => __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
1114
+ var __defProp$P = Object.defineProperty;
1115
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1116
+ var __publicField$y = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
1157
1117
  class InsufficientPermissionsError extends NgwError {
1158
1118
  constructor(obj) {
1159
1119
  super(obj);
@@ -1163,9 +1123,9 @@ var NgwMap = (function (exports) {
1163
1123
  }
1164
1124
  }
1165
1125
 
1166
- var __defProp$N = Object.defineProperty;
1167
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1168
- var __publicField$x = (obj, key, value) => __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
1126
+ var __defProp$O = Object.defineProperty;
1127
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1128
+ var __publicField$x = (obj, key, value) => __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
1169
1129
  let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
1170
1130
  constructor(obj) {
1171
1131
  super(obj);
@@ -1208,9 +1168,9 @@ var NgwMap = (function (exports) {
1208
1168
  return false;
1209
1169
  }
1210
1170
 
1211
- var __defProp$M = Object.defineProperty;
1212
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1213
- var __publicField$w = (obj, key, value) => __defNormalProp$M(obj, key + "" , value);
1171
+ var __defProp$N = Object.defineProperty;
1172
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1173
+ var __publicField$w = (obj, key, value) => __defNormalProp$N(obj, key + "" , value);
1214
1174
  class NetworkError extends Error {
1215
1175
  constructor(url) {
1216
1176
  super();
@@ -1221,9 +1181,9 @@ var NgwMap = (function (exports) {
1221
1181
  }
1222
1182
  }
1223
1183
 
1224
- var __defProp$L = Object.defineProperty;
1225
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1226
- var __publicField$v = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
1184
+ var __defProp$M = Object.defineProperty;
1185
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1186
+ var __publicField$v = (obj, key, value) => __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
1227
1187
  class ResourceNotFoundError extends NgwError {
1228
1188
  constructor(obj) {
1229
1189
  super(obj);
@@ -1245,9 +1205,9 @@ var NgwMap = (function (exports) {
1245
1205
  isError: isError
1246
1206
  });
1247
1207
 
1248
- var __defProp$K = Object.defineProperty;
1249
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1250
- var __publicField$u = (obj, key, value) => __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
1208
+ var __defProp$L = Object.defineProperty;
1209
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1210
+ var __publicField$u = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
1251
1211
  class BaseAPIError extends Error {
1252
1212
  constructor(message) {
1253
1213
  super(message || "Something went wrong.");
@@ -1309,30 +1269,30 @@ var NgwMap = (function (exports) {
1309
1269
  }
1310
1270
  }
1311
1271
 
1312
- var __defProp$J = Object.defineProperty;
1313
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
1314
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
1315
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
1316
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1317
- var __spreadValues$x = (a, b) => {
1272
+ var __defProp$K = Object.defineProperty;
1273
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
1274
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
1275
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
1276
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1277
+ var __spreadValues$y = (a, b) => {
1318
1278
  for (var prop in b || (b = {}))
1319
- if (__hasOwnProp$y.call(b, prop))
1320
- __defNormalProp$J(a, prop, b[prop]);
1321
- if (__getOwnPropSymbols$y)
1322
- for (var prop of __getOwnPropSymbols$y(b)) {
1323
- if (__propIsEnum$y.call(b, prop))
1324
- __defNormalProp$J(a, prop, b[prop]);
1279
+ if (__hasOwnProp$z.call(b, prop))
1280
+ __defNormalProp$K(a, prop, b[prop]);
1281
+ if (__getOwnPropSymbols$z)
1282
+ for (var prop of __getOwnPropSymbols$z(b)) {
1283
+ if (__propIsEnum$z.call(b, prop))
1284
+ __defNormalProp$K(a, prop, b[prop]);
1325
1285
  }
1326
1286
  return a;
1327
1287
  };
1328
- var __objRest$5 = (source, exclude) => {
1288
+ var __objRest$7 = (source, exclude) => {
1329
1289
  var target = {};
1330
1290
  for (var prop in source)
1331
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
1291
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
1332
1292
  target[prop] = source[prop];
1333
- if (source != null && __getOwnPropSymbols$y)
1334
- for (var prop of __getOwnPropSymbols$y(source)) {
1335
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
1293
+ if (source != null && __getOwnPropSymbols$z)
1294
+ for (var prop of __getOwnPropSymbols$z(source)) {
1295
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
1336
1296
  target[prop] = source[prop];
1337
1297
  }
1338
1298
  return target;
@@ -1470,7 +1430,7 @@ var NgwMap = (function (exports) {
1470
1430
  credentials: "same-origin",
1471
1431
  headers: {}
1472
1432
  };
1473
- const _a = __spreadValues$x(__spreadValues$x({}, defaults), options), {
1433
+ const _a = __spreadValues$y(__spreadValues$y({}, defaults), options), {
1474
1434
  withCredentials,
1475
1435
  responseType,
1476
1436
  cacheProps,
@@ -1479,7 +1439,7 @@ var NgwMap = (function (exports) {
1479
1439
  cache,
1480
1440
  query,
1481
1441
  json
1482
- } = _a, opt = __objRest$5(_a, [
1442
+ } = _a, opt = __objRest$7(_a, [
1483
1443
  "withCredentials",
1484
1444
  "responseType",
1485
1445
  "cacheProps",
@@ -1550,7 +1510,7 @@ var NgwMap = (function (exports) {
1550
1510
  if (cacheEngine) {
1551
1511
  if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
1552
1512
  if (cache !== false) {
1553
- const props = cacheProps ? cacheProps : __spreadValues$x({}, objectRemoveEmpty({
1513
+ const props = cacheProps ? cacheProps : __spreadValues$y({}, objectRemoveEmpty({
1554
1514
  withCredentials,
1555
1515
  responseType
1556
1516
  }));
@@ -1570,33 +1530,33 @@ var NgwMap = (function (exports) {
1570
1530
  });
1571
1531
  }
1572
1532
 
1573
- var __defProp$I = Object.defineProperty;
1574
- var __defProps$j = Object.defineProperties;
1575
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1576
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1577
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1578
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1579
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1580
- var __spreadValues$w = (a, b) => {
1533
+ var __defProp$J = Object.defineProperty;
1534
+ var __defProps$k = Object.defineProperties;
1535
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
1536
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
1537
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
1538
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
1539
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1540
+ var __spreadValues$x = (a, b) => {
1581
1541
  for (var prop in b || (b = {}))
1582
- if (__hasOwnProp$x.call(b, prop))
1583
- __defNormalProp$I(a, prop, b[prop]);
1584
- if (__getOwnPropSymbols$x)
1585
- for (var prop of __getOwnPropSymbols$x(b)) {
1586
- if (__propIsEnum$x.call(b, prop))
1587
- __defNormalProp$I(a, prop, b[prop]);
1542
+ if (__hasOwnProp$y.call(b, prop))
1543
+ __defNormalProp$J(a, prop, b[prop]);
1544
+ if (__getOwnPropSymbols$y)
1545
+ for (var prop of __getOwnPropSymbols$y(b)) {
1546
+ if (__propIsEnum$y.call(b, prop))
1547
+ __defNormalProp$J(a, prop, b[prop]);
1588
1548
  }
1589
1549
  return a;
1590
1550
  };
1591
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1592
- var __objRest$4 = (source, exclude) => {
1551
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
1552
+ var __objRest$6 = (source, exclude) => {
1593
1553
  var target = {};
1594
1554
  for (var prop in source)
1595
- if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
1555
+ if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
1596
1556
  target[prop] = source[prop];
1597
- if (source != null && __getOwnPropSymbols$x)
1598
- for (var prop of __getOwnPropSymbols$x(source)) {
1599
- if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
1557
+ if (source != null && __getOwnPropSymbols$y)
1558
+ for (var prop of __getOwnPropSymbols$y(source)) {
1559
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
1600
1560
  target[prop] = source[prop];
1601
1561
  }
1602
1562
  return target;
@@ -1668,7 +1628,7 @@ var NgwMap = (function (exports) {
1668
1628
  for (const method of methods) {
1669
1629
  const methodResp = (requestOptions) => {
1670
1630
  var _b;
1671
- const _a = requestOptions || {}, { headers: optHeaders } = _a, restOpt = __objRest$4(_a, ["headers"]);
1631
+ const _a = requestOptions || {}, { headers: optHeaders } = _a, restOpt = __objRest$6(_a, ["headers"]);
1672
1632
  if ((_b = requestOptions == null ? void 0 : requestOptions.signal) == null ? void 0 : _b.aborted) {
1673
1633
  throw new AbortError();
1674
1634
  }
@@ -1680,10 +1640,10 @@ var NgwMap = (function (exports) {
1680
1640
  routeData,
1681
1641
  ...rest
1682
1642
  );
1683
- const headers = objectRemoveEmpty(__spreadValues$w(__spreadValues$w({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
1643
+ const headers = objectRemoveEmpty(__spreadValues$x(__spreadValues$x({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
1684
1644
  return request(
1685
1645
  template,
1686
- __spreadProps$j(__spreadValues$w({
1646
+ __spreadProps$k(__spreadValues$x({
1687
1647
  headers
1688
1648
  }, restOpt), {
1689
1649
  method
@@ -1807,38 +1767,38 @@ var NgwMap = (function (exports) {
1807
1767
  }
1808
1768
  }
1809
1769
 
1810
- var __defProp$H = Object.defineProperty;
1811
- var __defProps$i = Object.defineProperties;
1812
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
1813
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
1814
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
1815
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
1816
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1817
- var __spreadValues$v = (a, b) => {
1770
+ var __defProp$I = Object.defineProperty;
1771
+ var __defProps$j = Object.defineProperties;
1772
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
1773
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
1774
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
1775
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
1776
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1777
+ var __spreadValues$w = (a, b) => {
1818
1778
  for (var prop in b || (b = {}))
1819
- if (__hasOwnProp$w.call(b, prop))
1820
- __defNormalProp$H(a, prop, b[prop]);
1821
- if (__getOwnPropSymbols$w)
1822
- for (var prop of __getOwnPropSymbols$w(b)) {
1823
- if (__propIsEnum$w.call(b, prop))
1824
- __defNormalProp$H(a, prop, b[prop]);
1779
+ if (__hasOwnProp$x.call(b, prop))
1780
+ __defNormalProp$I(a, prop, b[prop]);
1781
+ if (__getOwnPropSymbols$x)
1782
+ for (var prop of __getOwnPropSymbols$x(b)) {
1783
+ if (__propIsEnum$x.call(b, prop))
1784
+ __defNormalProp$I(a, prop, b[prop]);
1825
1785
  }
1826
1786
  return a;
1827
1787
  };
1828
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
1829
- var __objRest$3 = (source, exclude) => {
1788
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
1789
+ var __objRest$5 = (source, exclude) => {
1830
1790
  var target = {};
1831
1791
  for (var prop in source)
1832
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
1792
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
1833
1793
  target[prop] = source[prop];
1834
- if (source != null && __getOwnPropSymbols$w)
1835
- for (var prop of __getOwnPropSymbols$w(source)) {
1836
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
1794
+ if (source != null && __getOwnPropSymbols$x)
1795
+ for (var prop of __getOwnPropSymbols$x(source)) {
1796
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
1837
1797
  target[prop] = source[prop];
1838
1798
  }
1839
1799
  return target;
1840
1800
  };
1841
- var __publicField$t = (obj, key, value) => __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
1801
+ var __publicField$t = (obj, key, value) => __defNormalProp$I(obj, typeof key !== "symbol" ? key + "" : key, value);
1842
1802
  var __async$t = (__this, __arguments, generator) => {
1843
1803
  return new Promise((resolve, reject) => {
1844
1804
  var fulfilled = (value) => {
@@ -1974,7 +1934,7 @@ var NgwMap = (function (exports) {
1974
1934
  if (credentials) {
1975
1935
  this.options.auth = credentials;
1976
1936
  }
1977
- const options_ = __spreadValues$v({
1937
+ const options_ = __spreadValues$w({
1978
1938
  headers: this.getAuthorizationHeaders(credentials),
1979
1939
  cache: true
1980
1940
  }, options);
@@ -2015,7 +1975,7 @@ var NgwMap = (function (exports) {
2015
1975
  this.activeRequests = {};
2016
1976
  }
2017
1977
  getActiveApiRequests() {
2018
- return __spreadValues$v({}, this.activeRequests);
1978
+ return __spreadValues$w({}, this.activeRequests);
2019
1979
  }
2020
1980
  route(name, ...rest) {
2021
1981
  return route(name, this, ...rest);
@@ -2034,11 +1994,11 @@ var NgwMap = (function (exports) {
2034
1994
  throw new Error("Empty `url` not allowed");
2035
1995
  }
2036
1996
  if (params) {
2037
- const _a = params, restParams = __objRest$3(_a, ["paramList"]);
1997
+ const _a = params, { paramList } = _a, restParams = __objRest$5(_a, ["paramList"]);
2038
1998
  url = template(url, restParams);
2039
1999
  }
2040
2000
  url = encodeURI(fixUrlStr(url));
2041
- options = __spreadValues$v({ withCredentials: this.withCredentials }, options);
2001
+ options = __spreadValues$w({ withCredentials: this.withCredentials }, options);
2042
2002
  const {
2043
2003
  cache,
2044
2004
  signal: externalSignal,
@@ -2070,7 +2030,7 @@ var NgwMap = (function (exports) {
2070
2030
  }
2071
2031
  });
2072
2032
  if (method === "GET" && cache !== false) {
2073
- const cacheOptions = cacheProps ? cacheProps : __spreadProps$i(__spreadValues$v({}, objectRemoveEmpty({
2033
+ const cacheOptions = cacheProps ? cacheProps : __spreadProps$j(__spreadValues$w({}, objectRemoveEmpty({
2074
2034
  headers,
2075
2035
  withCredentials,
2076
2036
  responseType,
@@ -2093,7 +2053,7 @@ var NgwMap = (function (exports) {
2093
2053
  var _a;
2094
2054
  if (this.user) {
2095
2055
  options = options || {};
2096
- options.headers = __spreadValues$v(__spreadValues$v({}, this.getAuthorizationHeaders()), options.headers);
2056
+ options.headers = __spreadValues$w(__spreadValues$w({}, this.getAuthorizationHeaders()), options.headers);
2097
2057
  }
2098
2058
  if (this.requestTransform) {
2099
2059
  const [transUrl, transOptions] = this.requestTransform(url, options);
@@ -2182,26 +2142,26 @@ var NgwMap = (function (exports) {
2182
2142
  return query;
2183
2143
  }
2184
2144
 
2185
- var __defProp$G = Object.defineProperty;
2186
- var __defProps$h = Object.defineProperties;
2187
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
2188
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
2189
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
2190
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
2191
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2192
- var __spreadValues$u = (a, b) => {
2145
+ var __defProp$H = Object.defineProperty;
2146
+ var __defProps$i = Object.defineProperties;
2147
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
2148
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
2149
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
2150
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
2151
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2152
+ var __spreadValues$v = (a, b) => {
2193
2153
  for (var prop in b || (b = {}))
2194
- if (__hasOwnProp$v.call(b, prop))
2195
- __defNormalProp$G(a, prop, b[prop]);
2196
- if (__getOwnPropSymbols$v)
2197
- for (var prop of __getOwnPropSymbols$v(b)) {
2198
- if (__propIsEnum$v.call(b, prop))
2199
- __defNormalProp$G(a, prop, b[prop]);
2154
+ if (__hasOwnProp$w.call(b, prop))
2155
+ __defNormalProp$H(a, prop, b[prop]);
2156
+ if (__getOwnPropSymbols$w)
2157
+ for (var prop of __getOwnPropSymbols$w(b)) {
2158
+ if (__propIsEnum$w.call(b, prop))
2159
+ __defNormalProp$H(a, prop, b[prop]);
2200
2160
  }
2201
2161
  return a;
2202
2162
  };
2203
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
2204
- var __publicField$s = (obj, key, value) => __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
2163
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
2164
+ var __publicField$s = (obj, key, value) => __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
2205
2165
  var __async$s = (__this, __arguments, generator) => {
2206
2166
  return new Promise((resolve, reject) => {
2207
2167
  var fulfilled = (value) => {
@@ -2243,7 +2203,7 @@ var NgwMap = (function (exports) {
2243
2203
  * Fetching resource would be cached to speed up next call
2244
2204
  */
2245
2205
  getOne(resource, requestOptions) {
2246
- const opt = __spreadValues$u({}, requestOptions);
2206
+ const opt = __spreadValues$v({}, requestOptions);
2247
2207
  if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
2248
2208
  if (resource.id !== void 0) {
2249
2209
  resource.id;
@@ -2320,8 +2280,8 @@ var NgwMap = (function (exports) {
2320
2280
  } else {
2321
2281
  Object.assign(query, resourceToQuery(resource));
2322
2282
  }
2323
- return this.connector.route("resource.search").get(__spreadProps$h(__spreadValues$u({}, requestOptions), {
2324
- query: __spreadValues$u({
2283
+ return this.connector.route("resource.search").get(__spreadProps$i(__spreadValues$v({}, requestOptions), {
2284
+ query: __spreadValues$v({
2325
2285
  serialization: "full"
2326
2286
  }, query)
2327
2287
  })).then((resources) => {
@@ -2383,7 +2343,7 @@ var NgwMap = (function (exports) {
2383
2343
  } else {
2384
2344
  parent = parentDef;
2385
2345
  }
2386
- const items = yield this.connector.route("resource.collection").get(__spreadProps$h(__spreadValues$u({}, requestOptions), {
2346
+ const items = yield this.connector.route("resource.collection").get(__spreadProps$i(__spreadValues$v({}, requestOptions), {
2387
2347
  query: {
2388
2348
  parent
2389
2349
  }
@@ -2464,9 +2424,9 @@ var NgwMap = (function (exports) {
2464
2424
  }
2465
2425
  }
2466
2426
 
2467
- var __defProp$F = Object.defineProperty;
2468
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2469
- var __publicField$r = (obj, key, value) => __defNormalProp$F(obj, key + "" , value);
2427
+ var __defProp$G = Object.defineProperty;
2428
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2429
+ var __publicField$r = (obj, key, value) => __defNormalProp$G(obj, key + "" , value);
2470
2430
  class NgwConnectorExtended extends NgwConnector {
2471
2431
  constructor(options) {
2472
2432
  super(options);
@@ -2680,25 +2640,25 @@ var NgwMap = (function (exports) {
2680
2640
  }
2681
2641
  }
2682
2642
 
2683
- var __defProp$E = Object.defineProperty;
2684
- var __defProps$g = Object.defineProperties;
2685
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
2686
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
2687
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
2688
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
2689
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2690
- var __spreadValues$t = (a, b) => {
2643
+ var __defProp$F = Object.defineProperty;
2644
+ var __defProps$h = Object.defineProperties;
2645
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
2646
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
2647
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
2648
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
2649
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2650
+ var __spreadValues$u = (a, b) => {
2691
2651
  for (var prop in b || (b = {}))
2692
- if (__hasOwnProp$u.call(b, prop))
2693
- __defNormalProp$E(a, prop, b[prop]);
2694
- if (__getOwnPropSymbols$u)
2695
- for (var prop of __getOwnPropSymbols$u(b)) {
2696
- if (__propIsEnum$u.call(b, prop))
2697
- __defNormalProp$E(a, prop, b[prop]);
2652
+ if (__hasOwnProp$v.call(b, prop))
2653
+ __defNormalProp$F(a, prop, b[prop]);
2654
+ if (__getOwnPropSymbols$v)
2655
+ for (var prop of __getOwnPropSymbols$v(b)) {
2656
+ if (__propIsEnum$v.call(b, prop))
2657
+ __defNormalProp$F(a, prop, b[prop]);
2698
2658
  }
2699
2659
  return a;
2700
2660
  };
2701
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
2661
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
2702
2662
  function getNgwWebmapExtent(webmap) {
2703
2663
  const bottom = webmap["extent_bottom"];
2704
2664
  const left = webmap["extent_left"];
@@ -2765,14 +2725,14 @@ var NgwMap = (function (exports) {
2765
2725
  if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
2766
2726
  return connector.getResource(resource.parent.id, options).then((res) => {
2767
2727
  if (res) {
2768
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$t({}, options), {
2728
+ return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$u({}, options), {
2769
2729
  resourceId: res.resource.id,
2770
2730
  connector
2771
2731
  }));
2772
2732
  }
2773
2733
  });
2774
2734
  } else {
2775
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$t({}, options), {
2735
+ return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$u({}, options), {
2776
2736
  resourceId: resource.id,
2777
2737
  connector
2778
2738
  }));
@@ -2780,9 +2740,9 @@ var NgwMap = (function (exports) {
2780
2740
  }
2781
2741
  }
2782
2742
 
2783
- var __defProp$D = Object.defineProperty;
2784
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2785
- var __publicField$q = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
2743
+ var __defProp$E = Object.defineProperty;
2744
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2745
+ var __publicField$q = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
2786
2746
  var __async$r = (__this, __arguments, generator) => {
2787
2747
  return new Promise((resolve, reject) => {
2788
2748
  var fulfilled = (value) => {
@@ -2878,23 +2838,23 @@ var NgwMap = (function (exports) {
2878
2838
  });
2879
2839
  }
2880
2840
 
2881
- var __defProp$C = Object.defineProperty;
2882
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
2883
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
2884
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
2885
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2886
- var __spreadValues$s = (a, b) => {
2841
+ var __defProp$D = Object.defineProperty;
2842
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
2843
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
2844
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
2845
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2846
+ var __spreadValues$t = (a, b) => {
2887
2847
  for (var prop in b || (b = {}))
2888
- if (__hasOwnProp$t.call(b, prop))
2889
- __defNormalProp$C(a, prop, b[prop]);
2890
- if (__getOwnPropSymbols$t)
2891
- for (var prop of __getOwnPropSymbols$t(b)) {
2892
- if (__propIsEnum$t.call(b, prop))
2893
- __defNormalProp$C(a, prop, b[prop]);
2848
+ if (__hasOwnProp$u.call(b, prop))
2849
+ __defNormalProp$D(a, prop, b[prop]);
2850
+ if (__getOwnPropSymbols$u)
2851
+ for (var prop of __getOwnPropSymbols$u(b)) {
2852
+ if (__propIsEnum$u.call(b, prop))
2853
+ __defNormalProp$D(a, prop, b[prop]);
2894
2854
  }
2895
2855
  return a;
2896
2856
  };
2897
- var __publicField$p = (obj, key, value) => __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
2857
+ var __publicField$p = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
2898
2858
  var __async$p = (__this, __arguments, generator) => {
2899
2859
  return new Promise((resolve, reject) => {
2900
2860
  var fulfilled = (value) => {
@@ -2969,7 +2929,7 @@ var NgwMap = (function (exports) {
2969
2929
  this._creatingInProgress = true;
2970
2930
  const Adapter = yield createAdapter(this);
2971
2931
  if (Adapter) {
2972
- const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$s({}, adapterOptions));
2932
+ const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$t({}, adapterOptions));
2973
2933
  const realLayer = yield adapter.addLayer({
2974
2934
  order: this.options.order,
2975
2935
  headers: this.options.headers,
@@ -3053,19 +3013,19 @@ var NgwMap = (function (exports) {
3053
3013
  });
3054
3014
  }
3055
3015
 
3056
- var __defProp$B = Object.defineProperty;
3057
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
3058
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
3059
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
3060
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3061
- var __spreadValues$r = (a, b) => {
3016
+ var __defProp$C = Object.defineProperty;
3017
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
3018
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
3019
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
3020
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3021
+ var __spreadValues$s = (a, b) => {
3062
3022
  for (var prop in b || (b = {}))
3063
- if (__hasOwnProp$s.call(b, prop))
3064
- __defNormalProp$B(a, prop, b[prop]);
3065
- if (__getOwnPropSymbols$s)
3066
- for (var prop of __getOwnPropSymbols$s(b)) {
3067
- if (__propIsEnum$s.call(b, prop))
3068
- __defNormalProp$B(a, prop, b[prop]);
3023
+ if (__hasOwnProp$t.call(b, prop))
3024
+ __defNormalProp$C(a, prop, b[prop]);
3025
+ if (__getOwnPropSymbols$t)
3026
+ for (var prop of __getOwnPropSymbols$t(b)) {
3027
+ if (__propIsEnum$t.call(b, prop))
3028
+ __defNormalProp$C(a, prop, b[prop]);
3069
3029
  }
3070
3030
  return a;
3071
3031
  };
@@ -3104,7 +3064,7 @@ var NgwMap = (function (exports) {
3104
3064
  return like(a, b, true);
3105
3065
  }
3106
3066
  };
3107
- function isPropertyFilter(filter) {
3067
+ function isPropertyFilter$1(filter) {
3108
3068
  const pf = filter;
3109
3069
  if (pf.length === 3 && typeof pf[0] === "string" && typeof pf[1] === "string") {
3110
3070
  return true;
@@ -3112,7 +3072,7 @@ var NgwMap = (function (exports) {
3112
3072
  return false;
3113
3073
  }
3114
3074
  function featureFilter(feature, filters) {
3115
- const properties = __spreadValues$r({}, feature.properties);
3075
+ const properties = __spreadValues$s({}, feature.properties);
3116
3076
  if (properties) {
3117
3077
  properties.$id = feature.id;
3118
3078
  return propertiesFilter(properties, filters);
@@ -3122,7 +3082,7 @@ var NgwMap = (function (exports) {
3122
3082
  function propertiesFilter(properties, filters) {
3123
3083
  const logic = typeof filters[0] === "string" ? filters[0] : "all";
3124
3084
  const filterFunction = (p) => {
3125
- if (isPropertyFilter(p)) {
3085
+ if (isPropertyFilter$1(p)) {
3126
3086
  const [field, operation, value] = p;
3127
3087
  const operationExec = operationsAliases[operation];
3128
3088
  if (operationExec) {
@@ -3147,25 +3107,25 @@ var NgwMap = (function (exports) {
3147
3107
  return logic === "any" ? filters_.some(filterFunction) : filters_.every(filterFunction);
3148
3108
  }
3149
3109
 
3150
- var __defProp$A = Object.defineProperty;
3151
- var __defProps$f = Object.defineProperties;
3152
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3153
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
3154
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
3155
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
3156
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3157
- var __spreadValues$q = (a, b) => {
3110
+ var __defProp$B = Object.defineProperty;
3111
+ var __defProps$g = Object.defineProperties;
3112
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
3113
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
3114
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
3115
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
3116
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3117
+ var __spreadValues$r = (a, b) => {
3158
3118
  for (var prop in b || (b = {}))
3159
- if (__hasOwnProp$r.call(b, prop))
3160
- __defNormalProp$A(a, prop, b[prop]);
3161
- if (__getOwnPropSymbols$r)
3162
- for (var prop of __getOwnPropSymbols$r(b)) {
3163
- if (__propIsEnum$r.call(b, prop))
3164
- __defNormalProp$A(a, prop, b[prop]);
3119
+ if (__hasOwnProp$s.call(b, prop))
3120
+ __defNormalProp$B(a, prop, b[prop]);
3121
+ if (__getOwnPropSymbols$s)
3122
+ for (var prop of __getOwnPropSymbols$s(b)) {
3123
+ if (__propIsEnum$s.call(b, prop))
3124
+ __defNormalProp$B(a, prop, b[prop]);
3165
3125
  }
3166
3126
  return a;
3167
3127
  };
3168
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3128
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
3169
3129
  var __async$n = (__this, __arguments, generator) => {
3170
3130
  return new Promise((resolve, reject) => {
3171
3131
  var fulfilled = (value) => {
@@ -3275,21 +3235,21 @@ var NgwMap = (function (exports) {
3275
3235
  const filters_ = filters.filter((x) => Array.isArray(x));
3276
3236
  if (logic === "any") {
3277
3237
  for (const f of filters_) {
3278
- if (isPropertyFilter(f)) {
3238
+ if (isPropertyFilter$1(f)) {
3279
3239
  _queries.push(
3280
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$q({}, opt), {
3240
+ fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$r({}, opt), {
3281
3241
  paramList: [..._parentAllParams, ...paramList, createParam(f)]
3282
3242
  }))
3283
3243
  );
3284
3244
  } else {
3285
- getQueries(__spreadProps$f(__spreadValues$q({}, opt), { filters: f }), _queries, [..._parentAllParams]);
3245
+ getQueries(__spreadProps$g(__spreadValues$r({}, opt), { filters: f }), _queries, [..._parentAllParams]);
3286
3246
  }
3287
3247
  }
3288
3248
  } else if (logic === "all") {
3289
3249
  const filters2 = [];
3290
3250
  const propertiesFilterList = [];
3291
3251
  for (const f of filters_) {
3292
- if (isPropertyFilter(f)) {
3252
+ if (isPropertyFilter$1(f)) {
3293
3253
  filters2.push(createParam(f));
3294
3254
  } else {
3295
3255
  propertiesFilterList.push(f);
@@ -3297,14 +3257,14 @@ var NgwMap = (function (exports) {
3297
3257
  }
3298
3258
  if (propertiesFilterList.length) {
3299
3259
  for (const x of propertiesFilterList) {
3300
- getQueries(__spreadProps$f(__spreadValues$q({}, opt), { filters: x }), _queries, [
3260
+ getQueries(__spreadProps$g(__spreadValues$r({}, opt), { filters: x }), _queries, [
3301
3261
  ..._parentAllParams,
3302
3262
  ...filters2
3303
3263
  ]);
3304
3264
  }
3305
3265
  } else {
3306
3266
  _queries.push(
3307
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$q({}, opt), {
3267
+ fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$r({}, opt), {
3308
3268
  paramList: [..._parentAllParams, ...paramList, ...filters2]
3309
3269
  }))
3310
3270
  );
@@ -3320,7 +3280,7 @@ var NgwMap = (function (exports) {
3320
3280
  return `POLYGON((${polygon.join(", ")}))`;
3321
3281
  }
3322
3282
  function fetchNgwLayerItemsRequest(options) {
3323
- const params = __spreadValues$q({}, FEATURE_REQUEST_PARAMS);
3283
+ const params = __spreadValues$r({}, FEATURE_REQUEST_PARAMS);
3324
3284
  const {
3325
3285
  limit,
3326
3286
  query,
@@ -3356,7 +3316,7 @@ var NgwMap = (function (exports) {
3356
3316
  if (paramList) {
3357
3317
  Object.assign(params, paramListToQuery(paramList));
3358
3318
  }
3359
- return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$q(__spreadValues$q({}, params), query), cache, signal });
3319
+ return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$r(__spreadValues$r({}, params), query), cache, signal });
3360
3320
  }
3361
3321
 
3362
3322
  function prepareNgwFieldsToPropertiesFilter(fields) {
@@ -3385,25 +3345,25 @@ var NgwMap = (function (exports) {
3385
3345
  return fields;
3386
3346
  }
3387
3347
 
3388
- var __defProp$z = Object.defineProperty;
3389
- var __defProps$e = Object.defineProperties;
3390
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3391
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
3392
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
3393
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
3394
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3395
- var __spreadValues$p = (a, b) => {
3348
+ var __defProp$A = Object.defineProperty;
3349
+ var __defProps$f = Object.defineProperties;
3350
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3351
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
3352
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
3353
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
3354
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3355
+ var __spreadValues$q = (a, b) => {
3396
3356
  for (var prop in b || (b = {}))
3397
- if (__hasOwnProp$q.call(b, prop))
3398
- __defNormalProp$z(a, prop, b[prop]);
3399
- if (__getOwnPropSymbols$q)
3400
- for (var prop of __getOwnPropSymbols$q(b)) {
3401
- if (__propIsEnum$q.call(b, prop))
3402
- __defNormalProp$z(a, prop, b[prop]);
3357
+ if (__hasOwnProp$r.call(b, prop))
3358
+ __defNormalProp$A(a, prop, b[prop]);
3359
+ if (__getOwnPropSymbols$r)
3360
+ for (var prop of __getOwnPropSymbols$r(b)) {
3361
+ if (__propIsEnum$r.call(b, prop))
3362
+ __defNormalProp$A(a, prop, b[prop]);
3403
3363
  }
3404
3364
  return a;
3405
3365
  };
3406
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3366
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3407
3367
  var __async$m = (__this, __arguments, generator) => {
3408
3368
  return new Promise((resolve, reject) => {
3409
3369
  var fulfilled = (value) => {
@@ -3429,13 +3389,13 @@ var NgwMap = (function (exports) {
3429
3389
  var _a;
3430
3390
  const filters = options.filters;
3431
3391
  if (filters) {
3432
- let data = yield createFeatureFieldFilterQueries(__spreadProps$e(__spreadValues$p({}, options), {
3392
+ let data = yield createFeatureFieldFilterQueries(__spreadProps$f(__spreadValues$q({}, options), {
3433
3393
  filters
3434
3394
  }));
3435
3395
  const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
3436
3396
  if (clientFilterValidate) {
3437
3397
  data = data.filter((y) => {
3438
- const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$e(__spreadValues$p({}, y.fields), {
3398
+ const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$f(__spreadValues$q({}, y.fields), {
3439
3399
  id: y.id
3440
3400
  }));
3441
3401
  const result = propertiesFilter(fields, filters);
@@ -3553,25 +3513,25 @@ var NgwMap = (function (exports) {
3553
3513
  }
3554
3514
  }
3555
3515
 
3556
- var __defProp$y = Object.defineProperty;
3557
- var __defProps$d = Object.defineProperties;
3558
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
3559
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
3560
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
3561
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
3562
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3563
- var __spreadValues$o = (a, b) => {
3516
+ var __defProp$z = Object.defineProperty;
3517
+ var __defProps$e = Object.defineProperties;
3518
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3519
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
3520
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
3521
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
3522
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3523
+ var __spreadValues$p = (a, b) => {
3564
3524
  for (var prop in b || (b = {}))
3565
- if (__hasOwnProp$p.call(b, prop))
3566
- __defNormalProp$y(a, prop, b[prop]);
3567
- if (__getOwnPropSymbols$p)
3568
- for (var prop of __getOwnPropSymbols$p(b)) {
3569
- if (__propIsEnum$p.call(b, prop))
3570
- __defNormalProp$y(a, prop, b[prop]);
3525
+ if (__hasOwnProp$q.call(b, prop))
3526
+ __defNormalProp$z(a, prop, b[prop]);
3527
+ if (__getOwnPropSymbols$q)
3528
+ for (var prop of __getOwnPropSymbols$q(b)) {
3529
+ if (__propIsEnum$q.call(b, prop))
3530
+ __defNormalProp$z(a, prop, b[prop]);
3571
3531
  }
3572
3532
  return a;
3573
3533
  };
3574
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
3534
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3575
3535
  var __async$l = (__this, __arguments, generator) => {
3576
3536
  return new Promise((resolve, reject) => {
3577
3537
  var fulfilled = (value) => {
@@ -3594,48 +3554,48 @@ var NgwMap = (function (exports) {
3594
3554
  };
3595
3555
  function fetchNgwLayerItem(options) {
3596
3556
  return __async$l(this, null, function* () {
3597
- const params = __spreadValues$o({}, FEATURE_REQUEST_PARAMS);
3557
+ const params = __spreadValues$p({}, FEATURE_REQUEST_PARAMS);
3598
3558
  updateItemRequestParam(params, options);
3599
3559
  const resp = yield options.connector.route("feature_layer.feature.item", {
3600
3560
  id: Number(options.resourceId),
3601
3561
  fid: options.featureId
3602
- }).get(__spreadProps$d(__spreadValues$o({}, options), { query: params }));
3562
+ }).get(__spreadProps$e(__spreadValues$p({}, options), { query: params }));
3603
3563
  const toGeojson = () => __async$l(null, null, function* () {
3604
3564
  if (resp.geom) {
3605
3565
  return createGeoJsonFeature(resp);
3606
3566
  } else {
3607
- const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$d(__spreadValues$o({}, options), {
3567
+ const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$e(__spreadValues$p({}, options), {
3608
3568
  geom: true,
3609
3569
  fields: null,
3610
3570
  extensions: null
3611
3571
  }));
3612
3572
  const geom = onlyGeomItem.geom;
3613
- return createGeoJsonFeature(__spreadProps$d(__spreadValues$o({}, resp), { geom }));
3573
+ return createGeoJsonFeature(__spreadProps$e(__spreadValues$p({}, resp), { geom }));
3614
3574
  }
3615
3575
  });
3616
- return __spreadProps$d(__spreadValues$o({}, resp), {
3576
+ return __spreadProps$e(__spreadValues$p({}, resp), {
3617
3577
  toGeojson
3618
3578
  });
3619
3579
  });
3620
3580
  }
3621
3581
 
3622
- var __defProp$x = Object.defineProperty;
3623
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3624
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3625
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3626
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3627
- var __spreadValues$n = (a, b) => {
3582
+ var __defProp$y = Object.defineProperty;
3583
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
3584
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
3585
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
3586
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3587
+ var __spreadValues$o = (a, b) => {
3628
3588
  for (var prop in b || (b = {}))
3629
- if (__hasOwnProp$o.call(b, prop))
3630
- __defNormalProp$x(a, prop, b[prop]);
3631
- if (__getOwnPropSymbols$o)
3632
- for (var prop of __getOwnPropSymbols$o(b)) {
3633
- if (__propIsEnum$o.call(b, prop))
3634
- __defNormalProp$x(a, prop, b[prop]);
3589
+ if (__hasOwnProp$p.call(b, prop))
3590
+ __defNormalProp$y(a, prop, b[prop]);
3591
+ if (__getOwnPropSymbols$p)
3592
+ for (var prop of __getOwnPropSymbols$p(b)) {
3593
+ if (__propIsEnum$p.call(b, prop))
3594
+ __defNormalProp$y(a, prop, b[prop]);
3635
3595
  }
3636
3596
  return a;
3637
3597
  };
3638
- var __publicField$o = (obj, key, value) => __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3598
+ var __publicField$o = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
3639
3599
  class BookmarkItem {
3640
3600
  constructor(options) {
3641
3601
  this.options = options;
@@ -3672,7 +3632,7 @@ var NgwMap = (function (exports) {
3672
3632
  if (this.item.geom) {
3673
3633
  return Promise.resolve(createGeoJsonFeature(this.item));
3674
3634
  } else {
3675
- return fetchNgwLayerItem(__spreadValues$n({
3635
+ return fetchNgwLayerItem(__spreadValues$o({
3676
3636
  resourceId: this.resourceId,
3677
3637
  featureId: this.item.id,
3678
3638
  connector: this.options.connector,
@@ -3690,9 +3650,9 @@ var NgwMap = (function (exports) {
3690
3650
 
3691
3651
  const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
3692
3652
 
3693
- var __defProp$w = Object.defineProperty;
3694
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3695
- var __publicField$n = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
3653
+ var __defProp$x = Object.defineProperty;
3654
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3655
+ var __publicField$n = (obj, key, value) => __defNormalProp$x(obj, typeof key !== "symbol" ? key + "" : key, value);
3696
3656
  class BaseProperty {
3697
3657
  constructor(name, item, options) {
3698
3658
  __publicField$n(this, "options");
@@ -3805,26 +3765,26 @@ var NgwMap = (function (exports) {
3805
3765
  }
3806
3766
  }
3807
3767
 
3808
- var __defProp$v = Object.defineProperty;
3809
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3810
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3811
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3812
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3813
- var __spreadValues$m = (a, b) => {
3768
+ var __defProp$w = Object.defineProperty;
3769
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
3770
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
3771
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
3772
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3773
+ var __spreadValues$n = (a, b) => {
3814
3774
  for (var prop in b || (b = {}))
3815
- if (__hasOwnProp$n.call(b, prop))
3816
- __defNormalProp$v(a, prop, b[prop]);
3817
- if (__getOwnPropSymbols$n)
3818
- for (var prop of __getOwnPropSymbols$n(b)) {
3819
- if (__propIsEnum$n.call(b, prop))
3820
- __defNormalProp$v(a, prop, b[prop]);
3775
+ if (__hasOwnProp$o.call(b, prop))
3776
+ __defNormalProp$w(a, prop, b[prop]);
3777
+ if (__getOwnPropSymbols$o)
3778
+ for (var prop of __getOwnPropSymbols$o(b)) {
3779
+ if (__propIsEnum$o.call(b, prop))
3780
+ __defNormalProp$w(a, prop, b[prop]);
3821
3781
  }
3822
3782
  return a;
3823
3783
  };
3824
- var __publicField$m = (obj, key, value) => __defNormalProp$v(obj, key + "" , value);
3784
+ var __publicField$m = (obj, key, value) => __defNormalProp$w(obj, key + "" , value);
3825
3785
  const _CheckProperty = class _CheckProperty extends BaseProperty {
3826
3786
  constructor(name, item, options) {
3827
- super(name, item, __spreadValues$m(__spreadValues$m({}, _CheckProperty.options), options));
3787
+ super(name, item, __spreadValues$n(__spreadValues$n({}, _CheckProperty.options), options));
3828
3788
  this.set(this.get());
3829
3789
  }
3830
3790
  update(value, options) {
@@ -3905,13 +3865,13 @@ var NgwMap = (function (exports) {
3905
3865
  _blockChild(item, options) {
3906
3866
  const prop = item.properties && item.properties.property(this.name);
3907
3867
  if (prop && prop.block) {
3908
- prop.block(__spreadValues$m({ silent: true }, options || {}));
3868
+ prop.block(__spreadValues$n({ silent: true }, options || {}));
3909
3869
  }
3910
3870
  }
3911
3871
  _unBlockChild(item, options) {
3912
3872
  const prop = item.properties && item.properties.property(this.name);
3913
3873
  if (prop && prop.unBlock) {
3914
- prop.unBlock(__spreadValues$m({ silent: true }, options || {}));
3874
+ prop.unBlock(__spreadValues$n({ silent: true }, options || {}));
3915
3875
  }
3916
3876
  }
3917
3877
  _propagation(value, options) {
@@ -3921,7 +3881,7 @@ var NgwMap = (function (exports) {
3921
3881
  const child = children[fry];
3922
3882
  const property = child.properties && child.properties.property(this.name);
3923
3883
  if (property) {
3924
- property.set(value, __spreadValues$m(__spreadValues$m({}, options), {
3884
+ property.set(value, __spreadValues$n(__spreadValues$n({}, options), {
3925
3885
  propagation: true,
3926
3886
  bubble: false
3927
3887
  }));
@@ -3939,23 +3899,23 @@ var NgwMap = (function (exports) {
3939
3899
  });
3940
3900
  let CheckProperty = _CheckProperty;
3941
3901
 
3942
- var __defProp$u = Object.defineProperty;
3943
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
3944
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
3945
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
3946
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3947
- var __spreadValues$l = (a, b) => {
3902
+ var __defProp$v = Object.defineProperty;
3903
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
3904
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
3905
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
3906
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3907
+ var __spreadValues$m = (a, b) => {
3948
3908
  for (var prop in b || (b = {}))
3949
- if (__hasOwnProp$m.call(b, prop))
3950
- __defNormalProp$u(a, prop, b[prop]);
3951
- if (__getOwnPropSymbols$m)
3952
- for (var prop of __getOwnPropSymbols$m(b)) {
3953
- if (__propIsEnum$m.call(b, prop))
3954
- __defNormalProp$u(a, prop, b[prop]);
3909
+ if (__hasOwnProp$n.call(b, prop))
3910
+ __defNormalProp$v(a, prop, b[prop]);
3911
+ if (__getOwnPropSymbols$n)
3912
+ for (var prop of __getOwnPropSymbols$n(b)) {
3913
+ if (__propIsEnum$n.call(b, prop))
3914
+ __defNormalProp$v(a, prop, b[prop]);
3955
3915
  }
3956
3916
  return a;
3957
3917
  };
3958
- var __publicField$l = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
3918
+ var __publicField$l = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
3959
3919
  const BOOLEAN_TYPE = "boolean";
3960
3920
  const STRING_TYPE = "string";
3961
3921
  const _ItemProperties = class _ItemProperties {
@@ -4003,7 +3963,7 @@ var NgwMap = (function (exports) {
4003
3963
  _setPropertyHandler(propOpt) {
4004
3964
  const Handler = this._getHandler(propOpt);
4005
3965
  if (Handler && propOpt.name) {
4006
- const options = __spreadValues$l({}, propOpt);
3966
+ const options = __spreadValues$m({}, propOpt);
4007
3967
  this._properties[propOpt.name] = new Handler(
4008
3968
  propOpt.name,
4009
3969
  this.item,
@@ -4133,9 +4093,9 @@ var NgwMap = (function (exports) {
4133
4093
  return true;
4134
4094
  }
4135
4095
 
4136
- var __defProp$t = Object.defineProperty;
4137
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4138
- var __publicField$k = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
4096
+ var __defProp$u = Object.defineProperty;
4097
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4098
+ var __publicField$k = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
4139
4099
  class TreeHelper {
4140
4100
  constructor(item) {
4141
4101
  __publicField$k(this, "item");
@@ -4203,23 +4163,23 @@ var NgwMap = (function (exports) {
4203
4163
  }
4204
4164
  }
4205
4165
 
4206
- var __defProp$s = Object.defineProperty;
4207
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
4208
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
4209
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
4210
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4211
- var __spreadValues$k = (a, b) => {
4166
+ var __defProp$t = Object.defineProperty;
4167
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
4168
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
4169
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
4170
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4171
+ var __spreadValues$l = (a, b) => {
4212
4172
  for (var prop in b || (b = {}))
4213
- if (__hasOwnProp$l.call(b, prop))
4214
- __defNormalProp$s(a, prop, b[prop]);
4215
- if (__getOwnPropSymbols$l)
4216
- for (var prop of __getOwnPropSymbols$l(b)) {
4217
- if (__propIsEnum$l.call(b, prop))
4218
- __defNormalProp$s(a, prop, b[prop]);
4173
+ if (__hasOwnProp$m.call(b, prop))
4174
+ __defNormalProp$t(a, prop, b[prop]);
4175
+ if (__getOwnPropSymbols$m)
4176
+ for (var prop of __getOwnPropSymbols$m(b)) {
4177
+ if (__propIsEnum$m.call(b, prop))
4178
+ __defNormalProp$t(a, prop, b[prop]);
4219
4179
  }
4220
4180
  return a;
4221
4181
  };
4222
- var __publicField$j = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
4182
+ var __publicField$j = (obj, key, value) => __defNormalProp$t(obj, typeof key !== "symbol" ? key + "" : key, value);
4223
4183
  let ID$1 = 0;
4224
4184
  class Item {
4225
4185
  constructor(options) {
@@ -4228,7 +4188,7 @@ var NgwMap = (function (exports) {
4228
4188
  __publicField$j(this, "tree");
4229
4189
  __publicField$j(this, "id", ID$1);
4230
4190
  ID$1 += 1;
4231
- this.options = __spreadValues$k({}, options);
4191
+ this.options = __spreadValues$l({}, options);
4232
4192
  this.tree = new TreeHelper(this);
4233
4193
  }
4234
4194
  initProperties() {
@@ -4284,26 +4244,26 @@ var NgwMap = (function (exports) {
4284
4244
  return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
4285
4245
  }
4286
4246
 
4287
- var __defProp$r = Object.defineProperty;
4288
- var __defProps$c = Object.defineProperties;
4289
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4290
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
4291
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
4292
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
4293
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4294
- var __spreadValues$j = (a, b) => {
4247
+ var __defProp$s = Object.defineProperty;
4248
+ var __defProps$d = Object.defineProperties;
4249
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
4250
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
4251
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
4252
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
4253
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4254
+ var __spreadValues$k = (a, b) => {
4295
4255
  for (var prop in b || (b = {}))
4296
- if (__hasOwnProp$k.call(b, prop))
4297
- __defNormalProp$r(a, prop, b[prop]);
4298
- if (__getOwnPropSymbols$k)
4299
- for (var prop of __getOwnPropSymbols$k(b)) {
4300
- if (__propIsEnum$k.call(b, prop))
4301
- __defNormalProp$r(a, prop, b[prop]);
4256
+ if (__hasOwnProp$l.call(b, prop))
4257
+ __defNormalProp$s(a, prop, b[prop]);
4258
+ if (__getOwnPropSymbols$l)
4259
+ for (var prop of __getOwnPropSymbols$l(b)) {
4260
+ if (__propIsEnum$l.call(b, prop))
4261
+ __defNormalProp$s(a, prop, b[prop]);
4302
4262
  }
4303
4263
  return a;
4304
4264
  };
4305
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
4306
- var __publicField$i = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
4265
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
4266
+ var __publicField$i = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
4307
4267
  var __async$k = (__this, __arguments, generator) => {
4308
4268
  return new Promise((resolve, reject) => {
4309
4269
  var fulfilled = (value) => {
@@ -4368,14 +4328,14 @@ var NgwMap = (function (exports) {
4368
4328
  if (this.connector) {
4369
4329
  const ngwLegend = yield this.connector.route("render.legend_symbols", {
4370
4330
  id: this.resourceId
4371
- }).get(__spreadValues$j({}, options));
4331
+ }).get(__spreadValues$k({}, options));
4372
4332
  this.legend = ngwLegend;
4373
4333
  return this.createLegend(ngwLegend);
4374
4334
  }
4375
4335
  });
4376
4336
  }
4377
4337
  createLegend(items) {
4378
- return items.map((params) => __spreadProps$c(__spreadValues$j({}, params), {
4338
+ return items.map((params) => __spreadProps$d(__spreadValues$k({}, params), {
4379
4339
  /** @deprecated use display_name instead */
4380
4340
  name: params.display_name,
4381
4341
  /** @deprecated use icon instead */
@@ -4405,7 +4365,7 @@ var NgwMap = (function (exports) {
4405
4365
  }
4406
4366
  if (this.layer.updateLayer) {
4407
4367
  this.layer.updateLayer({
4408
- params: __spreadValues$j({}, createLayerSymbolParam(this.resourceId, intervals))
4368
+ params: __spreadValues$k({}, createLayerSymbolParam(this.resourceId, intervals))
4409
4369
  });
4410
4370
  }
4411
4371
  if (intervals.length) {
@@ -4442,26 +4402,26 @@ var NgwMap = (function (exports) {
4442
4402
  }
4443
4403
  }
4444
4404
 
4445
- var __defProp$q = Object.defineProperty;
4446
- var __defProps$b = Object.defineProperties;
4447
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
4448
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
4449
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
4450
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
4451
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4452
- var __spreadValues$i = (a, b) => {
4405
+ var __defProp$r = Object.defineProperty;
4406
+ var __defProps$c = Object.defineProperties;
4407
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
4408
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
4409
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
4410
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
4411
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4412
+ var __spreadValues$j = (a, b) => {
4453
4413
  for (var prop in b || (b = {}))
4454
- if (__hasOwnProp$j.call(b, prop))
4455
- __defNormalProp$q(a, prop, b[prop]);
4456
- if (__getOwnPropSymbols$j)
4457
- for (var prop of __getOwnPropSymbols$j(b)) {
4458
- if (__propIsEnum$j.call(b, prop))
4459
- __defNormalProp$q(a, prop, b[prop]);
4414
+ if (__hasOwnProp$k.call(b, prop))
4415
+ __defNormalProp$r(a, prop, b[prop]);
4416
+ if (__getOwnPropSymbols$k)
4417
+ for (var prop of __getOwnPropSymbols$k(b)) {
4418
+ if (__propIsEnum$k.call(b, prop))
4419
+ __defNormalProp$r(a, prop, b[prop]);
4460
4420
  }
4461
4421
  return a;
4462
4422
  };
4463
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
4464
- var __publicField$h = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4423
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
4424
+ var __publicField$h = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
4465
4425
  var __async$j = (__this, __arguments, generator) => {
4466
4426
  return new Promise((resolve, reject) => {
4467
4427
  var fulfilled = (value) => {
@@ -4491,7 +4451,7 @@ var NgwMap = (function (exports) {
4491
4451
  parent,
4492
4452
  noInit
4493
4453
  }) {
4494
- super(__spreadValues$i(__spreadValues$i({}, _NgwWebmapItem.options), options));
4454
+ super(__spreadValues$j(__spreadValues$j({}, _NgwWebmapItem.options), options));
4495
4455
  __publicField$h(this, "item");
4496
4456
  __publicField$h(this, "webMap");
4497
4457
  __publicField$h(this, "connector");
@@ -4587,7 +4547,7 @@ var NgwMap = (function (exports) {
4587
4547
  getItemOptions(item) {
4588
4548
  const transparency = item.item_type === "layer" && item.layer_transparency;
4589
4549
  const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
4590
- const options = __spreadProps$b(__spreadValues$i({
4550
+ const options = __spreadProps$c(__spreadValues$j({
4591
4551
  visibility: false,
4592
4552
  name: item.display_name
4593
4553
  }, this.options), {
@@ -4607,7 +4567,7 @@ var NgwMap = (function (exports) {
4607
4567
  }
4608
4568
  if (item.item_type === "layer") {
4609
4569
  const { maxZoom, minZoom } = this._getZoomRange(item);
4610
- Object.assign(options, __spreadProps$b(__spreadValues$i({
4570
+ Object.assign(options, __spreadProps$c(__spreadValues$j({
4611
4571
  updateWmsParams: item.updateWmsParams
4612
4572
  }, options), {
4613
4573
  url: item.url,
@@ -4751,26 +4711,26 @@ var NgwMap = (function (exports) {
4751
4711
  });
4752
4712
  let NgwWebmapItem = _NgwWebmapItem;
4753
4713
 
4754
- var __defProp$p = Object.defineProperty;
4755
- var __defProps$a = Object.defineProperties;
4756
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
4757
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
4758
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
4759
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
4760
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4761
- var __spreadValues$h = (a, b) => {
4762
- for (var prop in b || (b = {}))
4763
- if (__hasOwnProp$i.call(b, prop))
4764
- __defNormalProp$p(a, prop, b[prop]);
4765
- if (__getOwnPropSymbols$i)
4766
- for (var prop of __getOwnPropSymbols$i(b)) {
4767
- if (__propIsEnum$i.call(b, prop))
4768
- __defNormalProp$p(a, prop, b[prop]);
4714
+ var __defProp$q = Object.defineProperty;
4715
+ var __defProps$b = Object.defineProperties;
4716
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
4717
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
4718
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
4719
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
4720
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4721
+ var __spreadValues$i = (a, b) => {
4722
+ for (var prop in b || (b = {}))
4723
+ if (__hasOwnProp$j.call(b, prop))
4724
+ __defNormalProp$q(a, prop, b[prop]);
4725
+ if (__getOwnPropSymbols$j)
4726
+ for (var prop of __getOwnPropSymbols$j(b)) {
4727
+ if (__propIsEnum$j.call(b, prop))
4728
+ __defNormalProp$q(a, prop, b[prop]);
4769
4729
  }
4770
4730
  return a;
4771
4731
  };
4772
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
4773
- var __publicField$g = (obj, key, value) => __defNormalProp$p(obj, typeof key !== "symbol" ? key + "" : key, value);
4732
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
4733
+ var __publicField$g = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
4774
4734
  var __async$i = (__this, __arguments, generator) => {
4775
4735
  return new Promise((resolve, reject) => {
4776
4736
  var fulfilled = (value) => {
@@ -4823,7 +4783,7 @@ var NgwMap = (function (exports) {
4823
4783
  addLayer(options) {
4824
4784
  return __async$i(this, null, function* () {
4825
4785
  var _a;
4826
- this.options = __spreadValues$h(__spreadValues$h({}, this.options), options);
4786
+ this.options = __spreadValues$i(__spreadValues$i({}, this.options), options);
4827
4787
  this.layer = yield this._getWebMapLayerItem();
4828
4788
  const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
4829
4789
  if (this.options.useExtentConstrained && this._extent && extentConstrained) {
@@ -4902,7 +4862,7 @@ var NgwMap = (function (exports) {
4902
4862
  (x) => x.label_field
4903
4863
  );
4904
4864
  const keyname = labelField && labelField.keyname;
4905
- return fetchNgwLayerItems(__spreadValues$h({
4865
+ return fetchNgwLayerItems(__spreadValues$i({
4906
4866
  connector,
4907
4867
  resourceId: bookmarkResId,
4908
4868
  geom: false,
@@ -4971,7 +4931,7 @@ var NgwMap = (function (exports) {
4971
4931
  const connector = this.options.connector;
4972
4932
  const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
4973
4933
  const withCredentials = connector.withCredentials;
4974
- const options = __spreadProps$a(__spreadValues$h({}, this.options), {
4934
+ const options = __spreadProps$b(__spreadValues$i({}, this.options), {
4975
4935
  withCredentials,
4976
4936
  headers,
4977
4937
  drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
@@ -5077,7 +5037,7 @@ var NgwMap = (function (exports) {
5077
5037
  webMap,
5078
5038
  baseUrl: this.options.connector.options.baseUrl || ""
5079
5039
  });
5080
- item = __spreadValues$h(__spreadValues$h({}, layerItem), layerAdapterOptions);
5040
+ item = __spreadValues$i(__spreadValues$i({}, layerItem), layerAdapterOptions);
5081
5041
  }
5082
5042
  }
5083
5043
  if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
@@ -5087,40 +5047,40 @@ var NgwMap = (function (exports) {
5087
5047
  }
5088
5048
  }
5089
5049
 
5090
- var __defProp$o = Object.defineProperty;
5091
- var __defProps$9 = Object.defineProperties;
5092
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
5093
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
5094
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
5095
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
5096
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5097
- var __spreadValues$g = (a, b) => {
5050
+ var __defProp$p = Object.defineProperty;
5051
+ var __defProps$a = Object.defineProperties;
5052
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
5053
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
5054
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
5055
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
5056
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5057
+ var __spreadValues$h = (a, b) => {
5098
5058
  for (var prop in b || (b = {}))
5099
- if (__hasOwnProp$h.call(b, prop))
5100
- __defNormalProp$o(a, prop, b[prop]);
5101
- if (__getOwnPropSymbols$h)
5102
- for (var prop of __getOwnPropSymbols$h(b)) {
5103
- if (__propIsEnum$h.call(b, prop))
5104
- __defNormalProp$o(a, prop, b[prop]);
5059
+ if (__hasOwnProp$i.call(b, prop))
5060
+ __defNormalProp$p(a, prop, b[prop]);
5061
+ if (__getOwnPropSymbols$i)
5062
+ for (var prop of __getOwnPropSymbols$i(b)) {
5063
+ if (__propIsEnum$i.call(b, prop))
5064
+ __defNormalProp$p(a, prop, b[prop]);
5105
5065
  }
5106
5066
  return a;
5107
5067
  };
5108
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
5109
- var __objRest$2 = (source, exclude) => {
5068
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
5069
+ var __objRest$4 = (source, exclude) => {
5110
5070
  var target = {};
5111
5071
  for (var prop in source)
5112
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
5072
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
5113
5073
  target[prop] = source[prop];
5114
- if (source != null && __getOwnPropSymbols$h)
5115
- for (var prop of __getOwnPropSymbols$h(source)) {
5116
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
5074
+ if (source != null && __getOwnPropSymbols$i)
5075
+ for (var prop of __getOwnPropSymbols$i(source)) {
5076
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
5117
5077
  target[prop] = source[prop];
5118
5078
  }
5119
5079
  return target;
5120
5080
  };
5121
5081
  function updateImageParams(params, resourceId) {
5122
- const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$2(_a, ["bbox", "width", "height", "nd"]);
5123
- return __spreadProps$9(__spreadValues$g({}, rest), {
5082
+ const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$4(_a, ["bbox", "width", "height", "nd"]);
5083
+ return __spreadProps$a(__spreadValues$h({}, rest), {
5124
5084
  resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
5125
5085
  extent: bbox,
5126
5086
  size: width + "," + height,
@@ -5155,7 +5115,7 @@ var NgwMap = (function (exports) {
5155
5115
  function extendNgwWebmapLayerAdapter(opt) {
5156
5116
  class A extends NgwWebmapLayerAdapter {
5157
5117
  constructor(map, options) {
5158
- options = __spreadValues$g(__spreadValues$g({}, opt), options);
5118
+ options = __spreadValues$h(__spreadValues$h({}, opt), options);
5159
5119
  super(map, options);
5160
5120
  }
5161
5121
  }
@@ -5234,35 +5194,35 @@ var NgwMap = (function (exports) {
5234
5194
  };
5235
5195
  }
5236
5196
 
5237
- var __defProp$n = Object.defineProperty;
5238
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
5239
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
5240
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
5241
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5242
- var __spreadValues$f = (a, b) => {
5197
+ var __defProp$o = Object.defineProperty;
5198
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
5199
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
5200
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
5201
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5202
+ var __spreadValues$g = (a, b) => {
5243
5203
  for (var prop in b || (b = {}))
5244
- if (__hasOwnProp$g.call(b, prop))
5245
- __defNormalProp$n(a, prop, b[prop]);
5246
- if (__getOwnPropSymbols$g)
5247
- for (var prop of __getOwnPropSymbols$g(b)) {
5248
- if (__propIsEnum$g.call(b, prop))
5249
- __defNormalProp$n(a, prop, b[prop]);
5204
+ if (__hasOwnProp$h.call(b, prop))
5205
+ __defNormalProp$o(a, prop, b[prop]);
5206
+ if (__getOwnPropSymbols$h)
5207
+ for (var prop of __getOwnPropSymbols$h(b)) {
5208
+ if (__propIsEnum$h.call(b, prop))
5209
+ __defNormalProp$o(a, prop, b[prop]);
5250
5210
  }
5251
5211
  return a;
5252
5212
  };
5253
- var __objRest$1 = (source, exclude) => {
5213
+ var __objRest$3 = (source, exclude) => {
5254
5214
  var target = {};
5255
5215
  for (var prop in source)
5256
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
5216
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
5257
5217
  target[prop] = source[prop];
5258
- if (source != null && __getOwnPropSymbols$g)
5259
- for (var prop of __getOwnPropSymbols$g(source)) {
5260
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
5218
+ if (source != null && __getOwnPropSymbols$h)
5219
+ for (var prop of __getOwnPropSymbols$h(source)) {
5220
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
5261
5221
  target[prop] = source[prop];
5262
5222
  }
5263
5223
  return target;
5264
5224
  };
5265
- var __publicField$f = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
5225
+ var __publicField$f = (obj, key, value) => __defNormalProp$o(obj, typeof key !== "symbol" ? key + "" : key, value);
5266
5226
  var __async$h = (__this, __arguments, generator) => {
5267
5227
  return new Promise((resolve, reject) => {
5268
5228
  var fulfilled = (value) => {
@@ -5283,11 +5243,11 @@ var NgwMap = (function (exports) {
5283
5243
  step((generator = generator.apply(__this, __arguments)).next());
5284
5244
  });
5285
5245
  };
5286
- const URL = "https://qms.nextgis.com";
5287
- function createQmsAdapter(webMapOrOptions, url = URL, createOpt = {}) {
5246
+ const URL$1 = "https://qms.nextgis.com";
5247
+ function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
5288
5248
  let webMap;
5289
5249
  if ("webMap" in webMapOrOptions) {
5290
- const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$1(_a, ["webMap", "url"]);
5250
+ const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$3(_a, ["webMap", "url"]);
5291
5251
  webMap = webMap_;
5292
5252
  if (url_) {
5293
5253
  url = url_;
@@ -5299,7 +5259,7 @@ var NgwMap = (function (exports) {
5299
5259
  webMap = webMapOrOptions;
5300
5260
  }
5301
5261
  if (!url) {
5302
- url = URL;
5262
+ url = URL$1;
5303
5263
  }
5304
5264
  class QmsAdapter {
5305
5265
  constructor(map, options) {
@@ -5307,7 +5267,7 @@ var NgwMap = (function (exports) {
5307
5267
  __publicField$f(this, "options");
5308
5268
  __publicField$f(this, "map");
5309
5269
  this.map = map;
5310
- const opt = __spreadValues$f(__spreadValues$f({}, createOpt), options);
5270
+ const opt = __spreadValues$g(__spreadValues$g({}, createOpt), options);
5311
5271
  this.options = opt;
5312
5272
  this.options.baselayer = true;
5313
5273
  if (opt.qms) {
@@ -5335,7 +5295,7 @@ var NgwMap = (function (exports) {
5335
5295
  "hideLayer"
5336
5296
  ]);
5337
5297
  if (type === "TILE") {
5338
- options = __spreadValues$f(__spreadValues$f({
5298
+ options = __spreadValues$g(__spreadValues$g({
5339
5299
  order: 0,
5340
5300
  maxZoom: webMap.options.maxZoom,
5341
5301
  minZoom: webMap.options.minZoom
@@ -5359,30 +5319,30 @@ var NgwMap = (function (exports) {
5359
5319
  return QmsAdapter;
5360
5320
  }
5361
5321
 
5362
- var __defProp$m = Object.defineProperty;
5363
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
5364
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
5365
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
5366
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5367
- var __spreadValues$e = (a, b) => {
5322
+ var __defProp$n = Object.defineProperty;
5323
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
5324
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
5325
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
5326
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5327
+ var __spreadValues$f = (a, b) => {
5368
5328
  for (var prop in b || (b = {}))
5369
- if (__hasOwnProp$f.call(b, prop))
5370
- __defNormalProp$m(a, prop, b[prop]);
5371
- if (__getOwnPropSymbols$f)
5372
- for (var prop of __getOwnPropSymbols$f(b)) {
5373
- if (__propIsEnum$f.call(b, prop))
5374
- __defNormalProp$m(a, prop, b[prop]);
5329
+ if (__hasOwnProp$g.call(b, prop))
5330
+ __defNormalProp$n(a, prop, b[prop]);
5331
+ if (__getOwnPropSymbols$g)
5332
+ for (var prop of __getOwnPropSymbols$g(b)) {
5333
+ if (__propIsEnum$g.call(b, prop))
5334
+ __defNormalProp$n(a, prop, b[prop]);
5375
5335
  }
5376
5336
  return a;
5377
5337
  };
5378
- var __publicField$e = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
5338
+ var __publicField$e = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
5379
5339
  class QmsKit {
5380
5340
  constructor(options) {
5381
5341
  __publicField$e(this, "options", {
5382
5342
  url: "https://qms.nextgis.com"
5383
5343
  });
5384
5344
  __publicField$e(this, "url");
5385
- this.options = __spreadValues$e(__spreadValues$e({}, this.options), options);
5345
+ this.options = __spreadValues$f(__spreadValues$f({}, this.options), options);
5386
5346
  this.url = this.options.url;
5387
5347
  }
5388
5348
  getLayerAdapters() {
@@ -5401,27 +5361,27 @@ var NgwMap = (function (exports) {
5401
5361
  createQmsAdapter
5402
5362
  });
5403
5363
 
5404
- var __defProp$l = Object.defineProperty;
5405
- var __defProps$8 = Object.defineProperties;
5406
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
5407
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
5364
+ var __defProp$m = Object.defineProperty;
5365
+ var __defProps$9 = Object.defineProperties;
5366
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
5367
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
5408
5368
  var __getProtoOf$2 = Object.getPrototypeOf;
5409
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
5410
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
5369
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
5370
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
5411
5371
  var __reflectGet$2 = Reflect.get;
5412
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5413
- var __spreadValues$d = (a, b) => {
5372
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5373
+ var __spreadValues$e = (a, b) => {
5414
5374
  for (var prop in b || (b = {}))
5415
- if (__hasOwnProp$e.call(b, prop))
5416
- __defNormalProp$l(a, prop, b[prop]);
5417
- if (__getOwnPropSymbols$e)
5418
- for (var prop of __getOwnPropSymbols$e(b)) {
5419
- if (__propIsEnum$e.call(b, prop))
5420
- __defNormalProp$l(a, prop, b[prop]);
5375
+ if (__hasOwnProp$f.call(b, prop))
5376
+ __defNormalProp$m(a, prop, b[prop]);
5377
+ if (__getOwnPropSymbols$f)
5378
+ for (var prop of __getOwnPropSymbols$f(b)) {
5379
+ if (__propIsEnum$f.call(b, prop))
5380
+ __defNormalProp$m(a, prop, b[prop]);
5421
5381
  }
5422
5382
  return a;
5423
5383
  };
5424
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
5384
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
5425
5385
  var __superGet$2 = (cls, obj, key) => __reflectGet$2(__getProtoOf$2(cls), key, obj);
5426
5386
  var __async$g = (__this, __arguments, generator) => {
5427
5387
  return new Promise((resolve, reject) => {
@@ -5467,7 +5427,7 @@ var NgwMap = (function (exports) {
5467
5427
  addLayer(opt) {
5468
5428
  return __async$g(this, null, function* () {
5469
5429
  if (url) {
5470
- return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$8(__spreadValues$d({}, opt), { url }));
5430
+ return __superGet$2(BasemapTileAdapter.prototype, this, "addLayer").call(this, __spreadProps$9(__spreadValues$e({}, opt), { url }));
5471
5431
  }
5472
5432
  });
5473
5433
  }
@@ -5576,28 +5536,28 @@ var NgwMap = (function (exports) {
5576
5536
  return filterOptions;
5577
5537
  }
5578
5538
 
5579
- var __defProp$k = Object.defineProperty;
5580
- var __defProps$7 = Object.defineProperties;
5581
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
5582
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
5539
+ var __defProp$l = Object.defineProperty;
5540
+ var __defProps$8 = Object.defineProperties;
5541
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
5542
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
5583
5543
  var __getProtoOf$1 = Object.getPrototypeOf;
5584
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
5585
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
5544
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
5545
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
5586
5546
  var __reflectGet$1 = Reflect.get;
5587
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5588
- var __spreadValues$c = (a, b) => {
5547
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5548
+ var __spreadValues$d = (a, b) => {
5589
5549
  for (var prop in b || (b = {}))
5590
- if (__hasOwnProp$d.call(b, prop))
5591
- __defNormalProp$k(a, prop, b[prop]);
5592
- if (__getOwnPropSymbols$d)
5593
- for (var prop of __getOwnPropSymbols$d(b)) {
5594
- if (__propIsEnum$d.call(b, prop))
5595
- __defNormalProp$k(a, prop, b[prop]);
5550
+ if (__hasOwnProp$e.call(b, prop))
5551
+ __defNormalProp$l(a, prop, b[prop]);
5552
+ if (__getOwnPropSymbols$e)
5553
+ for (var prop of __getOwnPropSymbols$e(b)) {
5554
+ if (__propIsEnum$e.call(b, prop))
5555
+ __defNormalProp$l(a, prop, b[prop]);
5596
5556
  }
5597
5557
  return a;
5598
5558
  };
5599
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
5600
- var __publicField$d = (obj, key, value) => __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
5559
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
5560
+ var __publicField$d = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
5601
5561
  var __superGet$1 = (cls, obj, key) => __reflectGet$1(__getProtoOf$1(cls), key, obj);
5602
5562
  var __async$e = (__this, __arguments, generator) => {
5603
5563
  return new Promise((resolve, reject) => {
@@ -5653,7 +5613,7 @@ var NgwMap = (function (exports) {
5653
5613
  filterOpt = filterOpt || {};
5654
5614
  filterOpt.signal = internalSignal;
5655
5615
  _lastFilterArgs = { filters, options: filterOpt };
5656
- return fetchNgwLayerFeatureCollection(__spreadValues$c({
5616
+ return fetchNgwLayerFeatureCollection(__spreadValues$d({
5657
5617
  resourceId,
5658
5618
  filters,
5659
5619
  connector,
@@ -5688,9 +5648,9 @@ var NgwMap = (function (exports) {
5688
5648
  }
5689
5649
  if (options.adapterOptions) {
5690
5650
  if (addLayerOptionsPriority) {
5691
- opt = __spreadValues$c(__spreadValues$c({}, options.adapterOptions), opt);
5651
+ opt = __spreadValues$d(__spreadValues$d({}, options.adapterOptions), opt);
5692
5652
  } else {
5693
- opt = __spreadValues$c(__spreadValues$c({}, opt), options.adapterOptions);
5653
+ opt = __spreadValues$d(__spreadValues$d({}, opt), options.adapterOptions);
5694
5654
  }
5695
5655
  }
5696
5656
  if (opt.data && Object.keys(opt.data).length === 0) {
@@ -5775,7 +5735,7 @@ var NgwMap = (function (exports) {
5775
5735
  try {
5776
5736
  this.emitter.emit("preupdate", filterArgs);
5777
5737
  webMap._emitLayerEvent("layer:preupdate", options.id || "", filterArgs);
5778
- const data = yield getData(filterArgs.filters, __spreadProps$7(__spreadValues$c({}, filterArgs.options), {
5738
+ const data = yield getData(filterArgs.filters, __spreadProps$8(__spreadValues$d({}, filterArgs.options), {
5779
5739
  srs: this.options.srs
5780
5740
  }));
5781
5741
  let newData = data;
@@ -5818,7 +5778,7 @@ var NgwMap = (function (exports) {
5818
5778
  abort();
5819
5779
  if (this.filter && _fullDataLoad) {
5820
5780
  this.filter((e) => {
5821
- const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$c({}, e.feature.properties));
5781
+ const props_ = e.feature && e.feature.properties && prepareNgwFieldsToPropertiesFilter(__spreadValues$d({}, e.feature.properties));
5822
5782
  if (props_) {
5823
5783
  return propertiesFilter(props_, filters);
5824
5784
  }
@@ -5828,7 +5788,7 @@ var NgwMap = (function (exports) {
5828
5788
  if (this.clearLayer) {
5829
5789
  this.clearLayer();
5830
5790
  }
5831
- const data = yield getData(filters, __spreadProps$7(__spreadValues$c({}, opt), {
5791
+ const data = yield getData(filters, __spreadProps$8(__spreadValues$d({}, opt), {
5832
5792
  srs: this.options.srs
5833
5793
  }));
5834
5794
  this.setData(data);
@@ -5928,26 +5888,166 @@ var NgwMap = (function (exports) {
5928
5888
  });
5929
5889
  }
5930
5890
 
5931
- var __defProp$j = Object.defineProperty;
5932
- var __defProps$6 = Object.defineProperties;
5933
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
5934
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
5935
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
5936
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
5937
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
5938
- var __spreadValues$b = (a, b) => {
5891
+ function isPropertyFilter(value) {
5892
+ return Array.isArray(value) && value.length === 3 && typeof value[0] === "string" && typeof value[1] === "string";
5893
+ }
5894
+ function isPropertiesFilterGroup(value) {
5895
+ return Array.isArray(value) && !isPropertyFilter(value);
5896
+ }
5897
+ function toGetExpr(field) {
5898
+ return ["get", field];
5899
+ }
5900
+ function toConditionExpr(filter) {
5901
+ const [fieldRaw, op, value] = filter;
5902
+ const field = String(fieldRaw);
5903
+ const getExpr = toGetExpr(field);
5904
+ switch (op) {
5905
+ case "eq":
5906
+ if (value === null) {
5907
+ return ["is_null", getExpr];
5908
+ }
5909
+ return ["==", getExpr, value];
5910
+ case "ne":
5911
+ if (value === null) {
5912
+ return ["!is_null", getExpr];
5913
+ }
5914
+ return ["!=", getExpr, value];
5915
+ case "gt":
5916
+ if (typeof value !== "number" && typeof value !== "string") {
5917
+ throw new Error(
5918
+ `Operator "gt" requires number or string for "${field}"`
5919
+ );
5920
+ }
5921
+ return [">", getExpr, value];
5922
+ case "lt":
5923
+ if (typeof value !== "number" && typeof value !== "string") {
5924
+ throw new Error(
5925
+ `Operator "lt" requires number or string for "${field}"`
5926
+ );
5927
+ }
5928
+ return ["<", getExpr, value];
5929
+ case "ge":
5930
+ if (typeof value !== "number" && typeof value !== "string") {
5931
+ throw new Error(
5932
+ `Operator "ge" requires number or string for "${field}"`
5933
+ );
5934
+ }
5935
+ return [">=", getExpr, value];
5936
+ case "le":
5937
+ if (typeof value !== "number" && typeof value !== "string") {
5938
+ throw new Error(
5939
+ `Operator "le" requires number or string for "${field}"`
5940
+ );
5941
+ }
5942
+ return ["<=", getExpr, value];
5943
+ case "in":
5944
+ if (!Array.isArray(value) || !value.every((x) => typeof x === "string" || typeof x === "number")) {
5945
+ throw new Error(
5946
+ `Operator "in" requires (string | number)[] for "${field}"`
5947
+ );
5948
+ }
5949
+ if (!value.length) {
5950
+ throw new Error(
5951
+ `Operator "in" requires non-empty array for "${field}"`
5952
+ );
5953
+ }
5954
+ return ["in", getExpr, ...value];
5955
+ case "notin":
5956
+ if (!Array.isArray(value) || !value.every((x) => typeof x === "string" || typeof x === "number")) {
5957
+ throw new Error(
5958
+ `Operator "notin" requires (string | number)[] for "${field}"`
5959
+ );
5960
+ }
5961
+ if (!value.length) {
5962
+ throw new Error(
5963
+ `Operator "notin" requires non-empty array for "${field}"`
5964
+ );
5965
+ }
5966
+ return ["!in", getExpr, ...value];
5967
+ case "like":
5968
+ case "ilike":
5969
+ throw new Error(
5970
+ `Operator "${op}" is not supported by server FilterExpression`
5971
+ );
5972
+ default: {
5973
+ const exhaustive = op;
5974
+ throw new Error(`Unsupported operator: ${exhaustive}`);
5975
+ }
5976
+ }
5977
+ }
5978
+ function toGroupExpr(filters) {
5979
+ let logicalOp = "all";
5980
+ const children = [];
5981
+ for (const item of filters) {
5982
+ if (item === "all" || item === "any") {
5983
+ logicalOp = item;
5984
+ continue;
5985
+ }
5986
+ if (isPropertyFilter(item)) {
5987
+ children.push(toConditionExpr(item));
5988
+ continue;
5989
+ }
5990
+ if (isPropertiesFilterGroup(item)) {
5991
+ children.push(toGroupExpr(item));
5992
+ continue;
5993
+ }
5994
+ throw new Error("Invalid PropertiesFilter node");
5995
+ }
5996
+ return [logicalOp, ...children];
5997
+ }
5998
+ function propertiesFilterToExpression(filters) {
5999
+ if (!(filters == null ? void 0 : filters.length)) {
6000
+ return [];
6001
+ }
6002
+ return toGroupExpr(filters);
6003
+ }
6004
+ function propertiesFilterToExpressionString(filters) {
6005
+ if (!(filters == null ? void 0 : filters.length)) {
6006
+ return void 0;
6007
+ }
6008
+ return JSON.stringify(
6009
+ propertiesFilterToExpression(filters)
6010
+ );
6011
+ }
6012
+
6013
+ function createLayerFilterParam(resourceId, filter) {
6014
+ return {
6015
+ [`filter[${resourceId}]`]: propertiesFilterToExpressionString(filter)
6016
+ };
6017
+ }
6018
+
6019
+ var __defProp$k = Object.defineProperty;
6020
+ var __defProps$7 = Object.defineProperties;
6021
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
6022
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
6023
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
6024
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
6025
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6026
+ var __spreadValues$c = (a, b) => {
5939
6027
  for (var prop in b || (b = {}))
5940
- if (__hasOwnProp$c.call(b, prop))
5941
- __defNormalProp$j(a, prop, b[prop]);
5942
- if (__getOwnPropSymbols$c)
5943
- for (var prop of __getOwnPropSymbols$c(b)) {
5944
- if (__propIsEnum$c.call(b, prop))
5945
- __defNormalProp$j(a, prop, b[prop]);
6028
+ if (__hasOwnProp$d.call(b, prop))
6029
+ __defNormalProp$k(a, prop, b[prop]);
6030
+ if (__getOwnPropSymbols$d)
6031
+ for (var prop of __getOwnPropSymbols$d(b)) {
6032
+ if (__propIsEnum$d.call(b, prop))
6033
+ __defNormalProp$k(a, prop, b[prop]);
5946
6034
  }
5947
6035
  return a;
5948
6036
  };
5949
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
5950
- var __publicField$c = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
6037
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
6038
+ var __objRest$2 = (source, exclude) => {
6039
+ var target = {};
6040
+ for (var prop in source)
6041
+ if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
6042
+ target[prop] = source[prop];
6043
+ if (source != null && __getOwnPropSymbols$d)
6044
+ for (var prop of __getOwnPropSymbols$d(source)) {
6045
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
6046
+ target[prop] = source[prop];
6047
+ }
6048
+ return target;
6049
+ };
6050
+ var __publicField$c = (obj, key, value) => __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
5951
6051
  var __async$c = (__this, __arguments, generator) => {
5952
6052
  return new Promise((resolve, reject) => {
5953
6053
  var fulfilled = (value) => {
@@ -6011,19 +6111,38 @@ var NgwMap = (function (exports) {
6011
6111
  baseUrl: connector.options.baseUrl || ""
6012
6112
  });
6013
6113
  if (opt) {
6014
- const layerAdapterOptions = __spreadProps$6(__spreadValues$b(__spreadValues$b({}, opt), layerOptions.adapterOptions), {
6015
- params: { resource: resourceId },
6114
+ const _a = layerOptions.adapterOptions || {}, { propertiesFilter } = _a, restAdapterOptions = __objRest$2(_a, ["propertiesFilter"]);
6115
+ const filterParams = createLayerFilterParam(
6116
+ resourceId,
6117
+ propertiesFilter
6118
+ );
6119
+ const layerAdapterOptions = __spreadProps$7(__spreadValues$c(__spreadValues$c({}, opt), restAdapterOptions), {
6120
+ params: __spreadValues$c({
6121
+ resource: resourceId
6122
+ }, filterParams),
6123
+ url: adapter === "TILE" && opt.url ? updateUrlParams(opt.url, __spreadValues$c({
6124
+ resource: String(resourceId)
6125
+ }, filterParams)) : opt.url,
6016
6126
  layers: opt.layers || String(resourceId),
6017
6127
  resourceId
6018
6128
  });
6019
6129
  if (layerOptions.adapterOptions && defined(layerOptions.adapterOptions.setViewDelay)) {
6020
6130
  layerAdapterOptions.setViewDelay = layerOptions.adapterOptions.setViewDelay;
6021
6131
  }
6022
- this.options = __spreadValues$b(__spreadValues$b({}, this.options), layerAdapterOptions);
6132
+ this.options = __spreadValues$c(__spreadValues$c({}, this.options), layerAdapterOptions);
6023
6133
  }
6024
6134
  }
6025
6135
  addLayer(addOptions) {
6026
- return super.addLayer(__spreadValues$b(__spreadValues$b({}, this.options), addOptions));
6136
+ return super.addLayer(__spreadValues$c(__spreadValues$c({}, this.options), addOptions));
6137
+ }
6138
+ propertiesFilter(filters) {
6139
+ return __async$c(this, null, function* () {
6140
+ var _a;
6141
+ const opt = this.options;
6142
+ const params = __spreadValues$c(__spreadValues$c({}, opt.params || {}), createLayerFilterParam(this.resourceId, filters));
6143
+ opt.params = params;
6144
+ (_a = this.updateLayer) == null ? void 0 : _a.call(this, { params });
6145
+ });
6027
6146
  }
6028
6147
  getIdentificationIds() {
6029
6148
  return __async$c(this, null, function* () {
@@ -6045,7 +6164,7 @@ var NgwMap = (function (exports) {
6045
6164
  return __async$c(this, null, function* () {
6046
6165
  const id = this.options.id;
6047
6166
  if (id !== void 0) {
6048
- const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$b({
6167
+ const ngwLegend = yield connector.route("render.legend_symbols", { id: resourceId }).get(__spreadValues$c({
6049
6168
  cache: true
6050
6169
  }, options));
6051
6170
  const legend = new Legend({
@@ -6067,25 +6186,25 @@ var NgwMap = (function (exports) {
6067
6186
  });
6068
6187
  }
6069
6188
 
6070
- var __defProp$i = Object.defineProperty;
6071
- var __defProps$5 = Object.defineProperties;
6072
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
6073
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
6074
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
6075
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
6076
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6077
- var __spreadValues$a = (a, b) => {
6189
+ var __defProp$j = Object.defineProperty;
6190
+ var __defProps$6 = Object.defineProperties;
6191
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
6192
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
6193
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
6194
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
6195
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6196
+ var __spreadValues$b = (a, b) => {
6078
6197
  for (var prop in b || (b = {}))
6079
- if (__hasOwnProp$b.call(b, prop))
6080
- __defNormalProp$i(a, prop, b[prop]);
6081
- if (__getOwnPropSymbols$b)
6082
- for (var prop of __getOwnPropSymbols$b(b)) {
6083
- if (__propIsEnum$b.call(b, prop))
6084
- __defNormalProp$i(a, prop, b[prop]);
6198
+ if (__hasOwnProp$c.call(b, prop))
6199
+ __defNormalProp$j(a, prop, b[prop]);
6200
+ if (__getOwnPropSymbols$c)
6201
+ for (var prop of __getOwnPropSymbols$c(b)) {
6202
+ if (__propIsEnum$c.call(b, prop))
6203
+ __defNormalProp$j(a, prop, b[prop]);
6085
6204
  }
6086
6205
  return a;
6087
6206
  };
6088
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
6207
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
6089
6208
  var __async$b = (__this, __arguments, generator) => {
6090
6209
  return new Promise((resolve, reject) => {
6091
6210
  var fulfilled = (value) => {
@@ -6133,7 +6252,7 @@ var NgwMap = (function (exports) {
6133
6252
  const firstStyle = childrenStyles && childrenStyles[0];
6134
6253
  if (firstStyle) {
6135
6254
  return createAsyncAdapter(
6136
- __spreadProps$5(__spreadValues$a({}, layerOptions), { resource: firstStyle.resource.id }),
6255
+ __spreadProps$6(__spreadValues$b({}, layerOptions), { resource: firstStyle.resource.id }),
6137
6256
  webMap,
6138
6257
  connector
6139
6258
  );
@@ -6156,7 +6275,7 @@ var NgwMap = (function (exports) {
6156
6275
  }
6157
6276
  if (item) {
6158
6277
  const cls = item.resource.cls;
6159
- const layerOptions = __spreadProps$5(__spreadValues$a({}, options), {
6278
+ const layerOptions = __spreadProps$6(__spreadValues$b({}, options), {
6160
6279
  resource: resourceId
6161
6280
  });
6162
6281
  const adapterOptions = {
@@ -6193,10 +6312,10 @@ var NgwMap = (function (exports) {
6193
6312
  item.resource.parent.id
6194
6313
  );
6195
6314
  if (parentItem) {
6196
- const parentOptions = __spreadProps$5(__spreadValues$a({}, options), {
6315
+ const parentOptions = __spreadProps$6(__spreadValues$b({}, options), {
6197
6316
  resource: item.resource.parent.id
6198
6317
  });
6199
- adapter = createGeoJsonAdapter(__spreadProps$5(__spreadValues$a({}, adapterOptions), {
6318
+ adapter = createGeoJsonAdapter(__spreadProps$6(__spreadValues$b({}, adapterOptions), {
6200
6319
  item: parentItem,
6201
6320
  layerOptions: parentOptions
6202
6321
  }));
@@ -6240,23 +6359,23 @@ var NgwMap = (function (exports) {
6240
6359
  });
6241
6360
  }
6242
6361
 
6243
- var __defProp$h = Object.defineProperty;
6244
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
6245
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
6246
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
6247
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6248
- var __spreadValues$9 = (a, b) => {
6362
+ var __defProp$i = Object.defineProperty;
6363
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
6364
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
6365
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
6366
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6367
+ var __spreadValues$a = (a, b) => {
6249
6368
  for (var prop in b || (b = {}))
6250
- if (__hasOwnProp$a.call(b, prop))
6251
- __defNormalProp$h(a, prop, b[prop]);
6252
- if (__getOwnPropSymbols$a)
6253
- for (var prop of __getOwnPropSymbols$a(b)) {
6254
- if (__propIsEnum$a.call(b, prop))
6255
- __defNormalProp$h(a, prop, b[prop]);
6369
+ if (__hasOwnProp$b.call(b, prop))
6370
+ __defNormalProp$i(a, prop, b[prop]);
6371
+ if (__getOwnPropSymbols$b)
6372
+ for (var prop of __getOwnPropSymbols$b(b)) {
6373
+ if (__propIsEnum$b.call(b, prop))
6374
+ __defNormalProp$i(a, prop, b[prop]);
6256
6375
  }
6257
6376
  return a;
6258
6377
  };
6259
- var __publicField$b = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
6378
+ var __publicField$b = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
6260
6379
  var __async$a = (__this, __arguments, generator) => {
6261
6380
  return new Promise((resolve, reject) => {
6262
6381
  var fulfilled = (value) => {
@@ -6312,7 +6431,7 @@ var NgwMap = (function (exports) {
6312
6431
  connector: this.connector,
6313
6432
  webMap
6314
6433
  };
6315
- const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$9({
6434
+ const layer = yield webMap.addLayer(NgwWebmapLayerAdapter, __spreadValues$a({
6316
6435
  visibility: true,
6317
6436
  fit: true,
6318
6437
  pixelRadius: this.options.pixelRadius
@@ -6343,23 +6462,23 @@ var NgwMap = (function (exports) {
6343
6462
  }
6344
6463
  }
6345
6464
 
6346
- var __defProp$g = Object.defineProperty;
6347
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
6348
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
6349
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
6350
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6351
- var __spreadValues$8 = (a, b) => {
6465
+ var __defProp$h = Object.defineProperty;
6466
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
6467
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
6468
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
6469
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6470
+ var __spreadValues$9 = (a, b) => {
6352
6471
  for (var prop in b || (b = {}))
6353
- if (__hasOwnProp$9.call(b, prop))
6354
- __defNormalProp$g(a, prop, b[prop]);
6355
- if (__getOwnPropSymbols$9)
6356
- for (var prop of __getOwnPropSymbols$9(b)) {
6357
- if (__propIsEnum$9.call(b, prop))
6358
- __defNormalProp$g(a, prop, b[prop]);
6472
+ if (__hasOwnProp$a.call(b, prop))
6473
+ __defNormalProp$h(a, prop, b[prop]);
6474
+ if (__getOwnPropSymbols$a)
6475
+ for (var prop of __getOwnPropSymbols$a(b)) {
6476
+ if (__propIsEnum$a.call(b, prop))
6477
+ __defNormalProp$h(a, prop, b[prop]);
6359
6478
  }
6360
6479
  return a;
6361
6480
  };
6362
- var __publicField$a = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
6481
+ var __publicField$a = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
6363
6482
  var __async$9 = (__this, __arguments, generator) => {
6364
6483
  return new Promise((resolve, reject) => {
6365
6484
  var fulfilled = (value) => {
@@ -6407,7 +6526,7 @@ var NgwMap = (function (exports) {
6407
6526
  if (this._item) {
6408
6527
  return Promise.resolve(this._item);
6409
6528
  }
6410
- return fetchNgwLayerItem(__spreadValues$8({
6529
+ return fetchNgwLayerItem(__spreadValues$9({
6411
6530
  connector: this.connector,
6412
6531
  featureId: this.id,
6413
6532
  resourceId: this.layerId,
@@ -6446,7 +6565,7 @@ var NgwMap = (function (exports) {
6446
6565
  if (this._extent) {
6447
6566
  return Promise.resolve(this._extent);
6448
6567
  }
6449
- return fetchNgwLayerItemExtent(__spreadValues$8({
6568
+ return fetchNgwLayerItemExtent(__spreadValues$9({
6450
6569
  connector: this.connector,
6451
6570
  featureId: this.id,
6452
6571
  resourceId: this.layerId
@@ -6520,7 +6639,8 @@ var NgwMap = (function (exports) {
6520
6639
  component: "pyramid"
6521
6640
  }
6522
6641
  });
6523
- if (settings && settings.company_logo && settings.company_logo.enabled) {
6642
+ const company_logo = settings && "company_logo" in settings ? settings.company_logo : void 0;
6643
+ if (company_logo && company_logo.enabled) {
6524
6644
  const anchor = document.createElement("a");
6525
6645
  anchor.style.position = "absolute";
6526
6646
  anchor.style.bottom = "0";
@@ -6555,10 +6675,10 @@ var NgwMap = (function (exports) {
6555
6675
  } else {
6556
6676
  return;
6557
6677
  }
6558
- if (settings.company_logo.link !== null && settings.company_logo.link.trim() !== "") {
6559
- anchor.href = settings.company_logo.link;
6678
+ if (company_logo.link !== null && company_logo.link.trim() !== "") {
6679
+ anchor.href = company_logo.link;
6560
6680
  anchor.target = "_blank";
6561
- if (settings.company_logo.link.search(/:\/\/nextgis/) !== -1) {
6681
+ if (company_logo.link.search(/:\/\/nextgis/) !== -1) {
6562
6682
  img.alt = "Get your own Web GIS at nextgis.com";
6563
6683
  }
6564
6684
  }
@@ -6568,25 +6688,25 @@ var NgwMap = (function (exports) {
6568
6688
  });
6569
6689
  }
6570
6690
 
6571
- var __defProp$f = Object.defineProperty;
6572
- var __defProps$4 = Object.defineProperties;
6573
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
6574
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
6575
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
6576
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
6577
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6578
- var __spreadValues$7 = (a, b) => {
6691
+ var __defProp$g = Object.defineProperty;
6692
+ var __defProps$5 = Object.defineProperties;
6693
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
6694
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
6695
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
6696
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
6697
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6698
+ var __spreadValues$8 = (a, b) => {
6579
6699
  for (var prop in b || (b = {}))
6580
- if (__hasOwnProp$8.call(b, prop))
6581
- __defNormalProp$f(a, prop, b[prop]);
6582
- if (__getOwnPropSymbols$8)
6583
- for (var prop of __getOwnPropSymbols$8(b)) {
6584
- if (__propIsEnum$8.call(b, prop))
6585
- __defNormalProp$f(a, prop, b[prop]);
6700
+ if (__hasOwnProp$9.call(b, prop))
6701
+ __defNormalProp$g(a, prop, b[prop]);
6702
+ if (__getOwnPropSymbols$9)
6703
+ for (var prop of __getOwnPropSymbols$9(b)) {
6704
+ if (__propIsEnum$9.call(b, prop))
6705
+ __defNormalProp$g(a, prop, b[prop]);
6586
6706
  }
6587
6707
  return a;
6588
6708
  };
6589
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
6709
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
6590
6710
  function getIdentifyItems(identify, multiple = false) {
6591
6711
  const resources = [];
6592
6712
  const paramsList = [];
@@ -6649,7 +6769,7 @@ var NgwMap = (function (exports) {
6649
6769
  if (withGeom && withGeom.geom) {
6650
6770
  const geom = withGeom.geom;
6651
6771
  return Promise.resolve(
6652
- createGeoJsonFeature(__spreadProps$4(__spreadValues$7({}, withGeom), {
6772
+ createGeoJsonFeature(__spreadProps$5(__spreadValues$8({}, withGeom), {
6653
6773
  geom
6654
6774
  }))
6655
6775
  );
@@ -6659,7 +6779,7 @@ var NgwMap = (function (exports) {
6659
6779
  }
6660
6780
  const params = getIdentifyItems(identify);
6661
6781
  if (params && params.length) {
6662
- return fetchNgwLayerFeature(__spreadValues$7(__spreadProps$4(__spreadValues$7({}, requestOptions), { connector }), params[0]));
6782
+ return fetchNgwLayerFeature(__spreadValues$8(__spreadProps$5(__spreadValues$8({}, requestOptions), { connector }), params[0]));
6663
6783
  }
6664
6784
  return Promise.resolve(void 0);
6665
6785
  }
@@ -6667,7 +6787,7 @@ var NgwMap = (function (exports) {
6667
6787
  const { connector, identify } = options;
6668
6788
  const params = getIdentifyItems(identify);
6669
6789
  if (params && params.length) {
6670
- return fetchNgwLayerItem(__spreadValues$7(__spreadValues$7({
6790
+ return fetchNgwLayerItem(__spreadValues$8(__spreadValues$8({
6671
6791
  connector
6672
6792
  }, options.requestOptions), params[0]));
6673
6793
  }
@@ -6717,7 +6837,7 @@ var NgwMap = (function (exports) {
6717
6837
  const [lng, lat] = ev.lngLat;
6718
6838
  const { geom, radius } = options;
6719
6839
  const geom_ = geom != null ? geom : getCirclePolygonCoordinates(lng, lat, radius);
6720
- return featureLayerIdentify(__spreadProps$4(__spreadValues$7({}, options), { geom: geom_ }));
6840
+ return featureLayerIdentify(__spreadProps$5(__spreadValues$8({}, options), { geom: geom_ }));
6721
6841
  }
6722
6842
  function createIdentifyItem(opt) {
6723
6843
  return new IdentifyItem(opt);
@@ -6733,6 +6853,7 @@ var NgwMap = (function (exports) {
6733
6853
 
6734
6854
  function createToggleControl(createButtonControl, options) {
6735
6855
  const link = document.createElement("div");
6856
+ const statusListeners = /* @__PURE__ */ new Set();
6736
6857
  let status = false;
6737
6858
  if (options.getStatus) {
6738
6859
  status = options.getStatus();
@@ -6792,6 +6913,9 @@ var NgwMap = (function (exports) {
6792
6913
  _setClass(options.addClass, true);
6793
6914
  }
6794
6915
  setClass();
6916
+ function notifyStatusChange(control) {
6917
+ statusListeners.forEach((listener) => listener(status, control));
6918
+ }
6795
6919
  const changeStatus = (status_) => {
6796
6920
  if (status_ !== void 0) {
6797
6921
  status = status_;
@@ -6800,13 +6924,36 @@ var NgwMap = (function (exports) {
6800
6924
  setTitle();
6801
6925
  setClass();
6802
6926
  };
6927
+ const getStatus = () => status;
6803
6928
  const onClick = (status_) => {
6929
+ if (status_ === void 0 && status && buttonControl.disableOnSecondClick) {
6930
+ return;
6931
+ }
6932
+ const previousStatus = status;
6804
6933
  status = status_ !== void 0 ? status_ : !status;
6805
6934
  if (options.onClick) {
6806
- const afterClick = options.onClick(status);
6807
- Promise.resolve(afterClick).then(() => changeStatus()).catch(() => status = !status);
6935
+ let afterClick;
6936
+ try {
6937
+ afterClick = options.onClick(status);
6938
+ } catch (er) {
6939
+ status = previousStatus;
6940
+ changeStatus();
6941
+ throw er;
6942
+ }
6943
+ Promise.resolve(afterClick).then(() => {
6944
+ changeStatus();
6945
+ if (previousStatus !== status) {
6946
+ notifyStatusChange(buttonControl);
6947
+ }
6948
+ }).catch(() => {
6949
+ status = previousStatus;
6950
+ changeStatus();
6951
+ });
6808
6952
  } else {
6809
6953
  changeStatus();
6954
+ if (previousStatus !== status) {
6955
+ notifyStatusChange(buttonControl);
6956
+ }
6810
6957
  }
6811
6958
  };
6812
6959
  const buttonControl = createButtonControl({
@@ -6815,6 +6962,15 @@ var NgwMap = (function (exports) {
6815
6962
  });
6816
6963
  buttonControl.onClick = onClick;
6817
6964
  buttonControl.changeStatus = changeStatus;
6965
+ buttonControl.getStatus = getStatus;
6966
+ buttonControl.switch = options.switch;
6967
+ if (options.disableOnSecondClick !== void 0) {
6968
+ buttonControl.disableOnSecondClick = options.disableOnSecondClick;
6969
+ }
6970
+ buttonControl.onStatusChange = (listener) => {
6971
+ statusListeners.add(listener);
6972
+ return () => statusListeners.delete(listener);
6973
+ };
6818
6974
  return buttonControl;
6819
6975
  }
6820
6976
 
@@ -7439,19 +7595,19 @@ var NgwMap = (function (exports) {
7439
7595
  typeof: evaluateArgs(([arg]) => typeOfValue(arg))
7440
7596
  };
7441
7597
 
7442
- var __defProp$e = Object.defineProperty;
7443
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
7444
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
7445
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
7446
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7447
- var __spreadValues$6 = (a, b) => {
7598
+ var __defProp$f = Object.defineProperty;
7599
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
7600
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
7601
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
7602
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7603
+ var __spreadValues$7 = (a, b) => {
7448
7604
  for (var prop in b || (b = {}))
7449
- if (__hasOwnProp$7.call(b, prop))
7450
- __defNormalProp$e(a, prop, b[prop]);
7451
- if (__getOwnPropSymbols$7)
7452
- for (var prop of __getOwnPropSymbols$7(b)) {
7453
- if (__propIsEnum$7.call(b, prop))
7454
- __defNormalProp$e(a, prop, b[prop]);
7605
+ if (__hasOwnProp$8.call(b, prop))
7606
+ __defNormalProp$f(a, prop, b[prop]);
7607
+ if (__getOwnPropSymbols$8)
7608
+ for (var prop of __getOwnPropSymbols$8(b)) {
7609
+ if (__propIsEnum$8.call(b, prop))
7610
+ __defNormalProp$f(a, prop, b[prop]);
7455
7611
  }
7456
7612
  return a;
7457
7613
  };
@@ -7463,7 +7619,7 @@ var NgwMap = (function (exports) {
7463
7619
  }
7464
7620
  return false;
7465
7621
  }
7466
- const expressions = __spreadValues$6(__spreadValues$6(__spreadValues$6(__spreadValues$6(__spreadValues$6(__spreadValues$6({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
7622
+ const expressions = __spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7(__spreadValues$7({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
7467
7623
  function evaluate(expression, data = {}) {
7468
7624
  const [name, ...args] = expression;
7469
7625
  const expressionFun = expressions[name];
@@ -7476,19 +7632,19 @@ var NgwMap = (function (exports) {
7476
7632
  throw new Error(`Expression "${name}" is not supported.`);
7477
7633
  }
7478
7634
 
7479
- var __defProp$d = Object.defineProperty;
7480
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
7481
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
7482
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
7483
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7484
- var __spreadValues$5 = (a, b) => {
7635
+ var __defProp$e = Object.defineProperty;
7636
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
7637
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
7638
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
7639
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7640
+ var __spreadValues$6 = (a, b) => {
7485
7641
  for (var prop in b || (b = {}))
7486
- if (__hasOwnProp$6.call(b, prop))
7487
- __defNormalProp$d(a, prop, b[prop]);
7488
- if (__getOwnPropSymbols$6)
7489
- for (var prop of __getOwnPropSymbols$6(b)) {
7490
- if (__propIsEnum$6.call(b, prop))
7491
- __defNormalProp$d(a, prop, b[prop]);
7642
+ if (__hasOwnProp$7.call(b, prop))
7643
+ __defNormalProp$e(a, prop, b[prop]);
7644
+ if (__getOwnPropSymbols$7)
7645
+ for (var prop of __getOwnPropSymbols$7(b)) {
7646
+ if (__propIsEnum$7.call(b, prop))
7647
+ __defNormalProp$e(a, prop, b[prop]);
7492
7648
  }
7493
7649
  return a;
7494
7650
  };
@@ -7521,7 +7677,7 @@ var NgwMap = (function (exports) {
7521
7677
  for (const p in expressions) {
7522
7678
  fromCb[p] = expressions[p](feature);
7523
7679
  }
7524
- return __spreadValues$5(__spreadValues$5({}, paint), fromCb);
7680
+ return __spreadValues$6(__spreadValues$6({}, paint), fromCb);
7525
7681
  };
7526
7682
  }
7527
7683
  return;
@@ -7546,19 +7702,19 @@ var NgwMap = (function (exports) {
7546
7702
  return false;
7547
7703
  }
7548
7704
 
7549
- var __defProp$c = Object.defineProperty;
7550
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
7551
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
7552
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
7553
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7554
- var __spreadValues$4 = (a, b) => {
7705
+ var __defProp$d = Object.defineProperty;
7706
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
7707
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
7708
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
7709
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7710
+ var __spreadValues$5 = (a, b) => {
7555
7711
  for (var prop in b || (b = {}))
7556
- if (__hasOwnProp$5.call(b, prop))
7557
- __defNormalProp$c(a, prop, b[prop]);
7558
- if (__getOwnPropSymbols$5)
7559
- for (var prop of __getOwnPropSymbols$5(b)) {
7560
- if (__propIsEnum$5.call(b, prop))
7561
- __defNormalProp$c(a, prop, b[prop]);
7712
+ if (__hasOwnProp$6.call(b, prop))
7713
+ __defNormalProp$d(a, prop, b[prop]);
7714
+ if (__getOwnPropSymbols$6)
7715
+ for (var prop of __getOwnPropSymbols$6(b)) {
7716
+ if (__propIsEnum$6.call(b, prop))
7717
+ __defNormalProp$d(a, prop, b[prop]);
7562
7718
  }
7563
7719
  return a;
7564
7720
  };
@@ -7587,7 +7743,7 @@ var NgwMap = (function (exports) {
7587
7743
  return (feature) => {
7588
7744
  const paint = paintsFilters.find((x) => featureFilter(feature, x[0]));
7589
7745
  if (paint) {
7590
- return __spreadValues$4(__spreadValues$4({}, mask), paint[1]);
7746
+ return __spreadValues$5(__spreadValues$5({}, mask), paint[1]);
7591
7747
  }
7592
7748
  return mask;
7593
7749
  };
@@ -7611,8 +7767,8 @@ var NgwMap = (function (exports) {
7611
7767
  }
7612
7768
  function finalizePaint({ paint, defaultPaint }) {
7613
7769
  var _a;
7614
- let newPaint = __spreadValues$4({}, defaultPaint);
7615
- newPaint = __spreadValues$4(__spreadValues$4({}, newPaint), paint);
7770
+ let newPaint = __spreadValues$5({}, defaultPaint);
7771
+ newPaint = __spreadValues$5(__spreadValues$5({}, newPaint), paint);
7616
7772
  newPaint.fill = (_a = newPaint.fill) != null ? _a : true;
7617
7773
  newPaint.stroke = newPaint.stroke !== void 0 ? newPaint.stroke : !newPaint.fill || !!(newPaint.strokeColor || newPaint.strokeOpacity);
7618
7774
  return newPaint;
@@ -7625,7 +7781,7 @@ var NgwMap = (function (exports) {
7625
7781
  if (!paint) {
7626
7782
  throw new Error("paint is empty");
7627
7783
  }
7628
- let newPaint = __spreadValues$4({}, defaultPaint);
7784
+ let newPaint = __spreadValues$5({}, defaultPaint);
7629
7785
  if (isPaintCallback(paint)) {
7630
7786
  const getPaintFunction = (feature) => {
7631
7787
  const getPaint = preparePaint({
@@ -7741,9 +7897,9 @@ var NgwMap = (function (exports) {
7741
7897
  return opt;
7742
7898
  }
7743
7899
 
7744
- var __defProp$b = Object.defineProperty;
7745
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7746
- var __publicField$9 = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
7900
+ var __defProp$c = Object.defineProperty;
7901
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7902
+ var __publicField$9 = (obj, key, value) => __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
7747
7903
  class KeyCodes {
7748
7904
  constructor() {
7749
7905
  __publicField$9(this, "backspace", 8);
@@ -7820,9 +7976,9 @@ var NgwMap = (function (exports) {
7820
7976
  // "single quote"
7821
7977
  }
7822
7978
 
7823
- var __defProp$a = Object.defineProperty;
7824
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7825
- var __publicField$8 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
7979
+ var __defProp$b = Object.defineProperty;
7980
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7981
+ var __publicField$8 = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
7826
7982
  class Keys {
7827
7983
  constructor() {
7828
7984
  __publicField$8(this, "keyCodeAlias", new KeyCodes());
@@ -7868,9 +8024,9 @@ var NgwMap = (function (exports) {
7868
8024
  }
7869
8025
  }
7870
8026
 
7871
- var __defProp$9 = Object.defineProperty;
7872
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7873
- var __publicField$7 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
8027
+ var __defProp$a = Object.defineProperty;
8028
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8029
+ var __publicField$7 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
7874
8030
  class StateItem {
7875
8031
  constructor(webMap, opt) {
7876
8032
  this.webMap = webMap;
@@ -7901,9 +8057,9 @@ var NgwMap = (function (exports) {
7901
8057
  }
7902
8058
  }
7903
8059
 
7904
- var __defProp$8 = Object.defineProperty;
7905
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7906
- var __publicField$6 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
8060
+ var __defProp$9 = Object.defineProperty;
8061
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8062
+ var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
7907
8063
  class BoundState extends StateItem {
7908
8064
  constructor() {
7909
8065
  super(...arguments);
@@ -7929,9 +8085,9 @@ var NgwMap = (function (exports) {
7929
8085
  }
7930
8086
  }
7931
8087
 
7932
- var __defProp$7 = Object.defineProperty;
7933
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7934
- var __publicField$5 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
8088
+ var __defProp$8 = Object.defineProperty;
8089
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8090
+ var __publicField$5 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
7935
8091
  class CenterState extends StateItem {
7936
8092
  constructor() {
7937
8093
  super(...arguments);
@@ -7958,9 +8114,9 @@ var NgwMap = (function (exports) {
7958
8114
  }
7959
8115
  }
7960
8116
 
7961
- var __defProp$6 = Object.defineProperty;
7962
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7963
- var __publicField$4 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
8117
+ var __defProp$7 = Object.defineProperty;
8118
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8119
+ var __publicField$4 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
7964
8120
  class ZoomState extends StateItem {
7965
8121
  constructor() {
7966
8122
  super(...arguments);
@@ -7988,9 +8144,9 @@ var NgwMap = (function (exports) {
7988
8144
  }
7989
8145
  }
7990
8146
 
7991
- var __defProp$5 = Object.defineProperty;
7992
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
7993
- var __publicField$3 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
8147
+ var __defProp$6 = Object.defineProperty;
8148
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8149
+ var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
7994
8150
  var __async$6 = (__this, __arguments, generator) => {
7995
8151
  return new Promise((resolve, reject) => {
7996
8152
  var fulfilled = (value) => {
@@ -8537,26 +8693,26 @@ var NgwMap = (function (exports) {
8537
8693
  __publicField$3(_WebMapMain, "getPaintFunctions");
8538
8694
  let WebMapMain = _WebMapMain;
8539
8695
 
8540
- var __defProp$4 = Object.defineProperty;
8541
- var __defProps$3 = Object.defineProperties;
8542
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
8543
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
8544
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
8545
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
8546
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8547
- var __spreadValues$3 = (a, b) => {
8696
+ var __defProp$5 = Object.defineProperty;
8697
+ var __defProps$4 = Object.defineProperties;
8698
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
8699
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
8700
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
8701
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
8702
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8703
+ var __spreadValues$4 = (a, b) => {
8548
8704
  for (var prop in b || (b = {}))
8549
- if (__hasOwnProp$4.call(b, prop))
8550
- __defNormalProp$4(a, prop, b[prop]);
8551
- if (__getOwnPropSymbols$4)
8552
- for (var prop of __getOwnPropSymbols$4(b)) {
8553
- if (__propIsEnum$4.call(b, prop))
8554
- __defNormalProp$4(a, prop, b[prop]);
8705
+ if (__hasOwnProp$5.call(b, prop))
8706
+ __defNormalProp$5(a, prop, b[prop]);
8707
+ if (__getOwnPropSymbols$5)
8708
+ for (var prop of __getOwnPropSymbols$5(b)) {
8709
+ if (__propIsEnum$5.call(b, prop))
8710
+ __defNormalProp$5(a, prop, b[prop]);
8555
8711
  }
8556
8712
  return a;
8557
8713
  };
8558
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
8559
- var __publicField$2 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
8714
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
8715
+ var __publicField$2 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
8560
8716
  var __async$5 = (__this, __arguments, generator) => {
8561
8717
  return new Promise((resolve, reject) => {
8562
8718
  var fulfilled = (value) => {
@@ -8691,7 +8847,7 @@ var NgwMap = (function (exports) {
8691
8847
  return __async$5(this, null, function* () {
8692
8848
  const layer = yield this.addLayer(
8693
8849
  adapter,
8694
- __spreadProps$3(__spreadValues$3({}, options), {
8850
+ __spreadProps$4(__spreadValues$4({}, options), {
8695
8851
  baselayer: true
8696
8852
  }),
8697
8853
  void 0
@@ -8728,7 +8884,7 @@ var NgwMap = (function (exports) {
8728
8884
  }
8729
8885
  const geoJsonOptions = options;
8730
8886
  this._updateGeoJsonOptions(geoJsonOptions);
8731
- options = __spreadValues$3({
8887
+ options = __spreadValues$4({
8732
8888
  id: String(id),
8733
8889
  order: _order
8734
8890
  }, options);
@@ -8753,7 +8909,7 @@ var NgwMap = (function (exports) {
8753
8909
  }
8754
8910
  if (adapterEngine !== void 0) {
8755
8911
  const _adapter = new adapterEngine(this.mapAdapter.map, options);
8756
- _adapter.options = __spreadValues$3(__spreadValues$3({}, options), _adapter.options);
8912
+ _adapter.options = __spreadValues$4(__spreadValues$4({}, options), _adapter.options);
8757
8913
  if (_adapter.options.baselayer) {
8758
8914
  options.baselayer = true;
8759
8915
  options.order = 0;
@@ -8940,7 +9096,7 @@ var NgwMap = (function (exports) {
8940
9096
  }
8941
9097
  /** Shortcut for {@link WebMapLayers.addLayer} to create TileLayer adapter */
8942
9098
  addTileLayer(url, options = {}) {
8943
- return this.addLayer("TILE", __spreadProps$3(__spreadValues$3({}, options), { url }));
9099
+ return this.addLayer("TILE", __spreadProps$4(__spreadValues$4({}, options), { url }));
8944
9100
  }
8945
9101
  addImageLayer(urlOrOptions, options) {
8946
9102
  let url;
@@ -8950,7 +9106,7 @@ var NgwMap = (function (exports) {
8950
9106
  url = urlOrOptions.url;
8951
9107
  options = urlOrOptions;
8952
9108
  }
8953
- return this.addLayer("IMAGE", __spreadProps$3(__spreadValues$3({}, options), { url }));
9109
+ return this.addLayer("IMAGE", __spreadProps$4(__spreadValues$4({}, options), { url }));
8954
9110
  }
8955
9111
  /**
8956
9112
  * Show added layer on the map by it definition.
@@ -9413,9 +9569,24 @@ var NgwMap = (function (exports) {
9413
9569
  }
9414
9570
  }
9415
9571
 
9416
- var __defProp$3 = Object.defineProperty;
9417
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9418
- var __publicField$1 = (obj, key, value) => __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
9572
+ var __defProp$4 = Object.defineProperty;
9573
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
9574
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
9575
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
9576
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9577
+ var __objRest$1 = (source, exclude) => {
9578
+ var target = {};
9579
+ for (var prop in source)
9580
+ if (__hasOwnProp$4.call(source, prop) && exclude.indexOf(prop) < 0)
9581
+ target[prop] = source[prop];
9582
+ if (source != null && __getOwnPropSymbols$4)
9583
+ for (var prop of __getOwnPropSymbols$4(source)) {
9584
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$4.call(source, prop))
9585
+ target[prop] = source[prop];
9586
+ }
9587
+ return target;
9588
+ };
9589
+ var __publicField$1 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
9419
9590
  var __async$4 = (__this, __arguments, generator) => {
9420
9591
  return new Promise((resolve, reject) => {
9421
9592
  var fulfilled = (value) => {
@@ -9443,21 +9614,24 @@ var NgwMap = (function (exports) {
9443
9614
  "top-right": [],
9444
9615
  "bottom-right": [],
9445
9616
  "top-left": [],
9446
- "bottom-left": []
9617
+ "bottom-left": [],
9618
+ inside: []
9447
9619
  });
9448
9620
  __publicField$1(this, "_isControlLoading", {
9449
9621
  "top-right": false,
9450
9622
  "bottom-right": false,
9451
9623
  "top-left": false,
9452
- "bottom-left": false
9624
+ "bottom-left": false,
9625
+ inside: false
9453
9626
  });
9454
9627
  }
9455
9628
  addControl(controlDef, position, options) {
9456
9629
  return __async$4(this, null, function* () {
9457
9630
  let control;
9631
+ const { addOptions, createOptions } = this._splitControlOptions(options);
9458
9632
  position = position != null ? position : "top-left";
9459
9633
  if (typeof controlDef === "string") {
9460
- control = this.getControl(controlDef, options);
9634
+ control = this.getControl(controlDef, createOptions);
9461
9635
  } else {
9462
9636
  control = controlDef;
9463
9637
  }
@@ -9465,10 +9639,10 @@ var NgwMap = (function (exports) {
9465
9639
  return new Promise((resolve) => {
9466
9640
  const promise = () => __async$4(this, null, function* () {
9467
9641
  const _control = yield control;
9468
- const c = this.mapAdapter.addControl(_control, position);
9642
+ const c = this.mapAdapter.addControl(_control, position, addOptions);
9469
9643
  resolve(c);
9470
9644
  });
9471
- this._setControlQueue(position, promise);
9645
+ this._setControlQueue(this._getControlQueueKey(position), promise);
9472
9646
  });
9473
9647
  }
9474
9648
  });
@@ -9570,6 +9744,9 @@ var NgwMap = (function (exports) {
9570
9744
  return this.mapAdapter.getControlContainer();
9571
9745
  }
9572
9746
  }
9747
+ _getControlQueueKey(position) {
9748
+ return typeof position === "string" ? position : "inside";
9749
+ }
9573
9750
  _setControlQueue(position, cb) {
9574
9751
  this._loadControlQueue[position].push(cb);
9575
9752
  if (!this._isControlLoading[position]) {
@@ -9589,6 +9766,20 @@ var NgwMap = (function (exports) {
9589
9766
  }
9590
9767
  });
9591
9768
  }
9769
+ _splitControlOptions(options) {
9770
+ if (!options) {
9771
+ return {};
9772
+ }
9773
+ const _a = options, { id, order } = _a, createOptions = __objRest$1(_a, ["id", "order"]);
9774
+ const addOptions = this._getAddControlOptions(id, order);
9775
+ return {
9776
+ addOptions,
9777
+ createOptions
9778
+ };
9779
+ }
9780
+ _getAddControlOptions(id, order) {
9781
+ return id !== void 0 || order !== void 0 ? { id, order } : void 0;
9782
+ }
9592
9783
  };
9593
9784
  __publicField$1(_WebMapControls, "controls", {
9594
9785
  CONTROL: (webMap, options) => {
@@ -9603,10 +9794,26 @@ var NgwMap = (function (exports) {
9603
9794
  });
9604
9795
  let WebMapControls = _WebMapControls;
9605
9796
 
9797
+ var __defProp$3 = Object.defineProperty;
9798
+ var __defProps$3 = Object.defineProperties;
9799
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
9606
9800
  var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
9607
9801
  var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
9608
9802
  var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
9609
9803
  var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
9804
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9805
+ var __spreadValues$3 = (a, b) => {
9806
+ for (var prop in b || (b = {}))
9807
+ if (__hasOwnProp$3.call(b, prop))
9808
+ __defNormalProp$3(a, prop, b[prop]);
9809
+ if (__getOwnPropSymbols$3)
9810
+ for (var prop of __getOwnPropSymbols$3(b)) {
9811
+ if (__propIsEnum$3.call(b, prop))
9812
+ __defNormalProp$3(a, prop, b[prop]);
9813
+ }
9814
+ return a;
9815
+ };
9816
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
9610
9817
  var __objRest = (source, exclude) => {
9611
9818
  var target = {};
9612
9819
  for (var prop in source)
@@ -9734,8 +9941,11 @@ var NgwMap = (function (exports) {
9734
9941
  }
9735
9942
  }
9736
9943
  }
9737
- const _a = controlOptions, { position } = _a, options = __objRest(_a, ["position"]);
9738
- this.addControl(controlAdapterName, position || "top-left", options);
9944
+ const _a = controlOptions, { id, order, position } = _a, options = __objRest(_a, ["id", "order", "position"]);
9945
+ this.addControl(controlAdapterName, position || "top-left", __spreadProps$3(__spreadValues$3({}, options), {
9946
+ id,
9947
+ order
9948
+ }));
9739
9949
  });
9740
9950
  }
9741
9951
  this._emitStatusEvent("controls:create");
@@ -9986,7 +10196,7 @@ var NgwMap = (function (exports) {
9986
10196
  addNgwLayer(options) {
9987
10197
  return __async$1(this, null, function* () {
9988
10198
  yield this.onMapLoad();
9989
- const { keyname, resourceId } = options;
10199
+ const { keyname, resourceId, filters } = options;
9990
10200
  if (keyname || resourceId !== void 0) {
9991
10201
  deprecatedWarn(
9992
10202
  "set `resource` options instead of `keyname` or `resourceId`"
@@ -10000,12 +10210,15 @@ var NgwMap = (function (exports) {
10000
10210
  }
10001
10211
  if (defined(this.options.baseUrl)) {
10002
10212
  try {
10213
+ options.adapterOptions = options.adapterOptions || {};
10003
10214
  if (defined(this.options.setViewDelay)) {
10004
- options.adapterOptions = options.adapterOptions || {};
10005
10215
  if (!defined(options.adapterOptions.setViewDelay)) {
10006
10216
  options.adapterOptions.setViewDelay = this.options.setViewDelay;
10007
10217
  }
10008
10218
  }
10219
+ if (defined(filters)) {
10220
+ options.adapterOptions.propertiesFilter = filters;
10221
+ }
10009
10222
  const adapter = createNgwLayerAdapter(options, this, this.connector);
10010
10223
  const adapterOpts = __spreadValues(__spreadValues({
10011
10224
  visibility: true
@@ -10097,7 +10310,6 @@ var NgwMap = (function (exports) {
10097
10310
  const promise = fetchIdentifyGeoJson({
10098
10311
  identify,
10099
10312
  connector: this.connector,
10100
- multiple,
10101
10313
  requestOptions: { signal: abortController.signal }
10102
10314
  });
10103
10315
  if (promise && "then" in promise) {