@nextgis/ngw-leaflet 4.0.0-alpha.2 → 4.0.0-alpha.4

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-leaflet; version: 4.0.0-alpha.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 4.0.0-alpha.4; author: NextGIS */
2
2
  var NgwLeaflet = (function () {
3
3
  'use strict';
4
4
 
@@ -16,29 +16,29 @@ var NgwLeaflet = (function () {
16
16
  return el;
17
17
  }
18
18
 
19
- var __defProp$19 = Object.defineProperty;
20
- var __defProps$u = Object.defineProperties;
21
- var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
22
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
23
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
24
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
25
- var __defNormalProp$19 = (obj, key, value) => key in obj ? __defProp$19(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
26
- var __spreadValues$N = (a, b) => {
19
+ var __defProp$1a = Object.defineProperty;
20
+ var __defProps$v = Object.defineProperties;
21
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
22
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
23
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
24
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
25
+ var __defNormalProp$1a = (obj, key, value) => key in obj ? __defProp$1a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
26
+ var __spreadValues$M = (a, b) => {
27
27
  for (var prop in b || (b = {}))
28
- if (__hasOwnProp$O.call(b, prop))
29
- __defNormalProp$19(a, prop, b[prop]);
30
- if (__getOwnPropSymbols$O)
31
- for (var prop of __getOwnPropSymbols$O(b)) {
32
- if (__propIsEnum$O.call(b, prop))
33
- __defNormalProp$19(a, prop, b[prop]);
28
+ if (__hasOwnProp$N.call(b, prop))
29
+ __defNormalProp$1a(a, prop, b[prop]);
30
+ if (__getOwnPropSymbols$N)
31
+ for (var prop of __getOwnPropSymbols$N(b)) {
32
+ if (__propIsEnum$N.call(b, prop))
33
+ __defNormalProp$1a(a, prop, b[prop]);
34
34
  }
35
35
  return a;
36
36
  };
37
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
37
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
38
38
  const controlOptions = /* @__PURE__ */ new WeakMap();
39
39
  function resolveControlOptions(options = {}) {
40
40
  var _a;
41
- return __spreadProps$u(__spreadValues$N({}, options), {
41
+ return __spreadProps$v(__spreadValues$M({}, options), {
42
42
  margin: (_a = options.margin) != null ? _a : options.bar
43
43
  });
44
44
  }
@@ -79,25 +79,25 @@ var NgwLeaflet = (function () {
79
79
  var css_248z$2 = ".webmap-ctrl-bottom-left,.webmap-ctrl-bottom-right,.webmap-ctrl-left,.webmap-ctrl-right,.webmap-ctrl-top-left,.webmap-ctrl-top-right{pointer-events:none;position:absolute;z-index:9999}.webmap-ctrl-left,.webmap-ctrl-right{height:100%}.webmap-ctrl-left{padding-right:0}.webmap-ctrl-right{padding-left:0}.webmap-ctrl-top-left{left:0;top:0}.webmap-ctrl-top-right{right:0;top:0}.webmap-ctrl-bottom-left{bottom:0;left:0}.webmap-ctrl-bottom-right{bottom:0;right:0}.webmap-ctrl,.webmap-ctrl-wrapper{clear:both;pointer-events:auto;transform:translate(0)}.webmap-ctrl-top-left>.webmap-ctrl,.webmap-ctrl-top-left>.webmap-ctrl-wrapper{float:left}.webmap-ctrl-top-right>.webmap-ctrl,.webmap-ctrl-top-right>.webmap-ctrl-wrapper{float:right}.webmap-ctrl-bottom-left>.webmap-ctrl,.webmap-ctrl-bottom-left>.webmap-ctrl-wrapper{float:left}.webmap-ctrl-bottom-right>.webmap-ctrl,.webmap-ctrl-bottom-right>.webmap-ctrl-wrapper{float:right}.webmap-ctrl-top-left>.webmap-ctrl-margin{margin:10px 0 0 10px}.webmap-ctrl-top-right>.webmap-ctrl-margin{margin:10px 10px 0 0}.webmap-ctrl-bottom-left>.webmap-ctrl-margin{margin:0 0 10px 10px}.webmap-ctrl-bottom-right>.webmap-ctrl-margin{margin:0 10px 10px 0}.webmap-ctrl-group{background:#fff;border-radius:4px}.webmap-ctrl .webmap-ctrl-wrapper{clear:none;float:none;margin:0}.webmap-ctrl .webmap-ctrl-wrapper>.webmap-ctrl,.webmap-ctrl>.webmap-ctrl{clear:none;float:none;margin:0!important}.webmap-ctrl-horizontal,.webmap-ctrl-vertical{display:flex}.webmap-ctrl-vertical{align-items:var(--webmap-ctrl-align,flex-start);flex-direction:column}.webmap-ctrl-horizontal{align-items:var(--webmap-ctrl-align,stretch);flex-direction:row}.webmap-ctrl:not(.webmap-ctrl-group).webmap-ctrl-horizontal,.webmap-ctrl:not(.webmap-ctrl-group).webmap-ctrl-vertical{gap:var(--webmap-ctrl-gap,0)}.webmap-ctrl-gapless:not(.webmap-ctrl-group){background:#fff;border:2px solid rgba(0,0,0,.1);border-radius:4px;box-sizing:border-box;overflow:hidden}.webmap-ctrl-gapless:not(.webmap-ctrl-group):not(:empty){box-shadow:none}.webmap-ctrl-gapless>.webmap-ctrl-group,.webmap-ctrl-gapless>.webmap-ctrl-wrapper>.webmap-ctrl-group{border:0!important;border-radius:0;box-shadow:none!important}.webmap-ctrl-gapless>.leaflet-bar,.webmap-ctrl-gapless>.maplibregl-ctrl-group,.webmap-ctrl-gapless>.ol-control,.webmap-ctrl-gapless>.webmap-ctrl,.webmap-ctrl-gapless>.webmap-ctrl-wrapper>.leaflet-bar,.webmap-ctrl-gapless>.webmap-ctrl-wrapper>.maplibregl-ctrl-group,.webmap-ctrl-gapless>.webmap-ctrl-wrapper>.ol-control,.webmap-ctrl-gapless>.webmap-ctrl-wrapper>.webmap-ctrl{border:0!important;box-shadow:none!important}.webmap-ctrl-gapless.webmap-ctrl-horizontal>.webmap-ctrl-group:first-child,.webmap-ctrl-gapless.webmap-ctrl-horizontal>.webmap-ctrl-wrapper:first-child>.webmap-ctrl-group{border-radius:4px 0 0 4px}.webmap-ctrl-gapless.webmap-ctrl-horizontal>.webmap-ctrl-group:last-child,.webmap-ctrl-gapless.webmap-ctrl-horizontal>.webmap-ctrl-wrapper:last-child>.webmap-ctrl-group{border-radius:0 4px 4px 0}.webmap-ctrl-gapless.webmap-ctrl-vertical>.webmap-ctrl-group:first-child,.webmap-ctrl-gapless.webmap-ctrl-vertical>.webmap-ctrl-wrapper:first-child>.webmap-ctrl-group{border-radius:4px 4px 0 0}.webmap-ctrl-gapless.webmap-ctrl-vertical>.webmap-ctrl-group:last-child,.webmap-ctrl-gapless.webmap-ctrl-vertical>.webmap-ctrl-wrapper:last-child>.webmap-ctrl-group{border-radius:0 0 4px 4px}.webmap-ctrl-gapless>.webmap-ctrl-group:only-child,.webmap-ctrl-gapless>.webmap-ctrl-wrapper:only-child>.webmap-ctrl-group{border-radius:4px}.webmap-ctrl-horizontal>.webmap-ctrl-wrapper,.webmap-ctrl-vertical>.webmap-ctrl-wrapper{display:flex}.webmap-ctrl-group:not(:empty){box-shadow:0 0 0 2px rgba(0,0,0,.1)}@media (-ms-high-contrast:active){.webmap-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}.webmap-ctrl-gapless:not(.webmap-ctrl-group){border-color:ButtonText}}.webmap-ctrl-gapless>.webmap-ctrl-group:not(:empty),.webmap-ctrl-gapless>.webmap-ctrl-wrapper>.webmap-ctrl-group:not(:empty){border:0!important;box-shadow:none!important}.webmap-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;padding:0;width:29px}.webmap-ctrl-button{font-weight:400!important;line-height:inherit!important}.webmap-ctrl-group button+button{border-top:1px solid #ddd}.webmap-ctrl-group.webmap-ctrl-horizontal>button+button{border-left:1px solid #ddd;border-top:0}.webmap-ctrl-gapless .webmap-ctrl-group button+button,.webmap-ctrl-group.webmap-ctrl-gapless button+button{border-left:0!important;border-top:0!important}.webmap-ctrl-gapless .webmap-ctrl-group button{border:0!important;border-radius:0!important;box-shadow:none!important}.webmap-ctrl button .webmap-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.webmap-ctrl-icon{background-color:transparent}.webmap-ctrl-group button+button{border-top:1px solid ButtonText}}.webmap-ctrl button::-moz-focus-inner{border:0;padding:0}.webmap-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.webmap-ctrl button:disabled{cursor:not-allowed}.webmap-ctrl button:disabled .webmap-ctrl-icon{opacity:.25}.webmap-ctrl button:not(:disabled):hover{background-color:rgba(0,0,0,.05)}.webmap-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.webmap-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.webmap-ctrl-group button:focus:first-child{border-radius:4px 4px 0 0}.webmap-ctrl-group button:focus:last-child{border-radius:0 0 4px 4px}.webmap-ctrl-group button:focus:only-child{border-radius:inherit}.webmap-ctrl button.webmap-ctrl-zoom-out .webmap-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.webmap-ctrl button.webmap-ctrl-zoom-in .webmap-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}@media (-ms-high-contrast:active){.webmap-ctrl button.webmap-ctrl-zoom-out .webmap-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.webmap-ctrl button.webmap-ctrl-zoom-in .webmap-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}@media (-ms-high-contrast:black-on-white){.webmap-ctrl button.webmap-ctrl-zoom-out .webmap-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13z'/%3E%3C/svg%3E\")}.webmap-ctrl button.webmap-ctrl-zoom-in .webmap-ctrl-icon{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='29' height='29' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5'/%3E%3C/svg%3E\")}}";
80
80
  styleInject(css_248z$2);
81
81
 
82
- var __defProp$18 = Object.defineProperty;
83
- var __defNormalProp$18 = (obj, key, value) => key in obj ? __defProp$18(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
84
- var __publicField$L = (obj, key, value) => __defNormalProp$18(obj, typeof key !== "symbol" ? key + "" : key, value);
82
+ var __defProp$19 = Object.defineProperty;
83
+ var __defNormalProp$19 = (obj, key, value) => key in obj ? __defProp$19(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
84
+ var __publicField$M = (obj, key, value) => __defNormalProp$19(obj, typeof key !== "symbol" ? key + "" : key, value);
85
85
  class ControlContainer {
86
86
  constructor(opt = {}) {
87
- __publicField$L(this, "classPrefix", "webmap");
88
- __publicField$L(this, "addClass");
89
- __publicField$L(this, "map");
90
- __publicField$L(this, "wrapperClass");
91
- __publicField$L(this, "ownsContainer");
92
- __publicField$L(this, "_container");
93
- __publicField$L(this, "_positionsContainers");
94
- __publicField$L(this, "_targets", /* @__PURE__ */ new Set());
95
- __publicField$L(this, "_idContainers", /* @__PURE__ */ new Map());
96
- __publicField$L(this, "_pendingChildren", /* @__PURE__ */ new Map());
97
- __publicField$L(this, "_orders", /* @__PURE__ */ new WeakMap());
98
- __publicField$L(this, "_targetOptions", /* @__PURE__ */ new WeakMap());
99
- __publicField$L(this, "_switchGroups", /* @__PURE__ */ new WeakMap());
100
- __publicField$L(this, "_switchBindings", /* @__PURE__ */ new WeakMap());
87
+ __publicField$M(this, "classPrefix", "webmap");
88
+ __publicField$M(this, "addClass");
89
+ __publicField$M(this, "map");
90
+ __publicField$M(this, "wrapperClass");
91
+ __publicField$M(this, "ownsContainer");
92
+ __publicField$M(this, "_container");
93
+ __publicField$M(this, "_positionsContainers");
94
+ __publicField$M(this, "_targets", /* @__PURE__ */ new Set());
95
+ __publicField$M(this, "_idContainers", /* @__PURE__ */ new Map());
96
+ __publicField$M(this, "_pendingChildren", /* @__PURE__ */ new Map());
97
+ __publicField$M(this, "_orders", /* @__PURE__ */ new WeakMap());
98
+ __publicField$M(this, "_targetOptions", /* @__PURE__ */ new WeakMap());
99
+ __publicField$M(this, "_switchGroups", /* @__PURE__ */ new WeakMap());
100
+ __publicField$M(this, "_switchBindings", /* @__PURE__ */ new WeakMap());
101
101
  this.classPrefix = opt.classPrefix || this.classPrefix;
102
102
  this.addClass = opt.addClass;
103
103
  this.map = opt.map;
@@ -14703,25 +14703,25 @@ var NgwLeaflet = (function () {
14703
14703
 
14704
14704
  var leafletSrcExports = requireLeafletSrc();
14705
14705
 
14706
- var __defProp$17 = Object.defineProperty;
14707
- var __defProps$t = Object.defineProperties;
14708
- var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
14709
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
14710
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
14711
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
14712
- var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14713
- var __spreadValues$M = (a, b) => {
14706
+ var __defProp$18 = Object.defineProperty;
14707
+ var __defProps$u = Object.defineProperties;
14708
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
14709
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
14710
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
14711
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
14712
+ var __defNormalProp$18 = (obj, key, value) => key in obj ? __defProp$18(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14713
+ var __spreadValues$L = (a, b) => {
14714
14714
  for (var prop in b || (b = {}))
14715
- if (__hasOwnProp$N.call(b, prop))
14716
- __defNormalProp$17(a, prop, b[prop]);
14717
- if (__getOwnPropSymbols$N)
14718
- for (var prop of __getOwnPropSymbols$N(b)) {
14719
- if (__propIsEnum$N.call(b, prop))
14720
- __defNormalProp$17(a, prop, b[prop]);
14715
+ if (__hasOwnProp$M.call(b, prop))
14716
+ __defNormalProp$18(a, prop, b[prop]);
14717
+ if (__getOwnPropSymbols$M)
14718
+ for (var prop of __getOwnPropSymbols$M(b)) {
14719
+ if (__propIsEnum$M.call(b, prop))
14720
+ __defNormalProp$18(a, prop, b[prop]);
14721
14721
  }
14722
14722
  return a;
14723
14723
  };
14724
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
14724
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
14725
14725
  function createControl(control, options = {}, map) {
14726
14726
  const resolvedOptions = resolveControlOptions(options);
14727
14727
  const C = leafletSrcExports.Control.extend({
@@ -14733,7 +14733,7 @@ var NgwLeaflet = (function () {
14733
14733
  ].filter(Boolean).join(" ");
14734
14734
  const element = createControlElement(
14735
14735
  control,
14736
- __spreadProps$t(__spreadValues$M({}, resolvedOptions), { addClass }),
14736
+ __spreadProps$u(__spreadValues$L({}, resolvedOptions), { addClass }),
14737
14737
  map != null ? map : leafletMap
14738
14738
  );
14739
14739
  if (!resolvedOptions.margin) {
@@ -14780,32 +14780,32 @@ var NgwLeaflet = (function () {
14780
14780
  return control;
14781
14781
  }
14782
14782
 
14783
- var __defProp$16 = Object.defineProperty;
14784
- var __defProps$s = Object.defineProperties;
14785
- var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
14786
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
14787
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
14788
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
14789
- var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14790
- var __spreadValues$L = (a, b) => {
14783
+ var __defProp$17 = Object.defineProperty;
14784
+ var __defProps$t = Object.defineProperties;
14785
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
14786
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
14787
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
14788
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
14789
+ var __defNormalProp$17 = (obj, key, value) => key in obj ? __defProp$17(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14790
+ var __spreadValues$K = (a, b) => {
14791
14791
  for (var prop in b || (b = {}))
14792
- if (__hasOwnProp$M.call(b, prop))
14793
- __defNormalProp$16(a, prop, b[prop]);
14794
- if (__getOwnPropSymbols$M)
14795
- for (var prop of __getOwnPropSymbols$M(b)) {
14796
- if (__propIsEnum$M.call(b, prop))
14797
- __defNormalProp$16(a, prop, b[prop]);
14792
+ if (__hasOwnProp$L.call(b, prop))
14793
+ __defNormalProp$17(a, prop, b[prop]);
14794
+ if (__getOwnPropSymbols$L)
14795
+ for (var prop of __getOwnPropSymbols$L(b)) {
14796
+ if (__propIsEnum$L.call(b, prop))
14797
+ __defNormalProp$17(a, prop, b[prop]);
14798
14798
  }
14799
14799
  return a;
14800
14800
  };
14801
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
14802
- var __publicField$K = (obj, key, value) => __defNormalProp$16(obj, typeof key !== "symbol" ? key + "" : key, value);
14801
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
14802
+ var __publicField$L = (obj, key, value) => __defNormalProp$17(obj, typeof key !== "symbol" ? key + "" : key, value);
14803
14803
  class LeafletControlContainer {
14804
14804
  constructor(map, options = {}) {
14805
- __publicField$K(this, "map");
14806
- __publicField$K(this, "controlContainer");
14807
- __publicField$K(this, "targets", /* @__PURE__ */ new WeakMap());
14808
- __publicField$K(this, "ids", /* @__PURE__ */ new WeakMap());
14805
+ __publicField$L(this, "map");
14806
+ __publicField$L(this, "controlContainer");
14807
+ __publicField$L(this, "targets", /* @__PURE__ */ new WeakMap());
14808
+ __publicField$L(this, "ids", /* @__PURE__ */ new WeakMap());
14809
14809
  this.map = map;
14810
14810
  this.controlContainer = this.createControlContainer(options);
14811
14811
  this.controlContainer.addTo(map.getContainer());
@@ -14867,7 +14867,7 @@ var NgwLeaflet = (function () {
14867
14867
  const mapAny = this.map;
14868
14868
  const controlCorners = mapAny._controlCorners || {};
14869
14869
  const getCorner = (key, selector) => controlCorners[key] || this.map.getContainer().querySelector(selector) || void 0;
14870
- return new ControlContainer(__spreadProps$s(__spreadValues$L({}, options), {
14870
+ return new ControlContainer(__spreadProps$t(__spreadValues$K({}, options), {
14871
14871
  map: this.map,
14872
14872
  container: mapAny._controlContainer,
14873
14873
  positionContainers: {
@@ -15772,15 +15772,15 @@ var NgwLeaflet = (function () {
15772
15772
  };
15773
15773
  }
15774
15774
 
15775
- var __defProp$15 = Object.defineProperty;
15776
- var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15777
- var __publicField$J = (obj, key, value) => __defNormalProp$15(obj, typeof key !== "symbol" ? key + "" : key, value);
15775
+ var __defProp$16 = Object.defineProperty;
15776
+ var __defNormalProp$16 = (obj, key, value) => key in obj ? __defProp$16(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15777
+ var __publicField$K = (obj, key, value) => __defNormalProp$16(obj, typeof key !== "symbol" ? key + "" : key, value);
15778
15778
  class BaseAdapter {
15779
15779
  constructor(map, options) {
15780
15780
  this.map = map;
15781
15781
  this.options = options;
15782
- __publicField$J(this, "layer");
15783
- __publicField$J(this, "pane", "order-0");
15782
+ __publicField$K(this, "layer");
15783
+ __publicField$K(this, "pane", "order-0");
15784
15784
  if (options.order !== void 0) {
15785
15785
  const pane = "order-" + options.order;
15786
15786
  let exist = map.getPane(pane);
@@ -15809,19 +15809,19 @@ var NgwLeaflet = (function () {
15809
15809
  };
15810
15810
  }
15811
15811
 
15812
- var __defProp$14 = Object.defineProperty;
15813
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
15814
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
15815
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
15816
- var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$14(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15817
- var __spreadValues$K = (a, b) => {
15812
+ var __defProp$15 = Object.defineProperty;
15813
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
15814
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
15815
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
15816
+ var __defNormalProp$15 = (obj, key, value) => key in obj ? __defProp$15(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15817
+ var __spreadValues$J = (a, b) => {
15818
15818
  for (var prop in b || (b = {}))
15819
- if (__hasOwnProp$L.call(b, prop))
15820
- __defNormalProp$14(a, prop, b[prop]);
15821
- if (__getOwnPropSymbols$L)
15822
- for (var prop of __getOwnPropSymbols$L(b)) {
15823
- if (__propIsEnum$L.call(b, prop))
15824
- __defNormalProp$14(a, prop, b[prop]);
15819
+ if (__hasOwnProp$K.call(b, prop))
15820
+ __defNormalProp$15(a, prop, b[prop]);
15821
+ if (__getOwnPropSymbols$K)
15822
+ for (var prop of __getOwnPropSymbols$K(b)) {
15823
+ if (__propIsEnum$K.call(b, prop))
15824
+ __defNormalProp$15(a, prop, b[prop]);
15825
15825
  }
15826
15826
  return a;
15827
15827
  };
@@ -15831,7 +15831,7 @@ var NgwLeaflet = (function () {
15831
15831
  }) {
15832
15832
  const layer_ = source.target;
15833
15833
  const feature = layer_.feature;
15834
- const opt = __spreadValues$K({
15834
+ const opt = __spreadValues$J({
15835
15835
  layer,
15836
15836
  feature,
15837
15837
  event: convertMapClickEvent(source),
@@ -15840,30 +15840,30 @@ var NgwLeaflet = (function () {
15840
15840
  return opt;
15841
15841
  }
15842
15842
 
15843
- var __defProp$13 = Object.defineProperty;
15844
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
15845
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
15846
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
15847
- var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$13(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15848
- var __spreadValues$J = (a, b) => {
15843
+ var __defProp$14 = Object.defineProperty;
15844
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
15845
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
15846
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
15847
+ var __defNormalProp$14 = (obj, key, value) => key in obj ? __defProp$14(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15848
+ var __spreadValues$I = (a, b) => {
15849
15849
  for (var prop in b || (b = {}))
15850
- if (__hasOwnProp$K.call(b, prop))
15851
- __defNormalProp$13(a, prop, b[prop]);
15852
- if (__getOwnPropSymbols$K)
15853
- for (var prop of __getOwnPropSymbols$K(b)) {
15854
- if (__propIsEnum$K.call(b, prop))
15855
- __defNormalProp$13(a, prop, b[prop]);
15850
+ if (__hasOwnProp$J.call(b, prop))
15851
+ __defNormalProp$14(a, prop, b[prop]);
15852
+ if (__getOwnPropSymbols$J)
15853
+ for (var prop of __getOwnPropSymbols$J(b)) {
15854
+ if (__propIsEnum$J.call(b, prop))
15855
+ __defNormalProp$14(a, prop, b[prop]);
15856
15856
  }
15857
15857
  return a;
15858
15858
  };
15859
- var __publicField$I = (obj, key, value) => __defNormalProp$13(obj, typeof key !== "symbol" ? key + "" : key, value);
15859
+ var __publicField$J = (obj, key, value) => __defNormalProp$14(obj, typeof key !== "symbol" ? key + "" : key, value);
15860
15860
  class GeoJsonEvents {
15861
15861
  constructor(layer) {
15862
- __publicField$I(this, "layer");
15863
- __publicField$I(this, "_onclick");
15864
- __publicField$I(this, "_ondblclick");
15865
- __publicField$I(this, "_mouseout");
15866
- __publicField$I(this, "_mouseover");
15862
+ __publicField$J(this, "layer");
15863
+ __publicField$J(this, "_onclick");
15864
+ __publicField$J(this, "_ondblclick");
15865
+ __publicField$J(this, "_mouseout");
15866
+ __publicField$J(this, "_mouseover");
15867
15867
  this.layer = layer;
15868
15868
  }
15869
15869
  handleMouseEvents(layer) {
@@ -15872,7 +15872,7 @@ var NgwLeaflet = (function () {
15872
15872
  if (onClick_) {
15873
15873
  this._onclick = (e) => {
15874
15874
  const selected = !!this.layer._getSelected(layer);
15875
- onClick_(__spreadValues$J({
15875
+ onClick_(__spreadValues$I({
15876
15876
  selected
15877
15877
  }, this._createMouseEvent(e)));
15878
15878
  };
@@ -15882,7 +15882,7 @@ var NgwLeaflet = (function () {
15882
15882
  this._ondblclick = (e) => {
15883
15883
  leafletSrcExports.DomEvent.stopPropagation(e);
15884
15884
  const selected = !!this.layer._getSelected(layer);
15885
- onDoubleClick(__spreadValues$J({
15885
+ onDoubleClick(__spreadValues$I({
15886
15886
  selected
15887
15887
  }, this._createMouseEvent(e)));
15888
15888
  };
@@ -16541,19 +16541,19 @@ var NgwLeaflet = (function () {
16541
16541
  typeof: evaluateArgs(([arg]) => typeOfValue(arg))
16542
16542
  };
16543
16543
 
16544
- var __defProp$12 = Object.defineProperty;
16545
- var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
16546
- var __hasOwnProp$J = Object.prototype.hasOwnProperty;
16547
- var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
16548
- var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16549
- var __spreadValues$I = (a, b) => {
16544
+ var __defProp$13 = Object.defineProperty;
16545
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16546
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16547
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16548
+ var __defNormalProp$13 = (obj, key, value) => key in obj ? __defProp$13(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16549
+ var __spreadValues$H = (a, b) => {
16550
16550
  for (var prop in b || (b = {}))
16551
- if (__hasOwnProp$J.call(b, prop))
16552
- __defNormalProp$12(a, prop, b[prop]);
16553
- if (__getOwnPropSymbols$J)
16554
- for (var prop of __getOwnPropSymbols$J(b)) {
16555
- if (__propIsEnum$J.call(b, prop))
16556
- __defNormalProp$12(a, prop, b[prop]);
16551
+ if (__hasOwnProp$I.call(b, prop))
16552
+ __defNormalProp$13(a, prop, b[prop]);
16553
+ if (__getOwnPropSymbols$I)
16554
+ for (var prop of __getOwnPropSymbols$I(b)) {
16555
+ if (__propIsEnum$I.call(b, prop))
16556
+ __defNormalProp$13(a, prop, b[prop]);
16557
16557
  }
16558
16558
  return a;
16559
16559
  };
@@ -16565,7 +16565,7 @@ var NgwLeaflet = (function () {
16565
16565
  }
16566
16566
  return false;
16567
16567
  }
16568
- const expressions = __spreadValues$I(__spreadValues$I(__spreadValues$I(__spreadValues$I(__spreadValues$I(__spreadValues$I({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
16568
+ const expressions = __spreadValues$H(__spreadValues$H(__spreadValues$H(__spreadValues$H(__spreadValues$H(__spreadValues$H({}, mathExpressions), typeExpressions), stringExpressions), lookupExpressions), decisionExpressions), interpolationExpressions);
16569
16569
  function evaluate(expression, data = {}) {
16570
16570
  const [name, ...args] = expression;
16571
16571
  const expressionFun = expressions[name];
@@ -16578,19 +16578,19 @@ var NgwLeaflet = (function () {
16578
16578
  throw new Error(`Expression "${name}" is not supported.`);
16579
16579
  }
16580
16580
 
16581
- var __defProp$11 = Object.defineProperty;
16582
- var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
16583
- var __hasOwnProp$I = Object.prototype.hasOwnProperty;
16584
- var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
16585
- var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16586
- var __spreadValues$H = (a, b) => {
16581
+ var __defProp$12 = Object.defineProperty;
16582
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16583
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16584
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16585
+ var __defNormalProp$12 = (obj, key, value) => key in obj ? __defProp$12(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16586
+ var __spreadValues$G = (a, b) => {
16587
16587
  for (var prop in b || (b = {}))
16588
- if (__hasOwnProp$I.call(b, prop))
16589
- __defNormalProp$11(a, prop, b[prop]);
16590
- if (__getOwnPropSymbols$I)
16591
- for (var prop of __getOwnPropSymbols$I(b)) {
16592
- if (__propIsEnum$I.call(b, prop))
16593
- __defNormalProp$11(a, prop, b[prop]);
16588
+ if (__hasOwnProp$H.call(b, prop))
16589
+ __defNormalProp$12(a, prop, b[prop]);
16590
+ if (__getOwnPropSymbols$H)
16591
+ for (var prop of __getOwnPropSymbols$H(b)) {
16592
+ if (__propIsEnum$H.call(b, prop))
16593
+ __defNormalProp$12(a, prop, b[prop]);
16594
16594
  }
16595
16595
  return a;
16596
16596
  };
@@ -16623,25 +16623,25 @@ var NgwLeaflet = (function () {
16623
16623
  for (const p in expressions) {
16624
16624
  fromCb[p] = expressions[p](feature);
16625
16625
  }
16626
- return __spreadValues$H(__spreadValues$H({}, paint), fromCb);
16626
+ return __spreadValues$G(__spreadValues$G({}, paint), fromCb);
16627
16627
  };
16628
16628
  }
16629
16629
  return;
16630
16630
  }
16631
16631
 
16632
- var __defProp$10 = Object.defineProperty;
16633
- var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
16634
- var __hasOwnProp$H = Object.prototype.hasOwnProperty;
16635
- var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
16636
- var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16637
- var __spreadValues$G = (a, b) => {
16632
+ var __defProp$11 = Object.defineProperty;
16633
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16634
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16635
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16636
+ var __defNormalProp$11 = (obj, key, value) => key in obj ? __defProp$11(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16637
+ var __spreadValues$F = (a, b) => {
16638
16638
  for (var prop in b || (b = {}))
16639
- if (__hasOwnProp$H.call(b, prop))
16640
- __defNormalProp$10(a, prop, b[prop]);
16641
- if (__getOwnPropSymbols$H)
16642
- for (var prop of __getOwnPropSymbols$H(b)) {
16643
- if (__propIsEnum$H.call(b, prop))
16644
- __defNormalProp$10(a, prop, b[prop]);
16639
+ if (__hasOwnProp$G.call(b, prop))
16640
+ __defNormalProp$11(a, prop, b[prop]);
16641
+ if (__getOwnPropSymbols$G)
16642
+ for (var prop of __getOwnPropSymbols$G(b)) {
16643
+ if (__propIsEnum$G.call(b, prop))
16644
+ __defNormalProp$11(a, prop, b[prop]);
16645
16645
  }
16646
16646
  return a;
16647
16647
  };
@@ -16688,7 +16688,7 @@ var NgwLeaflet = (function () {
16688
16688
  return false;
16689
16689
  }
16690
16690
  function featureFilter(feature, filters) {
16691
- const properties = __spreadValues$G({}, feature.properties);
16691
+ const properties = __spreadValues$F({}, feature.properties);
16692
16692
  if (properties) {
16693
16693
  properties.$id = feature.id;
16694
16694
  return propertiesFilter(properties, filters);
@@ -16742,19 +16742,19 @@ var NgwLeaflet = (function () {
16742
16742
  return false;
16743
16743
  }
16744
16744
 
16745
- var __defProp$$ = Object.defineProperty;
16746
- var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
16747
- var __hasOwnProp$G = Object.prototype.hasOwnProperty;
16748
- var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
16749
- var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16750
- var __spreadValues$F = (a, b) => {
16745
+ var __defProp$10 = Object.defineProperty;
16746
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16747
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16748
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16749
+ var __defNormalProp$10 = (obj, key, value) => key in obj ? __defProp$10(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16750
+ var __spreadValues$E = (a, b) => {
16751
16751
  for (var prop in b || (b = {}))
16752
- if (__hasOwnProp$G.call(b, prop))
16753
- __defNormalProp$$(a, prop, b[prop]);
16754
- if (__getOwnPropSymbols$G)
16755
- for (var prop of __getOwnPropSymbols$G(b)) {
16756
- if (__propIsEnum$G.call(b, prop))
16757
- __defNormalProp$$(a, prop, b[prop]);
16752
+ if (__hasOwnProp$F.call(b, prop))
16753
+ __defNormalProp$10(a, prop, b[prop]);
16754
+ if (__getOwnPropSymbols$F)
16755
+ for (var prop of __getOwnPropSymbols$F(b)) {
16756
+ if (__propIsEnum$F.call(b, prop))
16757
+ __defNormalProp$10(a, prop, b[prop]);
16758
16758
  }
16759
16759
  return a;
16760
16760
  };
@@ -16783,7 +16783,7 @@ var NgwLeaflet = (function () {
16783
16783
  return (feature) => {
16784
16784
  const paint = paintsFilters.find((x) => featureFilter(feature, x[0]));
16785
16785
  if (paint) {
16786
- return __spreadValues$F(__spreadValues$F({}, mask), paint[1]);
16786
+ return __spreadValues$E(__spreadValues$E({}, mask), paint[1]);
16787
16787
  }
16788
16788
  return mask;
16789
16789
  };
@@ -16807,8 +16807,8 @@ var NgwLeaflet = (function () {
16807
16807
  }
16808
16808
  function finalizePaint({ paint, defaultPaint }) {
16809
16809
  var _a;
16810
- let newPaint = __spreadValues$F({}, defaultPaint);
16811
- newPaint = __spreadValues$F(__spreadValues$F({}, newPaint), paint);
16810
+ let newPaint = __spreadValues$E({}, defaultPaint);
16811
+ newPaint = __spreadValues$E(__spreadValues$E({}, newPaint), paint);
16812
16812
  newPaint.fill = (_a = newPaint.fill) != null ? _a : true;
16813
16813
  newPaint.stroke = newPaint.stroke !== void 0 ? newPaint.stroke : !newPaint.fill || !!(newPaint.strokeColor || newPaint.strokeOpacity);
16814
16814
  return newPaint;
@@ -16821,7 +16821,7 @@ var NgwLeaflet = (function () {
16821
16821
  if (!paint) {
16822
16822
  throw new Error("paint is empty");
16823
16823
  }
16824
- let newPaint = __spreadValues$F({}, defaultPaint);
16824
+ let newPaint = __spreadValues$E({}, defaultPaint);
16825
16825
  if (isPaintCallback(paint)) {
16826
16826
  const getPaintFunction = (feature) => {
16827
16827
  const getPaint = preparePaint({
@@ -16878,41 +16878,41 @@ var NgwLeaflet = (function () {
16878
16878
  return newPaint;
16879
16879
  }
16880
16880
 
16881
- var __defProp$_ = Object.defineProperty;
16882
- var __defProps$r = Object.defineProperties;
16883
- var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
16884
- var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
16885
- var __hasOwnProp$F = Object.prototype.hasOwnProperty;
16886
- var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
16887
- var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16888
- var __spreadValues$E = (a, b) => {
16881
+ var __defProp$$ = Object.defineProperty;
16882
+ var __defProps$s = Object.defineProperties;
16883
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
16884
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
16885
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
16886
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
16887
+ var __defNormalProp$$ = (obj, key, value) => key in obj ? __defProp$$(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16888
+ var __spreadValues$D = (a, b) => {
16889
16889
  for (var prop in b || (b = {}))
16890
- if (__hasOwnProp$F.call(b, prop))
16891
- __defNormalProp$_(a, prop, b[prop]);
16892
- if (__getOwnPropSymbols$F)
16893
- for (var prop of __getOwnPropSymbols$F(b)) {
16894
- if (__propIsEnum$F.call(b, prop))
16895
- __defNormalProp$_(a, prop, b[prop]);
16890
+ if (__hasOwnProp$E.call(b, prop))
16891
+ __defNormalProp$$(a, prop, b[prop]);
16892
+ if (__getOwnPropSymbols$E)
16893
+ for (var prop of __getOwnPropSymbols$E(b)) {
16894
+ if (__propIsEnum$E.call(b, prop))
16895
+ __defNormalProp$$(a, prop, b[prop]);
16896
16896
  }
16897
16897
  return a;
16898
16898
  };
16899
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
16899
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
16900
16900
  var __objRest$a = (source, exclude) => {
16901
16901
  var target = {};
16902
16902
  for (var prop in source)
16903
- if (__hasOwnProp$F.call(source, prop) && exclude.indexOf(prop) < 0)
16903
+ if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
16904
16904
  target[prop] = source[prop];
16905
- if (source != null && __getOwnPropSymbols$F)
16906
- for (var prop of __getOwnPropSymbols$F(source)) {
16907
- if (exclude.indexOf(prop) < 0 && __propIsEnum$F.call(source, prop))
16905
+ if (source != null && __getOwnPropSymbols$E)
16906
+ for (var prop of __getOwnPropSymbols$E(source)) {
16907
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
16908
16908
  target[prop] = source[prop];
16909
16909
  }
16910
16910
  return target;
16911
16911
  };
16912
- var __publicField$H = (obj, key, value) => __defNormalProp$_(obj, key + "" , value);
16912
+ var __publicField$I = (obj, key, value) => __defNormalProp$$(obj, key + "" , value);
16913
16913
  class GeoJsonPaint {
16914
16914
  constructor(layer) {
16915
- __publicField$H(this, "layer");
16915
+ __publicField$I(this, "layer");
16916
16916
  this.layer = layer;
16917
16917
  }
16918
16918
  setPaintEachLayer(paint) {
@@ -16991,7 +16991,7 @@ var NgwLeaflet = (function () {
16991
16991
  if (html) {
16992
16992
  element.innerHTML = html;
16993
16993
  }
16994
- const divIcon = new leafletSrcExports.DivIcon(__spreadProps$r(__spreadValues$E({
16994
+ const divIcon = new leafletSrcExports.DivIcon(__spreadProps$s(__spreadValues$D({
16995
16995
  className: ""
16996
16996
  }, toLIconOpt), {
16997
16997
  html: element
@@ -17017,7 +17017,7 @@ var NgwLeaflet = (function () {
17017
17017
  }
17018
17018
  return (_, latlng) => {
17019
17019
  const p = PAINT;
17020
- return new leafletSrcExports.CircleMarker(latlng, this.preparePaint(__spreadValues$E(__spreadValues$E({}, p), icon)));
17020
+ return new leafletSrcExports.CircleMarker(latlng, this.preparePaint(__spreadValues$D(__spreadValues$D({}, p), icon)));
17021
17021
  };
17022
17022
  }
17023
17023
  createPaintOptions(paint) {
@@ -17039,27 +17039,27 @@ var NgwLeaflet = (function () {
17039
17039
  }
17040
17040
  }
17041
17041
 
17042
- var __defProp$Z = Object.defineProperty;
17043
- var __defProps$q = Object.defineProperties;
17044
- var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
17045
- var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
17046
- var __hasOwnProp$E = Object.prototype.hasOwnProperty;
17047
- var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
17048
- var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17049
- var __spreadValues$D = (a, b) => {
17042
+ var __defProp$_ = Object.defineProperty;
17043
+ var __defProps$r = Object.defineProperties;
17044
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
17045
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
17046
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
17047
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
17048
+ var __defNormalProp$_ = (obj, key, value) => key in obj ? __defProp$_(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17049
+ var __spreadValues$C = (a, b) => {
17050
17050
  for (var prop in b || (b = {}))
17051
- if (__hasOwnProp$E.call(b, prop))
17052
- __defNormalProp$Z(a, prop, b[prop]);
17053
- if (__getOwnPropSymbols$E)
17054
- for (var prop of __getOwnPropSymbols$E(b)) {
17055
- if (__propIsEnum$E.call(b, prop))
17056
- __defNormalProp$Z(a, prop, b[prop]);
17051
+ if (__hasOwnProp$D.call(b, prop))
17052
+ __defNormalProp$_(a, prop, b[prop]);
17053
+ if (__getOwnPropSymbols$D)
17054
+ for (var prop of __getOwnPropSymbols$D(b)) {
17055
+ if (__propIsEnum$D.call(b, prop))
17056
+ __defNormalProp$_(a, prop, b[prop]);
17057
17057
  }
17058
17058
  return a;
17059
17059
  };
17060
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
17061
- var __publicField$G = (obj, key, value) => __defNormalProp$Z(obj, typeof key !== "symbol" ? key + "" : key, value);
17062
- var __async$w = (__this, __arguments, generator) => {
17060
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
17061
+ var __publicField$H = (obj, key, value) => __defNormalProp$_(obj, typeof key !== "symbol" ? key + "" : key, value);
17062
+ var __async$x = (__this, __arguments, generator) => {
17063
17063
  return new Promise((resolve, reject) => {
17064
17064
  var fulfilled = (value) => {
17065
17065
  try {
@@ -17082,22 +17082,22 @@ var NgwLeaflet = (function () {
17082
17082
  class GeoJsonAdapter extends BaseAdapter {
17083
17083
  constructor(map, options) {
17084
17084
  super(map, options);
17085
- __publicField$G(this, "layer");
17086
- __publicField$G(this, "selected", false);
17087
- __publicField$G(this, "type");
17088
- __publicField$G(this, "_layers", []);
17089
- __publicField$G(this, "_events");
17090
- __publicField$G(this, "paint");
17091
- __publicField$G(this, "selectedPaint");
17092
- __publicField$G(this, "_selectedLayers", []);
17093
- __publicField$G(this, "_filteredLayers", []);
17094
- __publicField$G(this, "_filterFun");
17095
- __publicField$G(this, "_openedPopup", []);
17096
- __publicField$G(this, "_paint");
17097
- __publicField$G(this, "$updateTooltip", debounce(() => {
17085
+ __publicField$H(this, "layer");
17086
+ __publicField$H(this, "selected", false);
17087
+ __publicField$H(this, "type");
17088
+ __publicField$H(this, "_layers", []);
17089
+ __publicField$H(this, "_events");
17090
+ __publicField$H(this, "paint");
17091
+ __publicField$H(this, "selectedPaint");
17092
+ __publicField$H(this, "_selectedLayers", []);
17093
+ __publicField$H(this, "_filteredLayers", []);
17094
+ __publicField$H(this, "_filterFun");
17095
+ __publicField$H(this, "_openedPopup", []);
17096
+ __publicField$H(this, "_paint");
17097
+ __publicField$H(this, "$updateTooltip", debounce(() => {
17098
17098
  this.updateTooltip();
17099
17099
  }, 300));
17100
- __publicField$G(this, "$unselect", () => {
17100
+ __publicField$H(this, "$unselect", () => {
17101
17101
  this.unselect();
17102
17102
  });
17103
17103
  this._events = new GeoJsonEvents(this);
@@ -17106,7 +17106,7 @@ var NgwLeaflet = (function () {
17106
17106
  addLayer(options) {
17107
17107
  Object.assign(this.options, options);
17108
17108
  this.paint = options.paint;
17109
- this.layer = new leafletSrcExports.FeatureGroup([], __spreadProps$q(__spreadValues$D({}, options.nativeOptions), {
17109
+ this.layer = new leafletSrcExports.FeatureGroup([], __spreadProps$r(__spreadValues$C({}, options.nativeOptions), {
17110
17110
  pane: this.pane
17111
17111
  }));
17112
17112
  this.selectedPaint = options.selectedPaint;
@@ -17155,7 +17155,7 @@ var NgwLeaflet = (function () {
17155
17155
  }
17156
17156
  getSelected() {
17157
17157
  return this._selectedLayers.map((x) => {
17158
- return __spreadValues$D({
17158
+ return __spreadValues$C({
17159
17159
  target: this,
17160
17160
  feature: x.feature,
17161
17161
  layer: x
@@ -17174,14 +17174,14 @@ var NgwLeaflet = (function () {
17174
17174
  const filteredLayers = [];
17175
17175
  this._layers.forEach(({ feature, layer }) => {
17176
17176
  if (layer) {
17177
- const ok = fun ? fun(__spreadValues$D({
17177
+ const ok = fun ? fun(__spreadValues$C({
17178
17178
  target: this,
17179
17179
  feature,
17180
17180
  layer
17181
17181
  }, createFeaturePositionOptions(feature))) : true;
17182
17182
  if (ok) {
17183
17183
  layer_.addLayer(layer);
17184
- filteredLayers.push(__spreadValues$D({
17184
+ filteredLayers.push(__spreadValues$C({
17185
17185
  target: this,
17186
17186
  feature,
17187
17187
  layer
@@ -17202,7 +17202,7 @@ var NgwLeaflet = (function () {
17202
17202
  getLayers() {
17203
17203
  return this._layers.map(({ layer, feature }) => {
17204
17204
  const visible = layer && !!layer._map;
17205
- return __spreadValues$D({
17205
+ return __spreadValues$C({
17206
17206
  feature,
17207
17207
  layer,
17208
17208
  visible,
@@ -17320,13 +17320,13 @@ var NgwLeaflet = (function () {
17320
17320
  }
17321
17321
  }
17322
17322
  updatePaint(paint) {
17323
- this.paint = __spreadValues$D(__spreadValues$D({}, this.paint), paint);
17323
+ this.paint = __spreadValues$C(__spreadValues$C({}, this.paint), paint);
17324
17324
  for (const l of this._layers) {
17325
17325
  this._paint.setPaint(l, this.paint);
17326
17326
  }
17327
17327
  }
17328
17328
  updateSelectedPaint(paint) {
17329
- this.selectedPaint = __spreadValues$D(__spreadValues$D({}, this.selectedPaint), paint);
17329
+ this.selectedPaint = __spreadValues$C(__spreadValues$C({}, this.selectedPaint), paint);
17330
17330
  for (const l of this._selectedLayers) {
17331
17331
  this._paint.setPaint(l, this.selectedPaint);
17332
17332
  }
@@ -17343,7 +17343,7 @@ var NgwLeaflet = (function () {
17343
17343
  if (feature.properties && labelField) {
17344
17344
  message = feature.properties[labelField];
17345
17345
  } else if (label) {
17346
- message = label(__spreadValues$D(__spreadValues$D({
17346
+ message = label(__spreadValues$C(__spreadValues$C({
17347
17347
  target: this
17348
17348
  }, layerDef), createFeaturePositionOptions(feature)));
17349
17349
  }
@@ -17354,7 +17354,7 @@ var NgwLeaflet = (function () {
17354
17354
  }
17355
17355
  }
17356
17356
  _openPopup(_0) {
17357
- return __async$w(this, arguments, function* (def, options = {}, type, latLng) {
17357
+ return __async$x(this, arguments, function* (def, options = {}, type, latLng) {
17358
17358
  var _a, _b;
17359
17359
  const { feature, layer } = def;
17360
17360
  const {
@@ -17362,7 +17362,7 @@ var NgwLeaflet = (function () {
17362
17362
  autoPan,
17363
17363
  maxWidth,
17364
17364
  closeButton: closeButton_
17365
- } = __spreadValues$D({
17365
+ } = __spreadValues$C({
17366
17366
  minWidth: 300
17367
17367
  }, options);
17368
17368
  const closeButton = closeButton_ != null ? closeButton_ : !this.options.selectOnHover;
@@ -17378,7 +17378,7 @@ var NgwLeaflet = (function () {
17378
17378
  };
17379
17379
  let content;
17380
17380
  if (options.createPopupContent) {
17381
- content = yield options.createPopupContent(__spreadValues$D({
17381
+ content = yield options.createPopupContent(__spreadValues$C({
17382
17382
  layer,
17383
17383
  feature,
17384
17384
  target: this,
@@ -17456,9 +17456,9 @@ var NgwLeaflet = (function () {
17456
17456
  lopt = {
17457
17457
  style: (feature) => {
17458
17458
  if (feature) {
17459
- return this._paint.preparePaint(__spreadValues$D(__spreadValues$D({}, PAINT), paint(feature)));
17459
+ return this._paint.preparePaint(__spreadValues$C(__spreadValues$C({}, PAINT), paint(feature)));
17460
17460
  } else {
17461
- return this._paint.preparePaint(__spreadProps$q(__spreadValues$D({}, PAINT), { type: "path" }));
17461
+ return this._paint.preparePaint(__spreadProps$r(__spreadValues$C({}, PAINT), { type: "path" }));
17462
17462
  }
17463
17463
  }
17464
17464
  };
@@ -17474,7 +17474,7 @@ var NgwLeaflet = (function () {
17474
17474
  _onEachFeature(feature, layer) {
17475
17475
  const layer_ = this.layer;
17476
17476
  if (layer_) {
17477
- const def = __spreadValues$D({
17477
+ const def = __spreadValues$C({
17478
17478
  target: this,
17479
17479
  feature,
17480
17480
  layer
@@ -17509,7 +17509,7 @@ var NgwLeaflet = (function () {
17509
17509
  setTimeout(() => {
17510
17510
  if (popup) {
17511
17511
  this._openPopup(
17512
- __spreadValues$D({
17512
+ __spreadValues$C({
17513
17513
  target: this,
17514
17514
  layer,
17515
17515
  feature
@@ -17527,7 +17527,7 @@ var NgwLeaflet = (function () {
17527
17527
  leafletSrcExports.DomEvent.stopPropagation(e);
17528
17528
  const layer = e.target;
17529
17529
  const feature = layer.feature;
17530
- const def = __spreadValues$D({
17530
+ const def = __spreadValues$C({
17531
17531
  target: this,
17532
17532
  layer,
17533
17533
  feature
@@ -17560,7 +17560,7 @@ var NgwLeaflet = (function () {
17560
17560
  }
17561
17561
  if (this.options.onSelect) {
17562
17562
  const features = def.feature ? [def.feature] : [];
17563
- this.options.onSelect(__spreadValues$D({
17563
+ this.options.onSelect(__spreadValues$C({
17564
17564
  type,
17565
17565
  layer: this,
17566
17566
  features
@@ -17749,19 +17749,19 @@ var NgwLeaflet = (function () {
17749
17749
  return buttonControl;
17750
17750
  }
17751
17751
 
17752
- var __defProp$Y = Object.defineProperty;
17753
- var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
17754
- var __hasOwnProp$D = Object.prototype.hasOwnProperty;
17755
- var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
17756
- var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17757
- var __spreadValues$C = (a, b) => {
17752
+ var __defProp$Z = Object.defineProperty;
17753
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
17754
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
17755
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
17756
+ var __defNormalProp$Z = (obj, key, value) => key in obj ? __defProp$Z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17757
+ var __spreadValues$B = (a, b) => {
17758
17758
  for (var prop in b || (b = {}))
17759
- if (__hasOwnProp$D.call(b, prop))
17760
- __defNormalProp$Y(a, prop, b[prop]);
17761
- if (__getOwnPropSymbols$D)
17762
- for (var prop of __getOwnPropSymbols$D(b)) {
17763
- if (__propIsEnum$D.call(b, prop))
17764
- __defNormalProp$Y(a, prop, b[prop]);
17759
+ if (__hasOwnProp$C.call(b, prop))
17760
+ __defNormalProp$Z(a, prop, b[prop]);
17761
+ if (__getOwnPropSymbols$C)
17762
+ for (var prop of __getOwnPropSymbols$C(b)) {
17763
+ if (__propIsEnum$C.call(b, prop))
17764
+ __defNormalProp$Z(a, prop, b[prop]);
17765
17765
  }
17766
17766
  return a;
17767
17767
  };
@@ -17772,12 +17772,12 @@ var NgwLeaflet = (function () {
17772
17772
  if (!request) {
17773
17773
  return void 0;
17774
17774
  }
17775
- const normalized = __spreadValues$C({}, request);
17775
+ const normalized = __spreadValues$B({}, request);
17776
17776
  return hasLayerRequestOptions(normalized) ? normalized : void 0;
17777
17777
  }
17778
17778
  function getLayerRequestOptions(options) {
17779
17779
  const request = options == null ? void 0 : options.request;
17780
- const headers = __spreadValues$C(__spreadValues$C({}, (options == null ? void 0 : options.headers) || {}), (request == null ? void 0 : request.headers) || {});
17780
+ const headers = __spreadValues$B(__spreadValues$B({}, (options == null ? void 0 : options.headers) || {}), (request == null ? void 0 : request.headers) || {});
17781
17781
  const result = {};
17782
17782
  if (hasHeaders(headers)) {
17783
17783
  result.headers = headers;
@@ -17856,95 +17856,95 @@ var NgwLeaflet = (function () {
17856
17856
  return opt;
17857
17857
  }
17858
17858
 
17859
- var __defProp$X = Object.defineProperty;
17860
- var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17861
- var __publicField$F = (obj, key, value) => __defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
17859
+ var __defProp$Y = Object.defineProperty;
17860
+ var __defNormalProp$Y = (obj, key, value) => key in obj ? __defProp$Y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17861
+ var __publicField$G = (obj, key, value) => __defNormalProp$Y(obj, typeof key !== "symbol" ? key + "" : key, value);
17862
17862
  class KeyCodes {
17863
17863
  constructor() {
17864
- __publicField$F(this, "backspace", 8);
17865
- __publicField$F(this, "tab", 9);
17866
- __publicField$F(this, "enter", 13);
17867
- __publicField$F(this, "shift", 16);
17868
- __publicField$F(this, "ctrl", 17);
17869
- __publicField$F(this, "alt", 18);
17870
- __publicField$F(this, "pause/break", 19);
17871
- __publicField$F(this, "caps_lock", 20);
17872
- __publicField$F(this, "escape", 27);
17873
- __publicField$F(this, "page_up", 33);
17874
- __publicField$F(this, "page_down", 34);
17875
- __publicField$F(this, "end", 35);
17876
- __publicField$F(this, "home", 36);
17877
- __publicField$F(this, "left_arrow", 37);
17878
- __publicField$F(this, "up_arrow", 38);
17879
- __publicField$F(this, "right_arrow", 39);
17880
- __publicField$F(this, "down_arrow", 40);
17881
- __publicField$F(this, "insert", 45);
17882
- __publicField$F(this, "delete", 46);
17883
- __publicField$F(this, "left_window_key", 91);
17884
- __publicField$F(this, "right_window_key", 92);
17885
- __publicField$F(this, "select_key", 93);
17886
- __publicField$F(this, "numpad_0", 96);
17887
- __publicField$F(this, "numpad_1", 97);
17888
- __publicField$F(this, "numpad_2", 98);
17889
- __publicField$F(this, "numpad_3", 99);
17890
- __publicField$F(this, "numpad_4", 100);
17891
- __publicField$F(this, "numpad_5", 101);
17892
- __publicField$F(this, "numpad_6", 102);
17893
- __publicField$F(this, "numpad_7", 103);
17894
- __publicField$F(this, "numpad_8", 104);
17895
- __publicField$F(this, "numpad_9", 105);
17896
- __publicField$F(this, "multiply", 106);
17897
- __publicField$F(this, "add", 107);
17898
- __publicField$F(this, "subtract", 109);
17899
- __publicField$F(this, "decimal_point", 110);
17900
- __publicField$F(this, "divide", 111);
17901
- __publicField$F(this, "f1", 112);
17902
- __publicField$F(this, "f2", 113);
17903
- __publicField$F(this, "f3", 114);
17904
- __publicField$F(this, "f4", 115);
17905
- __publicField$F(this, "f5", 116);
17906
- __publicField$F(this, "f6", 117);
17907
- __publicField$F(this, "f7", 118);
17908
- __publicField$F(this, "f8", 119);
17909
- __publicField$F(this, "f9", 120);
17910
- __publicField$F(this, "f10", 121);
17911
- __publicField$F(this, "f11", 122);
17912
- __publicField$F(this, "f12", 123);
17913
- __publicField$F(this, "num_lock", 144);
17914
- __publicField$F(this, "scroll_lock", 145);
17915
- __publicField$F(this, "semi-colon", 186);
17916
- __publicField$F(this, "equal_sign", 187);
17917
- __publicField$F(this, ",", 188);
17864
+ __publicField$G(this, "backspace", 8);
17865
+ __publicField$G(this, "tab", 9);
17866
+ __publicField$G(this, "enter", 13);
17867
+ __publicField$G(this, "shift", 16);
17868
+ __publicField$G(this, "ctrl", 17);
17869
+ __publicField$G(this, "alt", 18);
17870
+ __publicField$G(this, "pause/break", 19);
17871
+ __publicField$G(this, "caps_lock", 20);
17872
+ __publicField$G(this, "escape", 27);
17873
+ __publicField$G(this, "page_up", 33);
17874
+ __publicField$G(this, "page_down", 34);
17875
+ __publicField$G(this, "end", 35);
17876
+ __publicField$G(this, "home", 36);
17877
+ __publicField$G(this, "left_arrow", 37);
17878
+ __publicField$G(this, "up_arrow", 38);
17879
+ __publicField$G(this, "right_arrow", 39);
17880
+ __publicField$G(this, "down_arrow", 40);
17881
+ __publicField$G(this, "insert", 45);
17882
+ __publicField$G(this, "delete", 46);
17883
+ __publicField$G(this, "left_window_key", 91);
17884
+ __publicField$G(this, "right_window_key", 92);
17885
+ __publicField$G(this, "select_key", 93);
17886
+ __publicField$G(this, "numpad_0", 96);
17887
+ __publicField$G(this, "numpad_1", 97);
17888
+ __publicField$G(this, "numpad_2", 98);
17889
+ __publicField$G(this, "numpad_3", 99);
17890
+ __publicField$G(this, "numpad_4", 100);
17891
+ __publicField$G(this, "numpad_5", 101);
17892
+ __publicField$G(this, "numpad_6", 102);
17893
+ __publicField$G(this, "numpad_7", 103);
17894
+ __publicField$G(this, "numpad_8", 104);
17895
+ __publicField$G(this, "numpad_9", 105);
17896
+ __publicField$G(this, "multiply", 106);
17897
+ __publicField$G(this, "add", 107);
17898
+ __publicField$G(this, "subtract", 109);
17899
+ __publicField$G(this, "decimal_point", 110);
17900
+ __publicField$G(this, "divide", 111);
17901
+ __publicField$G(this, "f1", 112);
17902
+ __publicField$G(this, "f2", 113);
17903
+ __publicField$G(this, "f3", 114);
17904
+ __publicField$G(this, "f4", 115);
17905
+ __publicField$G(this, "f5", 116);
17906
+ __publicField$G(this, "f6", 117);
17907
+ __publicField$G(this, "f7", 118);
17908
+ __publicField$G(this, "f8", 119);
17909
+ __publicField$G(this, "f9", 120);
17910
+ __publicField$G(this, "f10", 121);
17911
+ __publicField$G(this, "f11", 122);
17912
+ __publicField$G(this, "f12", 123);
17913
+ __publicField$G(this, "num_lock", 144);
17914
+ __publicField$G(this, "scroll_lock", 145);
17915
+ __publicField$G(this, "semi-colon", 186);
17916
+ __publicField$G(this, "equal_sign", 187);
17917
+ __publicField$G(this, ",", 188);
17918
17918
  // "comma";
17919
- __publicField$F(this, "-", 189);
17919
+ __publicField$G(this, "-", 189);
17920
17920
  // "dash";
17921
- __publicField$F(this, ".", 190);
17921
+ __publicField$G(this, ".", 190);
17922
17922
  // "period";
17923
- __publicField$F(this, "/", 191);
17923
+ __publicField$G(this, "/", 191);
17924
17924
  // "forward slash";
17925
- __publicField$F(this, "`", 192);
17925
+ __publicField$G(this, "`", 192);
17926
17926
  // "grave accent";
17927
- __publicField$F(this, "[", 219);
17927
+ __publicField$G(this, "[", 219);
17928
17928
  // "open bracket";
17929
- __publicField$F(this, "\\", 220);
17929
+ __publicField$G(this, "\\", 220);
17930
17930
  // "back slash";
17931
- __publicField$F(this, "]", 221);
17931
+ __publicField$G(this, "]", 221);
17932
17932
  // "close braket";
17933
- __publicField$F(this, "'", 222);
17933
+ __publicField$G(this, "'", 222);
17934
17934
  }
17935
17935
  // "single quote"
17936
17936
  }
17937
17937
 
17938
- var __defProp$W = Object.defineProperty;
17939
- var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17940
- var __publicField$E = (obj, key, value) => __defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
17938
+ var __defProp$X = Object.defineProperty;
17939
+ var __defNormalProp$X = (obj, key, value) => key in obj ? __defProp$X(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17940
+ var __publicField$F = (obj, key, value) => __defNormalProp$X(obj, typeof key !== "symbol" ? key + "" : key, value);
17941
17941
  class Keys {
17942
17942
  constructor() {
17943
- __publicField$E(this, "keyCodeAlias", new KeyCodes());
17944
- __publicField$E(this, "keys", {});
17945
- __publicField$E(this, "_windowOnFocus");
17946
- __publicField$E(this, "_keysPressed");
17947
- __publicField$E(this, "_keysReleased");
17943
+ __publicField$F(this, "keyCodeAlias", new KeyCodes());
17944
+ __publicField$F(this, "keys", {});
17945
+ __publicField$F(this, "_windowOnFocus");
17946
+ __publicField$F(this, "_keysPressed");
17947
+ __publicField$F(this, "_keysReleased");
17948
17948
  this._windowOnFocus = this.windowOnFocus.bind(this);
17949
17949
  this._keysPressed = this.keysPressed.bind(this);
17950
17950
  this._keysReleased = this.keysReleased.bind(this);
@@ -17983,15 +17983,15 @@ var NgwLeaflet = (function () {
17983
17983
  }
17984
17984
  }
17985
17985
 
17986
- var __defProp$V = Object.defineProperty;
17987
- var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17988
- var __publicField$D = (obj, key, value) => __defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
17986
+ var __defProp$W = Object.defineProperty;
17987
+ var __defNormalProp$W = (obj, key, value) => key in obj ? __defProp$W(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
17988
+ var __publicField$E = (obj, key, value) => __defNormalProp$W(obj, typeof key !== "symbol" ? key + "" : key, value);
17989
17989
  class StateItem {
17990
17990
  constructor(webMap, opt) {
17991
17991
  this.webMap = webMap;
17992
- __publicField$D(this, "name");
17993
- __publicField$D(this, "event");
17994
- __publicField$D(this, "value");
17992
+ __publicField$E(this, "name");
17993
+ __publicField$E(this, "event");
17994
+ __publicField$E(this, "value");
17995
17995
  if (opt) {
17996
17996
  if (opt.value) {
17997
17997
  this.setValue(opt.value);
@@ -18016,14 +18016,14 @@ var NgwLeaflet = (function () {
18016
18016
  }
18017
18017
  }
18018
18018
 
18019
- var __defProp$U = Object.defineProperty;
18020
- var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18021
- var __publicField$C = (obj, key, value) => __defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
18019
+ var __defProp$V = Object.defineProperty;
18020
+ var __defNormalProp$V = (obj, key, value) => key in obj ? __defProp$V(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18021
+ var __publicField$D = (obj, key, value) => __defNormalProp$V(obj, typeof key !== "symbol" ? key + "" : key, value);
18022
18022
  class BoundState extends StateItem {
18023
18023
  constructor() {
18024
18024
  super(...arguments);
18025
- __publicField$C(this, "name", "bounds");
18026
- __publicField$C(this, "event", ["moveend"]);
18025
+ __publicField$D(this, "name", "bounds");
18026
+ __publicField$D(this, "event", ["moveend"]);
18027
18027
  }
18028
18028
  getValue() {
18029
18029
  return this.webMap.getBounds();
@@ -18044,14 +18044,14 @@ var NgwLeaflet = (function () {
18044
18044
  }
18045
18045
  }
18046
18046
 
18047
- var __defProp$T = Object.defineProperty;
18048
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18049
- var __publicField$B = (obj, key, value) => __defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
18047
+ var __defProp$U = Object.defineProperty;
18048
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18049
+ var __publicField$C = (obj, key, value) => __defNormalProp$U(obj, typeof key !== "symbol" ? key + "" : key, value);
18050
18050
  class CenterState extends StateItem {
18051
18051
  constructor() {
18052
18052
  super(...arguments);
18053
- __publicField$B(this, "name", "center");
18054
- __publicField$B(this, "event", ["moveend"]);
18053
+ __publicField$C(this, "name", "center");
18054
+ __publicField$C(this, "event", ["moveend"]);
18055
18055
  }
18056
18056
  getValue() {
18057
18057
  return this.webMap.getCenter();
@@ -18073,14 +18073,14 @@ var NgwLeaflet = (function () {
18073
18073
  }
18074
18074
  }
18075
18075
 
18076
- var __defProp$S = Object.defineProperty;
18077
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18078
- var __publicField$A = (obj, key, value) => __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
18076
+ var __defProp$T = Object.defineProperty;
18077
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18078
+ var __publicField$B = (obj, key, value) => __defNormalProp$T(obj, typeof key !== "symbol" ? key + "" : key, value);
18079
18079
  class ZoomState extends StateItem {
18080
18080
  constructor() {
18081
18081
  super(...arguments);
18082
- __publicField$A(this, "name", "zoom");
18083
- __publicField$A(this, "event", ["zoomend"]);
18082
+ __publicField$B(this, "name", "zoom");
18083
+ __publicField$B(this, "event", ["zoomend"]);
18084
18084
  }
18085
18085
  getValue() {
18086
18086
  const zoom = this.webMap.getZoom();
@@ -18103,10 +18103,10 @@ var NgwLeaflet = (function () {
18103
18103
  }
18104
18104
  }
18105
18105
 
18106
- var __defProp$R = Object.defineProperty;
18107
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18108
- var __publicField$z = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
18109
- var __async$v = (__this, __arguments, generator) => {
18106
+ var __defProp$S = Object.defineProperty;
18107
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18108
+ var __publicField$A = (obj, key, value) => __defNormalProp$S(obj, typeof key !== "symbol" ? key + "" : key, value);
18109
+ var __async$w = (__this, __arguments, generator) => {
18110
18110
  return new Promise((resolve, reject) => {
18111
18111
  var fulfilled = (value) => {
18112
18112
  try {
@@ -18152,25 +18152,25 @@ var NgwLeaflet = (function () {
18152
18152
  };
18153
18153
  const _WebMapMain = class _WebMapMain {
18154
18154
  constructor(mapOptions) {
18155
- __publicField$z(this, "options", OPTIONS$1);
18155
+ __publicField$A(this, "options", OPTIONS$1);
18156
18156
  // `WebMapEvents` must be `E` but its not work correct
18157
- __publicField$z(this, "emitter", new EventEmitter());
18158
- __publicField$z(this, "keys", _WebMapMain.keys);
18159
- __publicField$z(this, "mapAdapter");
18160
- __publicField$z(this, "runtimeParams", []);
18161
- __publicField$z(this, "getPaintFunctions", _WebMapMain.getPaintFunctions);
18162
- __publicField$z(this, "mapStateItems", [CenterState, ZoomState, BoundState]);
18163
- __publicField$z(this, "id", ID$2++);
18157
+ __publicField$A(this, "emitter", new EventEmitter());
18158
+ __publicField$A(this, "keys", _WebMapMain.keys);
18159
+ __publicField$A(this, "mapAdapter");
18160
+ __publicField$A(this, "runtimeParams", []);
18161
+ __publicField$A(this, "getPaintFunctions", _WebMapMain.getPaintFunctions);
18162
+ __publicField$A(this, "mapStateItems", [CenterState, ZoomState, BoundState]);
18163
+ __publicField$A(this, "id", ID$2++);
18164
18164
  /**
18165
18165
  * From runtime params
18166
18166
  */
18167
- __publicField$z(this, "mapState", []);
18168
- __publicField$z(this, "_initMapState", {});
18169
- __publicField$z(this, "_starterKits");
18170
- __publicField$z(this, "_extent");
18171
- __publicField$z(this, "_eventsStatus", {});
18172
- __publicField$z(this, "_coordFromMapClickAbort");
18173
- __publicField$z(this, "_mapEvents", {});
18167
+ __publicField$A(this, "mapState", []);
18168
+ __publicField$A(this, "_initMapState", {});
18169
+ __publicField$A(this, "_starterKits");
18170
+ __publicField$A(this, "_extent");
18171
+ __publicField$A(this, "_eventsStatus", {});
18172
+ __publicField$A(this, "_coordFromMapClickAbort");
18173
+ __publicField$A(this, "_mapEvents", {});
18174
18174
  this.mapAdapter = mapOptions.mapAdapter;
18175
18175
  this._starterKits = mapOptions.starterKits || [];
18176
18176
  if (mapOptions) {
@@ -18199,7 +18199,7 @@ var NgwLeaflet = (function () {
18199
18199
  * ```
18200
18200
  */
18201
18201
  create() {
18202
- return __async$v(this, null, function* () {
18202
+ return __async$w(this, null, function* () {
18203
18203
  if (!this.getEventStatus("create")) {
18204
18204
  yield this._setInitMapState(this.mapStateItems);
18205
18205
  yield this._setupMap();
@@ -18527,15 +18527,15 @@ var NgwLeaflet = (function () {
18527
18527
  this.emitter.emit(_eventName, data);
18528
18528
  }
18529
18529
  _addLayerProviders() {
18530
- return __async$v(this, null, function* () {
18530
+ return __async$w(this, null, function* () {
18531
18531
  });
18532
18532
  }
18533
18533
  _onLoadSync() {
18534
- return __async$v(this, null, function* () {
18534
+ return __async$w(this, null, function* () {
18535
18535
  });
18536
18536
  }
18537
18537
  _setupMap() {
18538
- return __async$v(this, null, function* () {
18538
+ return __async$w(this, null, function* () {
18539
18539
  if (!this.mapAdapter) {
18540
18540
  throw new Error("WebMap `mapAdapter` option is not set");
18541
18541
  }
@@ -18648,31 +18648,31 @@ var NgwLeaflet = (function () {
18648
18648
  });
18649
18649
  }
18650
18650
  };
18651
- __publicField$z(_WebMapMain, "keys", new Keys());
18652
- __publicField$z(_WebMapMain, "getPaintFunctions");
18651
+ __publicField$A(_WebMapMain, "keys", new Keys());
18652
+ __publicField$A(_WebMapMain, "getPaintFunctions");
18653
18653
  let WebMapMain = _WebMapMain;
18654
18654
 
18655
- var __defProp$Q = Object.defineProperty;
18656
- var __defProps$p = Object.defineProperties;
18657
- var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
18658
- var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
18659
- var __hasOwnProp$C = Object.prototype.hasOwnProperty;
18660
- var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
18661
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18662
- var __spreadValues$B = (a, b) => {
18655
+ var __defProp$R = Object.defineProperty;
18656
+ var __defProps$q = Object.defineProperties;
18657
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
18658
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
18659
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
18660
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
18661
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
18662
+ var __spreadValues$A = (a, b) => {
18663
18663
  for (var prop in b || (b = {}))
18664
- if (__hasOwnProp$C.call(b, prop))
18665
- __defNormalProp$Q(a, prop, b[prop]);
18666
- if (__getOwnPropSymbols$C)
18667
- for (var prop of __getOwnPropSymbols$C(b)) {
18668
- if (__propIsEnum$C.call(b, prop))
18669
- __defNormalProp$Q(a, prop, b[prop]);
18664
+ if (__hasOwnProp$B.call(b, prop))
18665
+ __defNormalProp$R(a, prop, b[prop]);
18666
+ if (__getOwnPropSymbols$B)
18667
+ for (var prop of __getOwnPropSymbols$B(b)) {
18668
+ if (__propIsEnum$B.call(b, prop))
18669
+ __defNormalProp$R(a, prop, b[prop]);
18670
18670
  }
18671
18671
  return a;
18672
18672
  };
18673
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
18674
- var __publicField$y = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
18675
- var __async$u = (__this, __arguments, generator) => {
18673
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
18674
+ var __publicField$z = (obj, key, value) => __defNormalProp$R(obj, typeof key !== "symbol" ? key + "" : key, value);
18675
+ var __async$v = (__this, __arguments, generator) => {
18676
18676
  return new Promise((resolve, reject) => {
18677
18677
  var fulfilled = (value) => {
18678
18678
  try {
@@ -18695,11 +18695,11 @@ var NgwLeaflet = (function () {
18695
18695
  class WebMapLayers extends WebMapMain {
18696
18696
  constructor(mapOptions) {
18697
18697
  super(mapOptions);
18698
- __publicField$y(this, "_layersIdCounter", 1);
18699
- __publicField$y(this, "_layersOrderCounter", 1);
18700
- __publicField$y(this, "_baselayers", []);
18701
- __publicField$y(this, "_layers", {});
18702
- __publicField$y(this, "_selectedLayers", []);
18698
+ __publicField$z(this, "_layersIdCounter", 1);
18699
+ __publicField$z(this, "_layersOrderCounter", 1);
18700
+ __publicField$z(this, "_baselayers", []);
18701
+ __publicField$z(this, "_layers", {});
18702
+ __publicField$z(this, "_selectedLayers", []);
18703
18703
  const tileJson = this.options.tileJson;
18704
18704
  if (tileJson) {
18705
18705
  this.emitter.once("build-map", () => this.addTileJsonLayer(tileJson));
@@ -18710,7 +18710,7 @@ var NgwLeaflet = (function () {
18710
18710
  * But not all layers have borders
18711
18711
  */
18712
18712
  fitLayer(layerDef, options) {
18713
- return __async$u(this, null, function* () {
18713
+ return __async$v(this, null, function* () {
18714
18714
  const layer = this.getLayer(layerDef);
18715
18715
  const getBounds = layer && (layer.getBounds || layer.getExtent);
18716
18716
  if (getBounds) {
@@ -18803,10 +18803,10 @@ var NgwLeaflet = (function () {
18803
18803
  * Shortcut method to create base layer
18804
18804
  */
18805
18805
  addBaseLayer(adapter, options) {
18806
- return __async$u(this, null, function* () {
18806
+ return __async$v(this, null, function* () {
18807
18807
  const layer = yield this.addLayer(
18808
18808
  adapter,
18809
- __spreadProps$p(__spreadValues$B({}, options), {
18809
+ __spreadProps$q(__spreadValues$A({}, options), {
18810
18810
  baselayer: true
18811
18811
  }),
18812
18812
  void 0
@@ -18829,7 +18829,7 @@ var NgwLeaflet = (function () {
18829
18829
  * ```
18830
18830
  */
18831
18831
  addLayer(_0) {
18832
- return __async$u(this, arguments, function* (adapter, options = {}, order) {
18832
+ return __async$v(this, arguments, function* (adapter, options = {}, order) {
18833
18833
  var _a, _b;
18834
18834
  const id = this._layersIdCounter++;
18835
18835
  const _order = defined(order) ? order : options.order !== void 0 ? options.order : this.reserveOrder();
@@ -18843,7 +18843,7 @@ var NgwLeaflet = (function () {
18843
18843
  }
18844
18844
  const geoJsonOptions = options;
18845
18845
  this._updateGeoJsonOptions(geoJsonOptions);
18846
- options = __spreadValues$B({
18846
+ options = __spreadValues$A({
18847
18847
  id: String(id),
18848
18848
  order: _order
18849
18849
  }, options);
@@ -18866,12 +18866,12 @@ var NgwLeaflet = (function () {
18866
18866
  }
18867
18867
  }
18868
18868
  }
18869
- options = __spreadProps$p(__spreadValues$B({}, options), {
18869
+ options = __spreadProps$q(__spreadValues$A({}, options), {
18870
18870
  request: this._getLayerRequestOptions(options)
18871
18871
  });
18872
18872
  if (adapterEngine !== void 0) {
18873
18873
  const _adapter = new adapterEngine(this.mapAdapter.map, options);
18874
- _adapter.options = __spreadValues$B(__spreadValues$B({}, options), _adapter.options);
18874
+ _adapter.options = __spreadValues$A(__spreadValues$A({}, options), _adapter.options);
18875
18875
  if (_adapter.options.baselayer) {
18876
18876
  options.baselayer = true;
18877
18877
  options.order = 0;
@@ -18933,7 +18933,7 @@ var NgwLeaflet = (function () {
18933
18933
  });
18934
18934
  }
18935
18935
  addLayerFromAsyncAdapter(adapter, options, order) {
18936
- return __async$u(this, null, function* () {
18936
+ return __async$v(this, null, function* () {
18937
18937
  const _order = order || options.order !== void 0 ? options.order : this.reserveOrder();
18938
18938
  const adapterConstructor = adapter;
18939
18939
  const adapterConstructorPromise = adapterConstructor();
@@ -18960,7 +18960,7 @@ var NgwLeaflet = (function () {
18960
18960
  }
18961
18961
  }
18962
18962
  getLegend(options) {
18963
- return __async$u(this, null, function* () {
18963
+ return __async$v(this, null, function* () {
18964
18964
  const promises = [];
18965
18965
  for (const l of this.orderedLayers()) {
18966
18966
  if (l.getLegend) {
@@ -19058,7 +19058,7 @@ var NgwLeaflet = (function () {
19058
19058
  }
19059
19059
  /** Shortcut for {@link WebMapLayers.addLayer} to create TileLayer adapter */
19060
19060
  addTileLayer(url, options = {}) {
19061
- return this.addLayer("TILE", __spreadProps$p(__spreadValues$B({}, options), { url }));
19061
+ return this.addLayer("TILE", __spreadProps$q(__spreadValues$A({}, options), { url }));
19062
19062
  }
19063
19063
  addImageLayer(urlOrOptions, options) {
19064
19064
  let url;
@@ -19068,7 +19068,7 @@ var NgwLeaflet = (function () {
19068
19068
  url = urlOrOptions.url;
19069
19069
  options = urlOrOptions;
19070
19070
  }
19071
- return this.addLayer("IMAGE", __spreadProps$p(__spreadValues$B({}, options), { url }));
19071
+ return this.addLayer("IMAGE", __spreadProps$q(__spreadValues$A({}, options), { url }));
19072
19072
  }
19073
19073
  /**
19074
19074
  * Show added layer on the map by it definition.
@@ -19100,7 +19100,7 @@ var NgwLeaflet = (function () {
19100
19100
  const onMap = layer && layer.options.visibility;
19101
19101
  const toStatus = status !== void 0 ? status : !onMap;
19102
19102
  const silent = options.silent !== void 0 ? options.silent : false;
19103
- const action = (l) => __async$u(this, null, function* () {
19103
+ const action = (l) => __async$v(this, null, function* () {
19104
19104
  const id = String(l.id);
19105
19105
  const preEventName = toStatus ? "layer:preshow" : "layer:prehide";
19106
19106
  const eventName = toStatus ? "layer:show" : "layer:hide";
@@ -19451,10 +19451,10 @@ var NgwLeaflet = (function () {
19451
19451
  this.options.layerRequest
19452
19452
  );
19453
19453
  const layerRequest = getLayerRequestOptions(options);
19454
- const headers = __spreadValues$B(__spreadValues$B({}, (defaultRequest == null ? void 0 : defaultRequest.headers) || {}), (layerRequest == null ? void 0 : layerRequest.headers) || {});
19454
+ const headers = __spreadValues$A(__spreadValues$A({}, (defaultRequest == null ? void 0 : defaultRequest.headers) || {}), (layerRequest == null ? void 0 : layerRequest.headers) || {});
19455
19455
  const credentials = options.withCredentials === false && ((_a = options.request) == null ? void 0 : _a.credentials) === void 0 && (defaultRequest == null ? void 0 : defaultRequest.credentials) !== void 0 ? "same-origin" : (_b = layerRequest == null ? void 0 : layerRequest.credentials) != null ? _b : defaultRequest == null ? void 0 : defaultRequest.credentials;
19456
19456
  const cache = ((_c = options.request) == null ? void 0 : _c.cache) !== void 0 ? options.request.cache : (_d = layerRequest == null ? void 0 : layerRequest.cache) != null ? _d : defaultRequest == null ? void 0 : defaultRequest.cache;
19457
- return normalizeLayerRequestOptions(__spreadValues$B(__spreadValues$B(__spreadValues$B(__spreadValues$B(__spreadValues$B({}, defaultRequest), layerRequest), Object.keys(headers).length ? { headers } : {}), credentials !== void 0 ? { credentials } : {}), cache !== void 0 ? { cache } : {}));
19457
+ return normalizeLayerRequestOptions(__spreadValues$A(__spreadValues$A(__spreadValues$A(__spreadValues$A(__spreadValues$A({}, defaultRequest), layerRequest), Object.keys(headers).length ? { headers } : {}), credentials !== void 0 ? { credentials } : {}), cache !== void 0 ? { cache } : {}));
19458
19458
  }
19459
19459
  /** @internal */
19460
19460
  _emitLayerEvent(name, id, options) {
@@ -19466,21 +19466,21 @@ var NgwLeaflet = (function () {
19466
19466
  this.emitter.emit(name, options);
19467
19467
  }
19468
19468
  _onLayerClick(options) {
19469
- return __async$u(this, null, function* () {
19469
+ return __async$v(this, null, function* () {
19470
19470
  const id = options.layer.id;
19471
19471
  this._emitLayerEvent("layer:click", id || "", options);
19472
19472
  return Promise.resolve(options);
19473
19473
  });
19474
19474
  }
19475
19475
  _onLayerDoubleClick(options) {
19476
- return __async$u(this, null, function* () {
19476
+ return __async$v(this, null, function* () {
19477
19477
  const id = options.layer.id;
19478
19478
  this._emitLayerEvent("layer:dblclick", id || "", options);
19479
19479
  return Promise.resolve(options);
19480
19480
  });
19481
19481
  }
19482
19482
  _onLayerSelect(options) {
19483
- return __async$u(this, null, function* () {
19483
+ return __async$v(this, null, function* () {
19484
19484
  this._emitLayerEvent("layer:select", options.layer.id || "", options);
19485
19485
  return Promise.resolve(options);
19486
19486
  });
@@ -19549,25 +19549,25 @@ var NgwLeaflet = (function () {
19549
19549
  }
19550
19550
  }
19551
19551
 
19552
- var __defProp$P = Object.defineProperty;
19553
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
19554
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
19555
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
19556
- var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19552
+ var __defProp$Q = Object.defineProperty;
19553
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
19554
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
19555
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
19556
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19557
19557
  var __objRest$9 = (source, exclude) => {
19558
19558
  var target = {};
19559
19559
  for (var prop in source)
19560
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
19560
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
19561
19561
  target[prop] = source[prop];
19562
- if (source != null && __getOwnPropSymbols$B)
19563
- for (var prop of __getOwnPropSymbols$B(source)) {
19564
- if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
19562
+ if (source != null && __getOwnPropSymbols$A)
19563
+ for (var prop of __getOwnPropSymbols$A(source)) {
19564
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
19565
19565
  target[prop] = source[prop];
19566
19566
  }
19567
19567
  return target;
19568
19568
  };
19569
- var __publicField$x = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
19570
- var __async$t = (__this, __arguments, generator) => {
19569
+ var __publicField$y = (obj, key, value) => __defNormalProp$Q(obj, typeof key !== "symbol" ? key + "" : key, value);
19570
+ var __async$u = (__this, __arguments, generator) => {
19571
19571
  return new Promise((resolve, reject) => {
19572
19572
  var fulfilled = (value) => {
19573
19573
  try {
@@ -19590,14 +19590,14 @@ var NgwLeaflet = (function () {
19590
19590
  const _WebMapControls = class _WebMapControls extends WebMapLayers {
19591
19591
  constructor() {
19592
19592
  super(...arguments);
19593
- __publicField$x(this, "_loadControlQueue", {
19593
+ __publicField$y(this, "_loadControlQueue", {
19594
19594
  "top-right": [],
19595
19595
  "bottom-right": [],
19596
19596
  "top-left": [],
19597
19597
  "bottom-left": [],
19598
19598
  inside: []
19599
19599
  });
19600
- __publicField$x(this, "_isControlLoading", {
19600
+ __publicField$y(this, "_isControlLoading", {
19601
19601
  "top-right": false,
19602
19602
  "bottom-right": false,
19603
19603
  "top-left": false,
@@ -19606,7 +19606,7 @@ var NgwLeaflet = (function () {
19606
19606
  });
19607
19607
  }
19608
19608
  addControl(controlDef, position, options) {
19609
- return __async$t(this, null, function* () {
19609
+ return __async$u(this, null, function* () {
19610
19610
  let control;
19611
19611
  const { addOptions, createOptions } = this._splitControlOptions(options);
19612
19612
  position = position != null ? position : "top-left";
@@ -19617,7 +19617,7 @@ var NgwLeaflet = (function () {
19617
19617
  }
19618
19618
  if (control) {
19619
19619
  return new Promise((resolve) => {
19620
- const promise = () => __async$t(this, null, function* () {
19620
+ const promise = () => __async$u(this, null, function* () {
19621
19621
  const _control = yield control;
19622
19622
  const c = this.mapAdapter.addControl(_control, position, addOptions);
19623
19623
  resolve(c);
@@ -19640,7 +19640,7 @@ var NgwLeaflet = (function () {
19640
19640
  * ```
19641
19641
  */
19642
19642
  createControl(control, options) {
19643
- return __async$t(this, null, function* () {
19643
+ return __async$u(this, null, function* () {
19644
19644
  yield this.onLoad("build-map");
19645
19645
  if (this.mapAdapter.createControl) {
19646
19646
  return this.mapAdapter.createControl(control, options);
@@ -19648,7 +19648,7 @@ var NgwLeaflet = (function () {
19648
19648
  });
19649
19649
  }
19650
19650
  createButtonControl(options) {
19651
- return __async$t(this, null, function* () {
19651
+ return __async$u(this, null, function* () {
19652
19652
  yield this.onLoad("build-map");
19653
19653
  if (this.mapAdapter.createButtonControl) {
19654
19654
  return this.mapAdapter.createButtonControl(options);
@@ -19675,7 +19675,7 @@ var NgwLeaflet = (function () {
19675
19675
  * {@link http://code.nextgis.com/demo-examples-toggle-control | Toggle button control example}
19676
19676
  */
19677
19677
  createToggleControl(options) {
19678
- return __async$t(this, null, function* () {
19678
+ return __async$u(this, null, function* () {
19679
19679
  yield this.onLoad("build-map");
19680
19680
  if (this.mapAdapter.createToggleControl) {
19681
19681
  return this.mapAdapter.createToggleControl(options);
@@ -19734,7 +19734,7 @@ var NgwLeaflet = (function () {
19734
19734
  }
19735
19735
  }
19736
19736
  _applyControls(position) {
19737
- return __async$t(this, null, function* () {
19737
+ return __async$u(this, null, function* () {
19738
19738
  if (this._loadControlQueue[position].length) {
19739
19739
  this._isControlLoading[position] = true;
19740
19740
  const controlCb = this._loadControlQueue[position][0];
@@ -19761,7 +19761,7 @@ var NgwLeaflet = (function () {
19761
19761
  return id !== void 0 || order !== void 0 ? { id, order } : void 0;
19762
19762
  }
19763
19763
  };
19764
- __publicField$x(_WebMapControls, "controls", {
19764
+ __publicField$y(_WebMapControls, "controls", {
19765
19765
  CONTROL: (webMap, options) => {
19766
19766
  return webMap.createControl(options.control, options.options);
19767
19767
  },
@@ -19774,39 +19774,39 @@ var NgwLeaflet = (function () {
19774
19774
  });
19775
19775
  let WebMapControls = _WebMapControls;
19776
19776
 
19777
- var __defProp$O = Object.defineProperty;
19778
- var __defProps$o = Object.defineProperties;
19779
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
19780
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
19781
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
19782
- var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
19777
+ var __defProp$P = Object.defineProperty;
19778
+ var __defProps$p = Object.defineProperties;
19779
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
19780
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
19781
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
19782
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
19783
19783
  var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
19784
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19785
- var __spreadValues$A = (a, b) => {
19784
+ var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19785
+ var __spreadValues$z = (a, b) => {
19786
19786
  for (var prop in b || (b = {}))
19787
- if (__hasOwnProp$A.call(b, prop))
19788
- __defNormalProp$O(a, prop, b[prop]);
19789
- if (__getOwnPropSymbols$A)
19790
- for (var prop of __getOwnPropSymbols$A(b)) {
19791
- if (__propIsEnum$A.call(b, prop))
19792
- __defNormalProp$O(a, prop, b[prop]);
19787
+ if (__hasOwnProp$z.call(b, prop))
19788
+ __defNormalProp$P(a, prop, b[prop]);
19789
+ if (__getOwnPropSymbols$z)
19790
+ for (var prop of __getOwnPropSymbols$z(b)) {
19791
+ if (__propIsEnum$z.call(b, prop))
19792
+ __defNormalProp$P(a, prop, b[prop]);
19793
19793
  }
19794
19794
  return a;
19795
19795
  };
19796
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
19796
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
19797
19797
  var __objRest$8 = (source, exclude) => {
19798
19798
  var target = {};
19799
19799
  for (var prop in source)
19800
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
19800
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
19801
19801
  target[prop] = source[prop];
19802
- if (source != null && __getOwnPropSymbols$A)
19803
- for (var prop of __getOwnPropSymbols$A(source)) {
19804
- if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
19802
+ if (source != null && __getOwnPropSymbols$z)
19803
+ for (var prop of __getOwnPropSymbols$z(source)) {
19804
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
19805
19805
  target[prop] = source[prop];
19806
19806
  }
19807
19807
  return target;
19808
19808
  };
19809
- var __async$s = (__this, __arguments, generator) => {
19809
+ var __async$t = (__this, __arguments, generator) => {
19810
19810
  return new Promise((resolve, reject) => {
19811
19811
  var fulfilled = (value) => {
19812
19812
  try {
@@ -19840,7 +19840,7 @@ var NgwLeaflet = (function () {
19840
19840
  * @internal
19841
19841
  */
19842
19842
  _addLayerProviders() {
19843
- return __async$s(this, null, function* () {
19843
+ return __async$t(this, null, function* () {
19844
19844
  try {
19845
19845
  for (var iter2 = __forAwait(this._starterKits), more2, temp2, error2; more2 = !(temp2 = yield iter2.next()).done; more2 = false) {
19846
19846
  const kit = temp2.value;
@@ -19884,7 +19884,7 @@ var NgwLeaflet = (function () {
19884
19884
  * @internal
19885
19885
  */
19886
19886
  _onLoadSync() {
19887
- return __async$s(this, null, function* () {
19887
+ return __async$t(this, null, function* () {
19888
19888
  try {
19889
19889
  for (var iter = __forAwait(this._starterKits), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
19890
19890
  const kit = temp.value;
@@ -19922,7 +19922,7 @@ var NgwLeaflet = (function () {
19922
19922
  }
19923
19923
  }
19924
19924
  const _a = controlOptions, { id, order, position } = _a, options = __objRest$8(_a, ["id", "order", "position"]);
19925
- this.addControl(controlAdapterName, position || "top-left", __spreadProps$o(__spreadValues$A({}, options), {
19925
+ this.addControl(controlAdapterName, position || "top-left", __spreadProps$p(__spreadValues$z({}, options), {
19926
19926
  id,
19927
19927
  order
19928
19928
  }));
@@ -19974,20 +19974,20 @@ var NgwLeaflet = (function () {
19974
19974
  return [promise, abortFunc];
19975
19975
  }
19976
19976
 
19977
- var __defProp$N = Object.defineProperty;
19978
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19979
- var __publicField$w = (obj, key, value) => __defNormalProp$N(obj, typeof key !== "symbol" ? key + "" : key, value);
19977
+ var __defProp$O = Object.defineProperty;
19978
+ var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19979
+ var __publicField$x = (obj, key, value) => __defNormalProp$O(obj, typeof key !== "symbol" ? key + "" : key, value);
19980
19980
  class Queue {
19981
19981
  /**
19982
19982
  * @param {PromiseQueueOptions} options - Configuration options for the queue.
19983
19983
  */
19984
19984
  constructor({ concurrency = 1, delay = 0 } = {}) {
19985
- __publicField$w(this, "queue", []);
19986
- __publicField$w(this, "concurrency");
19987
- __publicField$w(this, "activeCount", 0);
19988
- __publicField$w(this, "timeoutId");
19989
- __publicField$w(this, "delay");
19990
- __publicField$w(this, "toAbort", []);
19985
+ __publicField$x(this, "queue", []);
19986
+ __publicField$x(this, "concurrency");
19987
+ __publicField$x(this, "activeCount", 0);
19988
+ __publicField$x(this, "timeoutId");
19989
+ __publicField$x(this, "delay");
19990
+ __publicField$x(this, "toAbort", []);
19991
19991
  this.concurrency = concurrency;
19992
19992
  this.delay = delay;
19993
19993
  }
@@ -20063,13 +20063,13 @@ var NgwLeaflet = (function () {
20063
20063
 
20064
20064
  const imageQueue = new Queue({ concurrency: 6, delay: 200 });
20065
20065
 
20066
- var __defProp$M = Object.defineProperty;
20067
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20068
- var __publicField$v = (obj, key, value) => __defNormalProp$M(obj, key + "" , value);
20066
+ var __defProp$N = Object.defineProperty;
20067
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20068
+ var __publicField$w = (obj, key, value) => __defNormalProp$N(obj, key + "" , value);
20069
20069
  class ImageOverlay extends leafletSrcExports.ImageOverlay {
20070
20070
  constructor(imageUrl, bounds, options) {
20071
20071
  super(imageUrl, bounds, options);
20072
- __publicField$v(this, "_aborter");
20072
+ __publicField$w(this, "_aborter");
20073
20073
  }
20074
20074
  cancelLoad() {
20075
20075
  if (this._aborter) {
@@ -20099,16 +20099,16 @@ var NgwLeaflet = (function () {
20099
20099
  }
20100
20100
  }
20101
20101
 
20102
- var __defProp$L = Object.defineProperty;
20103
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20104
- var __publicField$u = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
20102
+ var __defProp$M = Object.defineProperty;
20103
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20104
+ var __publicField$v = (obj, key, value) => __defNormalProp$M(obj, typeof key !== "symbol" ? key + "" : key, value);
20105
20105
  class ImageLayer extends leafletSrcExports.Layer {
20106
20106
  constructor(url, options) {
20107
20107
  super(options);
20108
- __publicField$u(this, "defaultWmsParams", {
20108
+ __publicField$v(this, "defaultWmsParams", {
20109
20109
  request: "GetMap"
20110
20110
  });
20111
- __publicField$u(this, "options", {
20111
+ __publicField$v(this, "options", {
20112
20112
  crs: null,
20113
20113
  uppercase: false,
20114
20114
  attribution: "",
@@ -20122,11 +20122,11 @@ var NgwLeaflet = (function () {
20122
20122
  viewPortBuffer: 0,
20123
20123
  setViewDelay: 100
20124
20124
  });
20125
- __publicField$u(this, "wmsParams");
20126
- __publicField$u(this, "_url");
20127
- __publicField$u(this, "_currentUrl");
20128
- __publicField$u(this, "_currentOverlay");
20129
- __publicField$u(this, "_loadedOverlay");
20125
+ __publicField$v(this, "wmsParams");
20126
+ __publicField$v(this, "_url");
20127
+ __publicField$v(this, "_currentUrl");
20128
+ __publicField$v(this, "_currentOverlay");
20129
+ __publicField$v(this, "_loadedOverlay");
20130
20130
  this._url = url;
20131
20131
  const params = {};
20132
20132
  const opts = {};
@@ -20291,30 +20291,30 @@ var NgwLeaflet = (function () {
20291
20291
  }
20292
20292
  }
20293
20293
 
20294
- var __defProp$K = Object.defineProperty;
20295
- var __defProps$n = Object.defineProperties;
20296
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
20297
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
20298
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
20299
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
20300
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20301
- var __spreadValues$z = (a, b) => {
20294
+ var __defProp$L = Object.defineProperty;
20295
+ var __defProps$o = Object.defineProperties;
20296
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
20297
+ var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
20298
+ var __hasOwnProp$y = Object.prototype.hasOwnProperty;
20299
+ var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
20300
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20301
+ var __spreadValues$y = (a, b) => {
20302
20302
  for (var prop in b || (b = {}))
20303
- if (__hasOwnProp$z.call(b, prop))
20304
- __defNormalProp$K(a, prop, b[prop]);
20305
- if (__getOwnPropSymbols$z)
20306
- for (var prop of __getOwnPropSymbols$z(b)) {
20307
- if (__propIsEnum$z.call(b, prop))
20308
- __defNormalProp$K(a, prop, b[prop]);
20303
+ if (__hasOwnProp$y.call(b, prop))
20304
+ __defNormalProp$L(a, prop, b[prop]);
20305
+ if (__getOwnPropSymbols$y)
20306
+ for (var prop of __getOwnPropSymbols$y(b)) {
20307
+ if (__propIsEnum$y.call(b, prop))
20308
+ __defNormalProp$L(a, prop, b[prop]);
20309
20309
  }
20310
20310
  return a;
20311
20311
  };
20312
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
20313
- var __publicField$t = (obj, key, value) => __defNormalProp$K(obj, typeof key !== "symbol" ? key + "" : key, value);
20312
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
20313
+ var __publicField$u = (obj, key, value) => __defNormalProp$L(obj, typeof key !== "symbol" ? key + "" : key, value);
20314
20314
  class ImageAdapter extends BaseAdapter {
20315
20315
  constructor() {
20316
20316
  super(...arguments);
20317
- __publicField$t(this, "layer");
20317
+ __publicField$u(this, "layer");
20318
20318
  }
20319
20319
  addLayer(options) {
20320
20320
  var _a;
@@ -20322,10 +20322,10 @@ var NgwLeaflet = (function () {
20322
20322
  if (url) {
20323
20323
  const updateWmsParamsFromOpt = options.updateWmsParams;
20324
20324
  const request = getLayerRequestOptions(options);
20325
- this.layer = new ImageLayer(url, __spreadProps$n(__spreadValues$z(__spreadValues$z(__spreadValues$z({
20325
+ this.layer = new ImageLayer(url, __spreadProps$o(__spreadValues$y(__spreadValues$y(__spreadValues$y({
20326
20326
  pane: this.pane,
20327
20327
  setViewDelay: options.setViewDelay
20328
- }, __spreadProps$n(__spreadValues$z({
20328
+ }, __spreadProps$o(__spreadValues$y({
20329
20329
  transparent: true
20330
20330
  }, options), {
20331
20331
  opacity: (_a = options.opacity) != null ? _a : void 0
@@ -20350,7 +20350,7 @@ var NgwLeaflet = (function () {
20350
20350
  }
20351
20351
  }
20352
20352
  }
20353
- __publicField$t(ImageAdapter, "queue", imageQueue);
20353
+ __publicField$u(ImageAdapter, "queue", imageQueue);
20354
20354
 
20355
20355
  function makeRemote(Base) {
20356
20356
  return class RemoteTileLayer extends Base {
@@ -20413,33 +20413,33 @@ var NgwLeaflet = (function () {
20413
20413
  }
20414
20414
  const TileLayer = makeRemote(TileLayerBase);
20415
20415
 
20416
- var __defProp$J = Object.defineProperty;
20417
- var __defProps$m = Object.defineProperties;
20418
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
20419
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
20420
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
20421
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
20422
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20423
- var __spreadValues$y = (a, b) => {
20424
- for (var prop in b || (b = {}))
20425
- if (__hasOwnProp$y.call(b, prop))
20426
- __defNormalProp$J(a, prop, b[prop]);
20427
- if (__getOwnPropSymbols$y)
20428
- for (var prop of __getOwnPropSymbols$y(b)) {
20429
- if (__propIsEnum$y.call(b, prop))
20430
- __defNormalProp$J(a, prop, b[prop]);
20416
+ var __defProp$K = Object.defineProperty;
20417
+ var __defProps$n = Object.defineProperties;
20418
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
20419
+ var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
20420
+ var __hasOwnProp$x = Object.prototype.hasOwnProperty;
20421
+ var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
20422
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20423
+ var __spreadValues$x = (a, b) => {
20424
+ for (var prop in b || (b = {}))
20425
+ if (__hasOwnProp$x.call(b, prop))
20426
+ __defNormalProp$K(a, prop, b[prop]);
20427
+ if (__getOwnPropSymbols$x)
20428
+ for (var prop of __getOwnPropSymbols$x(b)) {
20429
+ if (__propIsEnum$x.call(b, prop))
20430
+ __defNormalProp$K(a, prop, b[prop]);
20431
20431
  }
20432
20432
  return a;
20433
20433
  };
20434
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
20434
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
20435
20435
  var __objRest$7 = (source, exclude) => {
20436
20436
  var target = {};
20437
20437
  for (var prop in source)
20438
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
20438
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
20439
20439
  target[prop] = source[prop];
20440
- if (source != null && __getOwnPropSymbols$y)
20441
- for (var prop of __getOwnPropSymbols$y(source)) {
20442
- if (exclude.indexOf(prop) < 0 && __propIsEnum$y.call(source, prop))
20440
+ if (source != null && __getOwnPropSymbols$x)
20441
+ for (var prop of __getOwnPropSymbols$x(source)) {
20442
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$x.call(source, prop))
20443
20443
  target[prop] = source[prop];
20444
20444
  }
20445
20445
  return target;
@@ -20450,7 +20450,7 @@ var NgwLeaflet = (function () {
20450
20450
  if (options) {
20451
20451
  const _a = options, { url } = _a, opt = __objRest$7(_a, ["url"]);
20452
20452
  if (url) {
20453
- const tileLayerOptions = __spreadValues$y({
20453
+ const tileLayerOptions = __spreadValues$x({
20454
20454
  pane: this.pane,
20455
20455
  attribution: opt.attribution,
20456
20456
  minZoom: opt.minZoom,
@@ -20462,7 +20462,7 @@ var NgwLeaflet = (function () {
20462
20462
  let layer;
20463
20463
  const request = getLayerRequestOptions(opt);
20464
20464
  if (request) {
20465
- layer = new TileLayer(url, __spreadProps$m(__spreadValues$y({}, tileLayerOptions), {
20465
+ layer = new TileLayer(url, __spreadProps$n(__spreadValues$x({}, tileLayerOptions), {
20466
20466
  request,
20467
20467
  setViewDelay: opt.setViewDelay
20468
20468
  }));
@@ -20484,29 +20484,29 @@ var NgwLeaflet = (function () {
20484
20484
  }
20485
20485
  }
20486
20486
 
20487
- var __defProp$I = Object.defineProperty;
20488
- var __defProps$l = Object.defineProperties;
20489
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
20490
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
20491
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
20492
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
20493
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20494
- var __spreadValues$x = (a, b) => {
20487
+ var __defProp$J = Object.defineProperty;
20488
+ var __defProps$m = Object.defineProperties;
20489
+ var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
20490
+ var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
20491
+ var __hasOwnProp$w = Object.prototype.hasOwnProperty;
20492
+ var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
20493
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20494
+ var __spreadValues$w = (a, b) => {
20495
20495
  for (var prop in b || (b = {}))
20496
- if (__hasOwnProp$x.call(b, prop))
20497
- __defNormalProp$I(a, prop, b[prop]);
20498
- if (__getOwnPropSymbols$x)
20499
- for (var prop of __getOwnPropSymbols$x(b)) {
20500
- if (__propIsEnum$x.call(b, prop))
20501
- __defNormalProp$I(a, prop, b[prop]);
20496
+ if (__hasOwnProp$w.call(b, prop))
20497
+ __defNormalProp$J(a, prop, b[prop]);
20498
+ if (__getOwnPropSymbols$w)
20499
+ for (var prop of __getOwnPropSymbols$w(b)) {
20500
+ if (__propIsEnum$w.call(b, prop))
20501
+ __defNormalProp$J(a, prop, b[prop]);
20502
20502
  }
20503
20503
  return a;
20504
20504
  };
20505
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
20505
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
20506
20506
  class OsmAdapter extends TileAdapter {
20507
20507
  addLayer(options) {
20508
20508
  const url = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
20509
- return super.addLayer(__spreadProps$l(__spreadValues$x({
20509
+ return super.addLayer(__spreadProps$m(__spreadValues$w({
20510
20510
  name: "OpenStreetMap",
20511
20511
  attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
20512
20512
  }, options), {
@@ -20522,55 +20522,57 @@ var NgwLeaflet = (function () {
20522
20522
  }
20523
20523
  const WmsLayer = makeRemote(WmsLayerBase);
20524
20524
 
20525
- var __defProp$H = Object.defineProperty;
20526
- var __defProps$k = Object.defineProperties;
20527
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
20528
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
20529
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
20530
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
20531
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20532
- var __spreadValues$w = (a, b) => {
20525
+ var __defProp$I = Object.defineProperty;
20526
+ var __defProps$l = Object.defineProperties;
20527
+ var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
20528
+ var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
20529
+ var __hasOwnProp$v = Object.prototype.hasOwnProperty;
20530
+ var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
20531
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20532
+ var __spreadValues$v = (a, b) => {
20533
20533
  for (var prop in b || (b = {}))
20534
- if (__hasOwnProp$w.call(b, prop))
20535
- __defNormalProp$H(a, prop, b[prop]);
20536
- if (__getOwnPropSymbols$w)
20537
- for (var prop of __getOwnPropSymbols$w(b)) {
20538
- if (__propIsEnum$w.call(b, prop))
20539
- __defNormalProp$H(a, prop, b[prop]);
20534
+ if (__hasOwnProp$v.call(b, prop))
20535
+ __defNormalProp$I(a, prop, b[prop]);
20536
+ if (__getOwnPropSymbols$v)
20537
+ for (var prop of __getOwnPropSymbols$v(b)) {
20538
+ if (__propIsEnum$v.call(b, prop))
20539
+ __defNormalProp$I(a, prop, b[prop]);
20540
20540
  }
20541
20541
  return a;
20542
20542
  };
20543
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
20543
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
20544
20544
  var __objRest$6 = (source, exclude) => {
20545
20545
  var target = {};
20546
20546
  for (var prop in source)
20547
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
20547
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
20548
20548
  target[prop] = source[prop];
20549
- if (source != null && __getOwnPropSymbols$w)
20550
- for (var prop of __getOwnPropSymbols$w(source)) {
20551
- if (exclude.indexOf(prop) < 0 && __propIsEnum$w.call(source, prop))
20549
+ if (source != null && __getOwnPropSymbols$v)
20550
+ for (var prop of __getOwnPropSymbols$v(source)) {
20551
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$v.call(source, prop))
20552
20552
  target[prop] = source[prop];
20553
20553
  }
20554
20554
  return target;
20555
20555
  };
20556
20556
  class WmsAdapter extends BaseAdapter {
20557
20557
  addLayer(options) {
20558
+ var _b;
20558
20559
  Object.assign(this.options, options);
20559
20560
  const _a = options, { url } = _a, opt = __objRest$6(_a, ["url"]);
20560
20561
  if (url) {
20561
- const layerOptions = __spreadValues$w({
20562
+ const layerOptions = __spreadValues$v(__spreadValues$v({
20562
20563
  pane: this.pane,
20563
20564
  attribution: opt.attribution,
20564
20565
  minZoom: opt.minZoom,
20565
20566
  maxZoom: opt.maxZoom,
20566
20567
  layers: options.layers,
20567
20568
  format: options.format,
20568
- transparent: true
20569
- }, options.nativeOptions);
20569
+ version: options.version,
20570
+ transparent: (_b = options.transparent) != null ? _b : true
20571
+ }, options.params), options.nativeOptions);
20570
20572
  let layer;
20571
20573
  const request = getLayerRequestOptions(opt);
20572
20574
  if (request) {
20573
- layer = new WmsLayer(url, __spreadProps$k(__spreadValues$w({}, layerOptions), {
20575
+ layer = new WmsLayer(url, __spreadProps$l(__spreadValues$v({}, layerOptions), {
20574
20576
  request
20575
20577
  }));
20576
20578
  } else {
@@ -20589,34 +20591,34 @@ var NgwLeaflet = (function () {
20589
20591
  ];
20590
20592
  }
20591
20593
 
20592
- var __defProp$G = Object.defineProperty;
20593
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
20594
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
20595
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
20596
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20597
- var __spreadValues$v = (a, b) => {
20594
+ var __defProp$H = Object.defineProperty;
20595
+ var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
20596
+ var __hasOwnProp$u = Object.prototype.hasOwnProperty;
20597
+ var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
20598
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20599
+ var __spreadValues$u = (a, b) => {
20598
20600
  for (var prop in b || (b = {}))
20599
- if (__hasOwnProp$v.call(b, prop))
20600
- __defNormalProp$G(a, prop, b[prop]);
20601
- if (__getOwnPropSymbols$v)
20602
- for (var prop of __getOwnPropSymbols$v(b)) {
20603
- if (__propIsEnum$v.call(b, prop))
20604
- __defNormalProp$G(a, prop, b[prop]);
20601
+ if (__hasOwnProp$u.call(b, prop))
20602
+ __defNormalProp$H(a, prop, b[prop]);
20603
+ if (__getOwnPropSymbols$u)
20604
+ for (var prop of __getOwnPropSymbols$u(b)) {
20605
+ if (__propIsEnum$u.call(b, prop))
20606
+ __defNormalProp$H(a, prop, b[prop]);
20605
20607
  }
20606
20608
  return a;
20607
20609
  };
20608
- var __publicField$s = (obj, key, value) => __defNormalProp$G(obj, typeof key !== "symbol" ? key + "" : key, value);
20610
+ var __publicField$t = (obj, key, value) => __defNormalProp$H(obj, typeof key !== "symbol" ? key + "" : key, value);
20609
20611
  const _LeafletMapAdapter = class _LeafletMapAdapter {
20610
20612
  constructor() {
20611
- __publicField$s(this, "options", { target: "map" });
20612
- __publicField$s(this, "layerAdapters", _LeafletMapAdapter.layerAdapters);
20613
- __publicField$s(this, "controlAdapters", _LeafletMapAdapter.controlAdapters);
20614
- __publicField$s(this, "emitter", new EventEmitter());
20615
- __publicField$s(this, "map");
20616
- __publicField$s(this, "_resizeObserver");
20617
- __publicField$s(this, "_controlContainer");
20618
- __publicField$s(this, "_unselectCb", []);
20619
- __publicField$s(this, "_universalEvents", [
20613
+ __publicField$t(this, "options", { target: "map" });
20614
+ __publicField$t(this, "layerAdapters", _LeafletMapAdapter.layerAdapters);
20615
+ __publicField$t(this, "controlAdapters", _LeafletMapAdapter.controlAdapters);
20616
+ __publicField$t(this, "emitter", new EventEmitter());
20617
+ __publicField$t(this, "map");
20618
+ __publicField$t(this, "_resizeObserver");
20619
+ __publicField$t(this, "_controlContainer");
20620
+ __publicField$t(this, "_unselectCb", []);
20621
+ __publicField$t(this, "_universalEvents", [
20620
20622
  "move",
20621
20623
  "zoom",
20622
20624
  "zoomend",
@@ -20624,14 +20626,14 @@ var NgwLeaflet = (function () {
20624
20626
  "moveend",
20625
20627
  "movestart"
20626
20628
  ]);
20627
- __publicField$s(this, "_positionEvents", [
20629
+ __publicField$t(this, "_positionEvents", [
20628
20630
  "mousemove",
20629
20631
  "mouseout",
20630
20632
  "mouseover"
20631
20633
  ]);
20632
20634
  }
20633
20635
  create(options) {
20634
- this.options = __spreadValues$v({}, options);
20636
+ this.options = __spreadValues$u({}, options);
20635
20637
  if (this.options.target) {
20636
20638
  const {
20637
20639
  zoom,
@@ -20641,7 +20643,7 @@ var NgwLeaflet = (function () {
20641
20643
  maxBounds: mb,
20642
20644
  mapAdapterOptions
20643
20645
  } = this.options;
20644
- this.map = this.options.map || new leafletSrcExports.Map(this.options.target, __spreadValues$v({
20646
+ this.map = this.options.map || new leafletSrcExports.Map(this.options.target, __spreadValues$u({
20645
20647
  attributionControl: false,
20646
20648
  zoomControl: false,
20647
20649
  maxBounds: mb ? arrayToBoundsExpression(mb) : void 0,
@@ -20933,7 +20935,7 @@ var NgwLeaflet = (function () {
20933
20935
  }
20934
20936
  }
20935
20937
  };
20936
- __publicField$s(_LeafletMapAdapter, "layerAdapters", {
20938
+ __publicField$t(_LeafletMapAdapter, "layerAdapters", {
20937
20939
  GEOJSON: GeoJsonAdapter,
20938
20940
  IMAGE: ImageAdapter,
20939
20941
  TILE: TileAdapter,
@@ -20941,11 +20943,11 @@ var NgwLeaflet = (function () {
20941
20943
  // // MVT: MvtAdapter,
20942
20944
  OSM: OsmAdapter
20943
20945
  });
20944
- __publicField$s(_LeafletMapAdapter, "controlAdapters", {
20946
+ __publicField$t(_LeafletMapAdapter, "controlAdapters", {
20945
20947
  ZOOM: leafletSrcExports.Control.Zoom,
20946
20948
  ATTRIBUTION: AttributionControl
20947
20949
  });
20948
- __publicField$s(_LeafletMapAdapter, "Map", leafletSrcExports.Map);
20950
+ __publicField$t(_LeafletMapAdapter, "Map", leafletSrcExports.Map);
20949
20951
  let LeafletMapAdapter = _LeafletMapAdapter;
20950
20952
 
20951
20953
  const svgPath = {
@@ -21033,23 +21035,23 @@ var NgwLeaflet = (function () {
21033
21035
  });
21034
21036
  }
21035
21037
 
21036
- var __defProp$F = Object.defineProperty;
21037
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
21038
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
21039
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
21040
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21041
- var __spreadValues$u = (a, b) => {
21038
+ var __defProp$G = Object.defineProperty;
21039
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
21040
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
21041
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
21042
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21043
+ var __spreadValues$t = (a, b) => {
21042
21044
  for (var prop in b || (b = {}))
21043
- if (__hasOwnProp$u.call(b, prop))
21044
- __defNormalProp$F(a, prop, b[prop]);
21045
- if (__getOwnPropSymbols$u)
21046
- for (var prop of __getOwnPropSymbols$u(b)) {
21047
- if (__propIsEnum$u.call(b, prop))
21048
- __defNormalProp$F(a, prop, b[prop]);
21045
+ if (__hasOwnProp$t.call(b, prop))
21046
+ __defNormalProp$G(a, prop, b[prop]);
21047
+ if (__getOwnPropSymbols$t)
21048
+ for (var prop of __getOwnPropSymbols$t(b)) {
21049
+ if (__propIsEnum$t.call(b, prop))
21050
+ __defNormalProp$G(a, prop, b[prop]);
21049
21051
  }
21050
21052
  return a;
21051
21053
  };
21052
- var __async$r = (__this, __arguments, generator) => {
21054
+ var __async$s = (__this, __arguments, generator) => {
21053
21055
  return new Promise((resolve, reject) => {
21054
21056
  var fulfilled = (value) => {
21055
21057
  try {
@@ -21070,7 +21072,7 @@ var NgwLeaflet = (function () {
21070
21072
  });
21071
21073
  };
21072
21074
  function apiRequest(opt) {
21073
- return __async$r(this, null, function* () {
21075
+ return __async$s(this, null, function* () {
21074
21076
  const { params, name, connector, requestOptions } = opt;
21075
21077
  const apiItems = yield connector.connect();
21076
21078
  let apiItem = apiItems && apiItems[name];
@@ -21108,7 +21110,7 @@ var NgwLeaflet = (function () {
21108
21110
  }
21109
21111
  }
21110
21112
  if (url) {
21111
- return connector.makeQuery(url, params, __spreadValues$u({
21113
+ return connector.makeQuery(url, params, __spreadValues$t({
21112
21114
  cacheName: name
21113
21115
  }, requestOptions));
21114
21116
  } else {
@@ -21120,12 +21122,12 @@ var NgwLeaflet = (function () {
21120
21122
  });
21121
21123
  }
21122
21124
 
21123
- var __defProp$E = Object.defineProperty;
21124
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21125
- var __publicField$r = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
21125
+ var __defProp$F = Object.defineProperty;
21126
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21127
+ var __publicField$s = (obj, key, value) => __defNormalProp$F(obj, typeof key !== "symbol" ? key + "" : key, value);
21126
21128
  const _Cache = class _Cache {
21127
21129
  constructor(options = {}) {
21128
- __publicField$r(this, "cache", []);
21130
+ __publicField$s(this, "cache", []);
21129
21131
  var _a;
21130
21132
  const namespace = (_a = options.namespace) != null ? _a : "default";
21131
21133
  if (_Cache.instance[namespace]) {
@@ -21256,7 +21258,7 @@ var NgwLeaflet = (function () {
21256
21258
  return objectDeepEqual(itemProps || {}, objectRemoveEmpty(props));
21257
21259
  }
21258
21260
  };
21259
- __publicField$r(_Cache, "instance", {});
21261
+ __publicField$s(_Cache, "instance", {});
21260
21262
  let Cache = _Cache;
21261
21263
 
21262
21264
  var pkg = {
@@ -21269,46 +21271,46 @@ var NgwLeaflet = (function () {
21269
21271
  }
21270
21272
  }
21271
21273
 
21272
- var __defProp$D = Object.defineProperty;
21273
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21274
- var __publicField$q = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
21274
+ var __defProp$E = Object.defineProperty;
21275
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21276
+ var __publicField$r = (obj, key, value) => __defNormalProp$E(obj, typeof key !== "symbol" ? key + "" : key, value);
21275
21277
  class NgwError extends Error {
21276
21278
  constructor(er) {
21277
21279
  super();
21278
- __publicField$q(this, "name", "NgwError");
21279
- __publicField$q(this, "title");
21280
- __publicField$q(this, "message");
21281
- __publicField$q(this, "detail");
21282
- __publicField$q(this, "exception");
21283
- __publicField$q(this, "status_code");
21284
- __publicField$q(this, "data");
21285
- __publicField$q(this, "guru_meditation");
21280
+ __publicField$r(this, "name", "NgwError");
21281
+ __publicField$r(this, "title");
21282
+ __publicField$r(this, "message");
21283
+ __publicField$r(this, "detail");
21284
+ __publicField$r(this, "exception");
21285
+ __publicField$r(this, "status_code");
21286
+ __publicField$r(this, "data");
21287
+ __publicField$r(this, "guru_meditation");
21286
21288
  Object.assign(this, er);
21287
21289
  Object.setPrototypeOf(this, NgwError.prototype);
21288
21290
  }
21289
21291
  }
21290
21292
 
21291
- var __defProp$C = Object.defineProperty;
21292
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21293
- var __publicField$p = (obj, key, value) => __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
21293
+ var __defProp$D = Object.defineProperty;
21294
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21295
+ var __publicField$q = (obj, key, value) => __defNormalProp$D(obj, typeof key !== "symbol" ? key + "" : key, value);
21294
21296
  class InsufficientPermissionsError extends NgwError {
21295
21297
  constructor(obj) {
21296
21298
  super(obj);
21297
- __publicField$p(this, "name", "InsufficientPermissionsError");
21298
- __publicField$p(this, "exception", "nextgisweb.core.exception.InsufficientPermissions");
21299
+ __publicField$q(this, "name", "InsufficientPermissionsError");
21300
+ __publicField$q(this, "exception", "nextgisweb.core.exception.InsufficientPermissions");
21299
21301
  Object.setPrototypeOf(this, InsufficientPermissionsError.prototype);
21300
21302
  }
21301
21303
  }
21302
21304
 
21303
- var __defProp$B = Object.defineProperty;
21304
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21305
- var __publicField$o = (obj, key, value) => __defNormalProp$B(obj, typeof key !== "symbol" ? key + "" : key, value);
21305
+ var __defProp$C = Object.defineProperty;
21306
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21307
+ var __publicField$p = (obj, key, value) => __defNormalProp$C(obj, typeof key !== "symbol" ? key + "" : key, value);
21306
21308
  let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
21307
21309
  constructor(obj) {
21308
21310
  super(obj);
21309
- __publicField$o(this, "message", "There is no response from the server or problem connecting to server.");
21310
- __publicField$o(this, "title", "Network error");
21311
- __publicField$o(this, "detail", "Check network connectivity and try again later.");
21311
+ __publicField$p(this, "message", "There is no response from the server or problem connecting to server.");
21312
+ __publicField$p(this, "title", "Network error");
21313
+ __publicField$p(this, "detail", "Check network connectivity and try again later.");
21312
21314
  Object.setPrototypeOf(this, NetworksResponseError.prototype);
21313
21315
  }
21314
21316
  };
@@ -21345,27 +21347,27 @@ var NgwLeaflet = (function () {
21345
21347
  return false;
21346
21348
  }
21347
21349
 
21348
- var __defProp$A = Object.defineProperty;
21349
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21350
- var __publicField$n = (obj, key, value) => __defNormalProp$A(obj, key + "" , value);
21350
+ var __defProp$B = Object.defineProperty;
21351
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21352
+ var __publicField$o = (obj, key, value) => __defNormalProp$B(obj, key + "" , value);
21351
21353
  class NetworkError extends Error {
21352
21354
  constructor(url) {
21353
21355
  super();
21354
- __publicField$n(this, "name", "NetworkError");
21356
+ __publicField$o(this, "name", "NetworkError");
21355
21357
  Object.setPrototypeOf(this, NetworkError.prototype);
21356
21358
  this.message = `Unable to request ${url}.
21357
21359
  Possibly invalid NGW URL entered or CORS not configured to get request from ${location.origin}`;
21358
21360
  }
21359
21361
  }
21360
21362
 
21361
- var __defProp$z = Object.defineProperty;
21362
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21363
- var __publicField$m = (obj, key, value) => __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
21363
+ var __defProp$A = Object.defineProperty;
21364
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21365
+ var __publicField$n = (obj, key, value) => __defNormalProp$A(obj, typeof key !== "symbol" ? key + "" : key, value);
21364
21366
  class ResourceNotFoundError extends NgwError {
21365
21367
  constructor(obj) {
21366
21368
  super(obj);
21367
- __publicField$m(this, "name", "ResourceNotFoundError");
21368
- __publicField$m(this, "exception", "nextgisweb.resource.exception.ResourceNotFound");
21369
+ __publicField$n(this, "name", "ResourceNotFoundError");
21370
+ __publicField$n(this, "exception", "nextgisweb.resource.exception.ResourceNotFound");
21369
21371
  Object.setPrototypeOf(this, ResourceNotFoundError.prototype);
21370
21372
  }
21371
21373
  }
@@ -21382,13 +21384,13 @@ var NgwLeaflet = (function () {
21382
21384
  isError: isError
21383
21385
  });
21384
21386
 
21385
- var __defProp$y = Object.defineProperty;
21386
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21387
- var __publicField$l = (obj, key, value) => __defNormalProp$y(obj, typeof key !== "symbol" ? key + "" : key, value);
21387
+ var __defProp$z = Object.defineProperty;
21388
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21389
+ var __publicField$m = (obj, key, value) => __defNormalProp$z(obj, typeof key !== "symbol" ? key + "" : key, value);
21388
21390
  class BaseAPIError extends Error {
21389
21391
  constructor(message) {
21390
21392
  super(message || "Something went wrong.");
21391
- __publicField$l(this, "title");
21393
+ __publicField$m(this, "title");
21392
21394
  this.name = "BaseAPIError";
21393
21395
  this.title = "Unknown API error";
21394
21396
  if (Error.captureStackTrace) {
@@ -21400,7 +21402,7 @@ var NgwLeaflet = (function () {
21400
21402
  // prettier-ignore
21401
21403
  constructor(message) {
21402
21404
  super(message || "There is no response from the server or problem connecting to server.");
21403
- __publicField$l(this, "detail");
21405
+ __publicField$m(this, "detail");
21404
21406
  this.title = "Network error";
21405
21407
  this.detail = "Check network connectivity and try again later.";
21406
21408
  }
@@ -21414,8 +21416,8 @@ var NgwLeaflet = (function () {
21414
21416
  class ServerResponseError extends BaseAPIError {
21415
21417
  constructor(data) {
21416
21418
  super(data.message);
21417
- __publicField$l(this, "detail");
21418
- __publicField$l(this, "data");
21419
+ __publicField$m(this, "detail");
21420
+ __publicField$m(this, "data");
21419
21421
  this.title = data.title || this.title;
21420
21422
  this.detail = data.detail || null;
21421
21423
  this.data = data;
@@ -21425,8 +21427,8 @@ var NgwLeaflet = (function () {
21425
21427
  // prettier-ignore
21426
21428
  constructor(message, data = {}) {
21427
21429
  super(message || "Unexpected error while processing long-running request.");
21428
- __publicField$l(this, "title");
21429
- __publicField$l(this, "data");
21430
+ __publicField$m(this, "title");
21431
+ __publicField$m(this, "data");
21430
21432
  this.name = "LunkwillError";
21431
21433
  this.title = "Long-running request error";
21432
21434
  this.data = data;
@@ -21446,35 +21448,35 @@ var NgwLeaflet = (function () {
21446
21448
  }
21447
21449
  }
21448
21450
 
21449
- var __defProp$x = Object.defineProperty;
21450
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
21451
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
21452
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
21453
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21454
- var __spreadValues$t = (a, b) => {
21451
+ var __defProp$y = Object.defineProperty;
21452
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
21453
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
21454
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
21455
+ var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21456
+ var __spreadValues$s = (a, b) => {
21455
21457
  for (var prop in b || (b = {}))
21456
- if (__hasOwnProp$t.call(b, prop))
21457
- __defNormalProp$x(a, prop, b[prop]);
21458
- if (__getOwnPropSymbols$t)
21459
- for (var prop of __getOwnPropSymbols$t(b)) {
21460
- if (__propIsEnum$t.call(b, prop))
21461
- __defNormalProp$x(a, prop, b[prop]);
21458
+ if (__hasOwnProp$s.call(b, prop))
21459
+ __defNormalProp$y(a, prop, b[prop]);
21460
+ if (__getOwnPropSymbols$s)
21461
+ for (var prop of __getOwnPropSymbols$s(b)) {
21462
+ if (__propIsEnum$s.call(b, prop))
21463
+ __defNormalProp$y(a, prop, b[prop]);
21462
21464
  }
21463
21465
  return a;
21464
21466
  };
21465
21467
  var __objRest$5 = (source, exclude) => {
21466
21468
  var target = {};
21467
21469
  for (var prop in source)
21468
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
21470
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
21469
21471
  target[prop] = source[prop];
21470
- if (source != null && __getOwnPropSymbols$t)
21471
- for (var prop of __getOwnPropSymbols$t(source)) {
21472
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
21472
+ if (source != null && __getOwnPropSymbols$s)
21473
+ for (var prop of __getOwnPropSymbols$s(source)) {
21474
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
21473
21475
  target[prop] = source[prop];
21474
21476
  }
21475
21477
  return target;
21476
21478
  };
21477
- var __async$q = (__this, __arguments, generator) => {
21479
+ var __async$r = (__this, __arguments, generator) => {
21478
21480
  return new Promise((resolve, reject) => {
21479
21481
  var fulfilled = (value) => {
21480
21482
  try {
@@ -21499,7 +21501,7 @@ var NgwLeaflet = (function () {
21499
21501
  return ct !== void 0 && ct !== null && ct.includes("application/vnd.lunkwill.request-summary+json");
21500
21502
  }
21501
21503
  function responseJson(response) {
21502
- return __async$q(this, null, function* () {
21504
+ return __async$r(this, null, function* () {
21503
21505
  try {
21504
21506
  return response.json();
21505
21507
  } catch (e) {
@@ -21508,7 +21510,7 @@ var NgwLeaflet = (function () {
21508
21510
  });
21509
21511
  }
21510
21512
  function lunkwillResponseUrl(lwResp) {
21511
- return __async$q(this, null, function* () {
21513
+ return __async$r(this, null, function* () {
21512
21514
  const lwData = yield responseJson(lwResp);
21513
21515
  let delay = lwData.delay_ms;
21514
21516
  const retry = lwData.retry_ms !== void 0 ? lwData.retry_ms : 2e3;
@@ -21552,7 +21554,7 @@ var NgwLeaflet = (function () {
21552
21554
  });
21553
21555
  }
21554
21556
  function lunkwillFetch(lwRespUrl) {
21555
- return __async$q(this, null, function* () {
21557
+ return __async$r(this, null, function* () {
21556
21558
  try {
21557
21559
  return yield window.fetch(lwRespUrl, { credentials: "same-origin" });
21558
21560
  } catch (e) {
@@ -21600,14 +21602,14 @@ var NgwLeaflet = (function () {
21600
21602
  return path + urlParams;
21601
21603
  }
21602
21604
  function request(path, options, cacheEngine) {
21603
- return __async$q(this, null, function* () {
21605
+ return __async$r(this, null, function* () {
21604
21606
  var _b, _c;
21605
21607
  const defaults = {
21606
21608
  method: "GET",
21607
21609
  credentials: "same-origin",
21608
21610
  headers: {}
21609
21611
  };
21610
- const _a = __spreadValues$t(__spreadValues$t({}, defaults), options), {
21612
+ const _a = __spreadValues$s(__spreadValues$s({}, defaults), options), {
21611
21613
  withCredentials,
21612
21614
  responseType,
21613
21615
  cacheProps,
@@ -21644,7 +21646,7 @@ var NgwLeaflet = (function () {
21644
21646
  opt.headers = headers;
21645
21647
  }
21646
21648
  const url = generateUrl(path, query);
21647
- const makeRequest = () => __async$q(null, null, function* () {
21649
+ const makeRequest = () => __async$r(null, null, function* () {
21648
21650
  let response;
21649
21651
  try {
21650
21652
  response = yield fetch(url, opt);
@@ -21687,7 +21689,7 @@ var NgwLeaflet = (function () {
21687
21689
  if (cacheEngine) {
21688
21690
  if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
21689
21691
  if (cache !== false) {
21690
- const props = cacheProps ? cacheProps : __spreadValues$t({}, objectRemoveEmpty({
21692
+ const props = cacheProps ? cacheProps : __spreadValues$s({}, objectRemoveEmpty({
21691
21693
  withCredentials,
21692
21694
  responseType
21693
21695
  }));
@@ -21707,38 +21709,38 @@ var NgwLeaflet = (function () {
21707
21709
  });
21708
21710
  }
21709
21711
 
21710
- var __defProp$w = Object.defineProperty;
21711
- var __defProps$j = Object.defineProperties;
21712
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
21713
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
21714
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
21715
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
21716
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21717
- var __spreadValues$s = (a, b) => {
21712
+ var __defProp$x = Object.defineProperty;
21713
+ var __defProps$k = Object.defineProperties;
21714
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
21715
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
21716
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
21717
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
21718
+ var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21719
+ var __spreadValues$r = (a, b) => {
21718
21720
  for (var prop in b || (b = {}))
21719
- if (__hasOwnProp$s.call(b, prop))
21720
- __defNormalProp$w(a, prop, b[prop]);
21721
- if (__getOwnPropSymbols$s)
21722
- for (var prop of __getOwnPropSymbols$s(b)) {
21723
- if (__propIsEnum$s.call(b, prop))
21724
- __defNormalProp$w(a, prop, b[prop]);
21721
+ if (__hasOwnProp$r.call(b, prop))
21722
+ __defNormalProp$x(a, prop, b[prop]);
21723
+ if (__getOwnPropSymbols$r)
21724
+ for (var prop of __getOwnPropSymbols$r(b)) {
21725
+ if (__propIsEnum$r.call(b, prop))
21726
+ __defNormalProp$x(a, prop, b[prop]);
21725
21727
  }
21726
21728
  return a;
21727
21729
  };
21728
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
21730
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
21729
21731
  var __objRest$4 = (source, exclude) => {
21730
21732
  var target = {};
21731
21733
  for (var prop in source)
21732
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
21734
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
21733
21735
  target[prop] = source[prop];
21734
- if (source != null && __getOwnPropSymbols$s)
21735
- for (var prop of __getOwnPropSymbols$s(source)) {
21736
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
21736
+ if (source != null && __getOwnPropSymbols$r)
21737
+ for (var prop of __getOwnPropSymbols$r(source)) {
21738
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
21737
21739
  target[prop] = source[prop];
21738
21740
  }
21739
21741
  return target;
21740
21742
  };
21741
- var __async$p = (__this, __arguments, generator) => {
21743
+ var __async$q = (__this, __arguments, generator) => {
21742
21744
  return new Promise((resolve, reject) => {
21743
21745
  var fulfilled = (value) => {
21744
21746
  try {
@@ -21789,7 +21791,7 @@ var NgwLeaflet = (function () {
21789
21791
  }
21790
21792
  function route(name, connector, ...rest) {
21791
21793
  const result = {
21792
- url: (opt) => __async$p(null, null, function* () {
21794
+ url: (opt) => __async$q(null, null, function* () {
21793
21795
  var _a;
21794
21796
  const routeData = yield connector.connect();
21795
21797
  const template = routeURL(
@@ -21817,10 +21819,10 @@ var NgwLeaflet = (function () {
21817
21819
  routeData,
21818
21820
  ...rest
21819
21821
  );
21820
- const headers = objectRemoveEmpty(__spreadValues$s(__spreadValues$s({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
21822
+ const headers = objectRemoveEmpty(__spreadValues$r(__spreadValues$r({}, connector.getAuthorizationHeaders()), optHeaders != null ? optHeaders : {}));
21821
21823
  return request(
21822
21824
  template,
21823
- __spreadProps$j(__spreadValues$s({
21825
+ __spreadProps$k(__spreadValues$r({
21824
21826
  headers
21825
21827
  }, restOpt), {
21826
21828
  method
@@ -21944,39 +21946,39 @@ var NgwLeaflet = (function () {
21944
21946
  }
21945
21947
  }
21946
21948
 
21947
- var __defProp$v = Object.defineProperty;
21948
- var __defProps$i = Object.defineProperties;
21949
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
21950
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
21951
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
21952
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
21953
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21954
- var __spreadValues$r = (a, b) => {
21949
+ var __defProp$w = Object.defineProperty;
21950
+ var __defProps$j = Object.defineProperties;
21951
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
21952
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
21953
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
21954
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
21955
+ var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21956
+ var __spreadValues$q = (a, b) => {
21955
21957
  for (var prop in b || (b = {}))
21956
- if (__hasOwnProp$r.call(b, prop))
21957
- __defNormalProp$v(a, prop, b[prop]);
21958
- if (__getOwnPropSymbols$r)
21959
- for (var prop of __getOwnPropSymbols$r(b)) {
21960
- if (__propIsEnum$r.call(b, prop))
21961
- __defNormalProp$v(a, prop, b[prop]);
21958
+ if (__hasOwnProp$q.call(b, prop))
21959
+ __defNormalProp$w(a, prop, b[prop]);
21960
+ if (__getOwnPropSymbols$q)
21961
+ for (var prop of __getOwnPropSymbols$q(b)) {
21962
+ if (__propIsEnum$q.call(b, prop))
21963
+ __defNormalProp$w(a, prop, b[prop]);
21962
21964
  }
21963
21965
  return a;
21964
21966
  };
21965
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
21967
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
21966
21968
  var __objRest$3 = (source, exclude) => {
21967
21969
  var target = {};
21968
21970
  for (var prop in source)
21969
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
21971
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
21970
21972
  target[prop] = source[prop];
21971
- if (source != null && __getOwnPropSymbols$r)
21972
- for (var prop of __getOwnPropSymbols$r(source)) {
21973
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
21973
+ if (source != null && __getOwnPropSymbols$q)
21974
+ for (var prop of __getOwnPropSymbols$q(source)) {
21975
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
21974
21976
  target[prop] = source[prop];
21975
21977
  }
21976
21978
  return target;
21977
21979
  };
21978
- var __publicField$k = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
21979
- var __async$o = (__this, __arguments, generator) => {
21980
+ var __publicField$l = (obj, key, value) => __defNormalProp$w(obj, typeof key !== "symbol" ? key + "" : key, value);
21981
+ var __async$p = (__this, __arguments, generator) => {
21980
21982
  return new Promise((resolve, reject) => {
21981
21983
  var fulfilled = (value) => {
21982
21984
  try {
@@ -22001,18 +22003,18 @@ var NgwLeaflet = (function () {
22001
22003
  class NgwConnector {
22002
22004
  constructor(options) {
22003
22005
  this.options = options;
22004
- __publicField$k(this, "id", ID$1++);
22005
- __publicField$k(this, "emitter", new EventEmitter());
22006
- __publicField$k(this, "user");
22007
- __publicField$k(this, "cache");
22008
- __publicField$k(this, "withCredentials");
22006
+ __publicField$l(this, "id", ID$1++);
22007
+ __publicField$l(this, "emitter", new EventEmitter());
22008
+ __publicField$l(this, "user");
22009
+ __publicField$l(this, "cache");
22010
+ __publicField$l(this, "withCredentials");
22009
22011
  // Dedicated cache for route requests, as these are executed before any other requests.
22010
22012
  // This cache does not need to be cleared during the session.
22011
- __publicField$k(this, "routeCache");
22012
- __publicField$k(this, "client", `NextGIS-NGW-Connector/${pkg.version}`);
22013
- __publicField$k(this, "routeStr", "/api/component/pyramid/route");
22014
- __publicField$k(this, "activeRequests", {});
22015
- __publicField$k(this, "requestTransform");
22013
+ __publicField$l(this, "routeCache");
22014
+ __publicField$l(this, "client", `NextGIS-NGW-Connector/${pkg.version}`);
22015
+ __publicField$l(this, "routeStr", "/api/component/pyramid/route");
22016
+ __publicField$l(this, "activeRequests", {});
22017
+ __publicField$l(this, "requestTransform");
22016
22018
  const exist = findConnector(options);
22017
22019
  this.cache = new Cache({ namespace: options.cacheId });
22018
22020
  this.routeCache = new Cache({ namespace: "routecache" });
@@ -22065,7 +22067,7 @@ var NgwLeaflet = (function () {
22065
22067
  * ```
22066
22068
  */
22067
22069
  connect() {
22068
- return __async$o(this, arguments, function* ({
22070
+ return __async$p(this, arguments, function* ({
22069
22071
  signal
22070
22072
  } = {}) {
22071
22073
  const auth = this.options.auth;
@@ -22104,14 +22106,14 @@ var NgwLeaflet = (function () {
22104
22106
  this.emitter.emit("logout");
22105
22107
  }
22106
22108
  getUserInfo(credentials, options) {
22107
- return __async$o(this, null, function* () {
22109
+ return __async$p(this, null, function* () {
22108
22110
  if (this.user && this.user.id) {
22109
22111
  return this.user;
22110
22112
  }
22111
22113
  if (credentials) {
22112
22114
  this.options.auth = credentials;
22113
22115
  }
22114
- const options_ = __spreadValues$r({
22116
+ const options_ = __spreadValues$q({
22115
22117
  headers: this.getAuthorizationHeaders(credentials),
22116
22118
  cache: true
22117
22119
  }, options);
@@ -22152,7 +22154,7 @@ var NgwLeaflet = (function () {
22152
22154
  this.activeRequests = {};
22153
22155
  }
22154
22156
  getActiveApiRequests() {
22155
- return __spreadValues$r({}, this.activeRequests);
22157
+ return __spreadValues$q({}, this.activeRequests);
22156
22158
  }
22157
22159
  route(name, ...rest) {
22158
22160
  return route(name, this, ...rest);
@@ -22164,7 +22166,7 @@ var NgwLeaflet = (function () {
22164
22166
  * @param options - Request options
22165
22167
  */
22166
22168
  makeQuery(_0, _1) {
22167
- return __async$o(this, arguments, function* (url, params, options = {}) {
22169
+ return __async$p(this, arguments, function* (url, params, options = {}) {
22168
22170
  var _b;
22169
22171
  url = (this.options.baseUrl ? this.options.baseUrl : "") + url;
22170
22172
  if (!url) {
@@ -22175,7 +22177,7 @@ var NgwLeaflet = (function () {
22175
22177
  url = template(url, restParams);
22176
22178
  }
22177
22179
  url = encodeURI(fixUrlStr(url));
22178
- options = __spreadValues$r({ withCredentials: this.withCredentials }, options);
22180
+ options = __spreadValues$q({ withCredentials: this.withCredentials }, options);
22179
22181
  const {
22180
22182
  cache,
22181
22183
  signal: externalSignal,
@@ -22197,7 +22199,7 @@ var NgwLeaflet = (function () {
22197
22199
  });
22198
22200
  }
22199
22201
  options.signal = internalSignal;
22200
- const createPromise = () => __async$o(this, null, function* () {
22202
+ const createPromise = () => __async$p(this, null, function* () {
22201
22203
  const id = REQUEST_ID++;
22202
22204
  this.activeRequests[id] = internalAbortController;
22203
22205
  try {
@@ -22207,7 +22209,7 @@ var NgwLeaflet = (function () {
22207
22209
  }
22208
22210
  });
22209
22211
  if (method === "GET" && cache !== false) {
22210
- const cacheOptions = cacheProps ? cacheProps : __spreadProps$i(__spreadValues$r({}, objectRemoveEmpty({
22212
+ const cacheOptions = cacheProps ? cacheProps : __spreadProps$j(__spreadValues$q({}, objectRemoveEmpty({
22211
22213
  headers,
22212
22214
  withCredentials,
22213
22215
  responseType,
@@ -22230,7 +22232,7 @@ var NgwLeaflet = (function () {
22230
22232
  var _a;
22231
22233
  if (this.user) {
22232
22234
  options = options || {};
22233
- options.headers = __spreadValues$r(__spreadValues$r({}, this.getAuthorizationHeaders()), options.headers);
22235
+ options.headers = __spreadValues$q(__spreadValues$q({}, this.getAuthorizationHeaders()), options.headers);
22234
22236
  }
22235
22237
  if (this.requestTransform) {
22236
22238
  const [transUrl, transOptions] = this.requestTransform(url, options);
@@ -22261,7 +22263,7 @@ var NgwLeaflet = (function () {
22261
22263
  });
22262
22264
  }
22263
22265
  _login(credentials, options) {
22264
- return __async$o(this, null, function* () {
22266
+ return __async$p(this, null, function* () {
22265
22267
  try {
22266
22268
  const data = yield this.getUserInfo(credentials, options);
22267
22269
  this.user = data;
@@ -22289,7 +22291,7 @@ var NgwLeaflet = (function () {
22289
22291
  return er;
22290
22292
  }
22291
22293
  }
22292
- __publicField$k(NgwConnector, "errors", errors);
22294
+ __publicField$l(NgwConnector, "errors", errors);
22293
22295
 
22294
22296
  function resourceCompare(res1, res2) {
22295
22297
  return objectDeepEqual(res1, res2);
@@ -22319,27 +22321,27 @@ var NgwLeaflet = (function () {
22319
22321
  return query;
22320
22322
  }
22321
22323
 
22322
- var __defProp$u = Object.defineProperty;
22323
- var __defProps$h = Object.defineProperties;
22324
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
22325
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
22326
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
22327
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
22328
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22329
- var __spreadValues$q = (a, b) => {
22324
+ var __defProp$v = Object.defineProperty;
22325
+ var __defProps$i = Object.defineProperties;
22326
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
22327
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
22328
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
22329
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
22330
+ var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22331
+ var __spreadValues$p = (a, b) => {
22330
22332
  for (var prop in b || (b = {}))
22331
- if (__hasOwnProp$q.call(b, prop))
22332
- __defNormalProp$u(a, prop, b[prop]);
22333
- if (__getOwnPropSymbols$q)
22334
- for (var prop of __getOwnPropSymbols$q(b)) {
22335
- if (__propIsEnum$q.call(b, prop))
22336
- __defNormalProp$u(a, prop, b[prop]);
22333
+ if (__hasOwnProp$p.call(b, prop))
22334
+ __defNormalProp$v(a, prop, b[prop]);
22335
+ if (__getOwnPropSymbols$p)
22336
+ for (var prop of __getOwnPropSymbols$p(b)) {
22337
+ if (__propIsEnum$p.call(b, prop))
22338
+ __defNormalProp$v(a, prop, b[prop]);
22337
22339
  }
22338
22340
  return a;
22339
22341
  };
22340
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
22341
- var __publicField$j = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
22342
- var __async$n = (__this, __arguments, generator) => {
22342
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
22343
+ var __publicField$k = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
22344
+ var __async$o = (__this, __arguments, generator) => {
22343
22345
  return new Promise((resolve, reject) => {
22344
22346
  var fulfilled = (value) => {
22345
22347
  try {
@@ -22364,8 +22366,8 @@ var NgwLeaflet = (function () {
22364
22366
  connector,
22365
22367
  cacheId
22366
22368
  }) {
22367
- __publicField$j(this, "cache");
22368
- __publicField$j(this, "connector");
22369
+ __publicField$k(this, "cache");
22370
+ __publicField$k(this, "connector");
22369
22371
  this.connector = connector;
22370
22372
  this.cache = new Cache({ namespace: cacheId });
22371
22373
  }
@@ -22380,7 +22382,7 @@ var NgwLeaflet = (function () {
22380
22382
  * Fetching resource would be cached to speed up next call
22381
22383
  */
22382
22384
  getOne(resource, requestOptions) {
22383
- const opt = __spreadValues$q({}, requestOptions);
22385
+ const opt = __spreadValues$p({}, requestOptions);
22384
22386
  if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
22385
22387
  if (resource.id !== void 0) {
22386
22388
  resource.id;
@@ -22457,8 +22459,8 @@ var NgwLeaflet = (function () {
22457
22459
  } else {
22458
22460
  Object.assign(query, resourceToQuery(resource));
22459
22461
  }
22460
- return this.connector.route("resource.search").get(__spreadProps$h(__spreadValues$q({}, requestOptions), {
22461
- query: __spreadValues$q({
22462
+ return this.connector.route("resource.search").get(__spreadProps$i(__spreadValues$p({}, requestOptions), {
22463
+ query: __spreadValues$p({
22462
22464
  serialization: "full"
22463
22465
  }, query)
22464
22466
  })).then((resources) => {
@@ -22511,7 +22513,7 @@ var NgwLeaflet = (function () {
22511
22513
  });
22512
22514
  }
22513
22515
  _getChildrenOf(_0, _1) {
22514
- return __async$n(this, arguments, function* (parentDef, requestOptions, _items = []) {
22516
+ return __async$o(this, arguments, function* (parentDef, requestOptions, _items = []) {
22515
22517
  let parent = void 0;
22516
22518
  if (typeof parentDef === "string") {
22517
22519
  parent = yield this.getId(parentDef, requestOptions);
@@ -22520,7 +22522,7 @@ var NgwLeaflet = (function () {
22520
22522
  } else {
22521
22523
  parent = parentDef;
22522
22524
  }
22523
- const items = yield this.connector.route("resource.collection").get(__spreadProps$h(__spreadValues$q({}, requestOptions), {
22525
+ const items = yield this.connector.route("resource.collection").get(__spreadProps$i(__spreadValues$p({}, requestOptions), {
22524
22526
  query: {
22525
22527
  parent
22526
22528
  }
@@ -22548,7 +22550,7 @@ var NgwLeaflet = (function () {
22548
22550
  });
22549
22551
  }
22550
22552
  _cleanResourceItemCache(id) {
22551
- return __async$n(this, null, function* () {
22553
+ return __async$o(this, null, function* () {
22552
22554
  var _a;
22553
22555
  const all = this.cache.all();
22554
22556
  const toDelete = [];
@@ -22601,13 +22603,13 @@ var NgwLeaflet = (function () {
22601
22603
  }
22602
22604
  }
22603
22605
 
22604
- var __defProp$t = Object.defineProperty;
22605
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22606
- var __publicField$i = (obj, key, value) => __defNormalProp$t(obj, key + "" , value);
22606
+ var __defProp$u = Object.defineProperty;
22607
+ var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22608
+ var __publicField$j = (obj, key, value) => __defNormalProp$u(obj, key + "" , value);
22607
22609
  class NgwConnectorExtended extends NgwConnector {
22608
22610
  constructor(options) {
22609
22611
  super(options);
22610
- __publicField$i(this, "resources");
22612
+ __publicField$j(this, "resources");
22611
22613
  this.resources = new ResourcesControl({
22612
22614
  connector: this,
22613
22615
  cacheId: options.cacheId
@@ -22817,25 +22819,25 @@ var NgwLeaflet = (function () {
22817
22819
  }
22818
22820
  }
22819
22821
 
22820
- var __defProp$s = Object.defineProperty;
22821
- var __defProps$g = Object.defineProperties;
22822
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
22823
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
22824
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
22825
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
22826
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22827
- var __spreadValues$p = (a, b) => {
22822
+ var __defProp$t = Object.defineProperty;
22823
+ var __defProps$h = Object.defineProperties;
22824
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
22825
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
22826
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
22827
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
22828
+ var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22829
+ var __spreadValues$o = (a, b) => {
22828
22830
  for (var prop in b || (b = {}))
22829
- if (__hasOwnProp$p.call(b, prop))
22830
- __defNormalProp$s(a, prop, b[prop]);
22831
- if (__getOwnPropSymbols$p)
22832
- for (var prop of __getOwnPropSymbols$p(b)) {
22833
- if (__propIsEnum$p.call(b, prop))
22834
- __defNormalProp$s(a, prop, b[prop]);
22831
+ if (__hasOwnProp$o.call(b, prop))
22832
+ __defNormalProp$t(a, prop, b[prop]);
22833
+ if (__getOwnPropSymbols$o)
22834
+ for (var prop of __getOwnPropSymbols$o(b)) {
22835
+ if (__propIsEnum$o.call(b, prop))
22836
+ __defNormalProp$t(a, prop, b[prop]);
22835
22837
  }
22836
22838
  return a;
22837
22839
  };
22838
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
22840
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
22839
22841
  function getNgwWebmapExtent(webmap) {
22840
22842
  const bottom = webmap["extent_bottom"];
22841
22843
  const left = webmap["extent_left"];
@@ -22902,14 +22904,14 @@ var NgwLeaflet = (function () {
22902
22904
  if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
22903
22905
  return connector.getResource(resource.parent.id, options).then((res) => {
22904
22906
  if (res) {
22905
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$p({}, options), {
22907
+ return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$o({}, options), {
22906
22908
  resourceId: res.resource.id,
22907
22909
  connector
22908
22910
  }));
22909
22911
  }
22910
22912
  });
22911
22913
  } else {
22912
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$p({}, options), {
22914
+ return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$o({}, options), {
22913
22915
  resourceId: resource.id,
22914
22916
  connector
22915
22917
  }));
@@ -22917,10 +22919,10 @@ var NgwLeaflet = (function () {
22917
22919
  }
22918
22920
  }
22919
22921
 
22920
- var __defProp$r = Object.defineProperty;
22921
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22922
- var __publicField$h = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
22923
- var __async$m = (__this, __arguments, generator) => {
22922
+ var __defProp$s = Object.defineProperty;
22923
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22924
+ var __publicField$i = (obj, key, value) => __defNormalProp$s(obj, typeof key !== "symbol" ? key + "" : key, value);
22925
+ var __async$n = (__this, __arguments, generator) => {
22924
22926
  return new Promise((resolve, reject) => {
22925
22927
  var fulfilled = (value) => {
22926
22928
  try {
@@ -22942,18 +22944,18 @@ var NgwLeaflet = (function () {
22942
22944
  };
22943
22945
  class NgwResource {
22944
22946
  constructor() {
22945
- __publicField$h(this, "item");
22946
- __publicField$h(this, "connector");
22947
- __publicField$h(this, "_extent");
22947
+ __publicField$i(this, "item");
22948
+ __publicField$i(this, "connector");
22949
+ __publicField$i(this, "_extent");
22948
22950
  }
22949
22951
  /** @deprecated use {@link NgwResource.getBounds} instead */
22950
22952
  getExtent() {
22951
- return __async$m(this, null, function* () {
22953
+ return __async$n(this, null, function* () {
22952
22954
  return this.getBounds();
22953
22955
  });
22954
22956
  }
22955
22957
  getBounds(options) {
22956
- return __async$m(this, null, function* () {
22958
+ return __async$n(this, null, function* () {
22957
22959
  if (this._extent) {
22958
22960
  return this._extent;
22959
22961
  }
@@ -22969,7 +22971,7 @@ var NgwLeaflet = (function () {
22969
22971
  }
22970
22972
  }
22971
22973
 
22972
- var __async$l = (__this, __arguments, generator) => {
22974
+ var __async$m = (__this, __arguments, generator) => {
22973
22975
  return new Promise((resolve, reject) => {
22974
22976
  var fulfilled = (value) => {
22975
22977
  try {
@@ -22990,7 +22992,7 @@ var NgwLeaflet = (function () {
22990
22992
  });
22991
22993
  };
22992
22994
  function resourceIdFromLayerOptions(options, connector) {
22993
- return __async$l(this, null, function* () {
22995
+ return __async$m(this, null, function* () {
22994
22996
  const resource = options.resource;
22995
22997
  const item = resource;
22996
22998
  let { keyname, resourceId } = options;
@@ -23015,24 +23017,24 @@ var NgwLeaflet = (function () {
23015
23017
  });
23016
23018
  }
23017
23019
 
23018
- var __defProp$q = Object.defineProperty;
23019
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
23020
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
23021
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
23022
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23023
- var __spreadValues$o = (a, b) => {
23020
+ var __defProp$r = Object.defineProperty;
23021
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
23022
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
23023
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
23024
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23025
+ var __spreadValues$n = (a, b) => {
23024
23026
  for (var prop in b || (b = {}))
23025
- if (__hasOwnProp$o.call(b, prop))
23026
- __defNormalProp$q(a, prop, b[prop]);
23027
- if (__getOwnPropSymbols$o)
23028
- for (var prop of __getOwnPropSymbols$o(b)) {
23029
- if (__propIsEnum$o.call(b, prop))
23030
- __defNormalProp$q(a, prop, b[prop]);
23027
+ if (__hasOwnProp$n.call(b, prop))
23028
+ __defNormalProp$r(a, prop, b[prop]);
23029
+ if (__getOwnPropSymbols$n)
23030
+ for (var prop of __getOwnPropSymbols$n(b)) {
23031
+ if (__propIsEnum$n.call(b, prop))
23032
+ __defNormalProp$r(a, prop, b[prop]);
23031
23033
  }
23032
23034
  return a;
23033
23035
  };
23034
- var __publicField$g = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
23035
- var __async$k = (__this, __arguments, generator) => {
23036
+ var __publicField$h = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
23037
+ var __async$l = (__this, __arguments, generator) => {
23036
23038
  return new Promise((resolve, reject) => {
23037
23039
  var fulfilled = (value) => {
23038
23040
  try {
@@ -23053,7 +23055,7 @@ var NgwLeaflet = (function () {
23053
23055
  });
23054
23056
  };
23055
23057
  function createOnFirstShowAdapter(_0) {
23056
- return __async$k(this, arguments, function* ({
23058
+ return __async$l(this, arguments, function* ({
23057
23059
  webMap,
23058
23060
  adapterOptions = {},
23059
23061
  onLayerAdded,
@@ -23061,10 +23063,10 @@ var NgwLeaflet = (function () {
23061
23063
  }) {
23062
23064
  class OnFirstShowAdapter {
23063
23065
  constructor() {
23064
- __publicField$g(this, "options", {});
23065
- __publicField$g(this, "layer", []);
23066
- __publicField$g(this, "_removed", false);
23067
- __publicField$g(this, "_creatingInProgress", false);
23066
+ __publicField$h(this, "options", {});
23067
+ __publicField$h(this, "layer", []);
23068
+ __publicField$h(this, "_removed", false);
23069
+ __publicField$h(this, "_creatingInProgress", false);
23068
23070
  }
23069
23071
  addLayer() {
23070
23072
  return this.layer;
@@ -23079,7 +23081,7 @@ var NgwLeaflet = (function () {
23079
23081
  return this._removed;
23080
23082
  }
23081
23083
  showLayer() {
23082
- return __async$k(this, null, function* () {
23084
+ return __async$l(this, null, function* () {
23083
23085
  this.options.visibility = true;
23084
23086
  if (this.layer.length) {
23085
23087
  for (const x of this.layer) {
@@ -23091,7 +23093,7 @@ var NgwLeaflet = (function () {
23091
23093
  });
23092
23094
  }
23093
23095
  hideLayer() {
23094
- return __async$k(this, null, function* () {
23096
+ return __async$l(this, null, function* () {
23095
23097
  this.options.visibility = false;
23096
23098
  if (this.layer) {
23097
23099
  for (const x of this.layer) {
@@ -23101,12 +23103,12 @@ var NgwLeaflet = (function () {
23101
23103
  });
23102
23104
  }
23103
23105
  loadLayer() {
23104
- return __async$k(this, null, function* () {
23106
+ return __async$l(this, null, function* () {
23105
23107
  if (!this.layer.length && !this._creatingInProgress) {
23106
23108
  this._creatingInProgress = true;
23107
23109
  const Adapter = yield createAdapter(this);
23108
23110
  if (Adapter) {
23109
- const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$o({}, adapterOptions));
23111
+ const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$n({}, adapterOptions));
23110
23112
  const realLayer = yield adapter.addLayer({
23111
23113
  order: this.options.order,
23112
23114
  headers: this.options.headers,
@@ -23135,7 +23137,7 @@ var NgwLeaflet = (function () {
23135
23137
  });
23136
23138
  }
23137
23139
 
23138
- var __async$j = (__this, __arguments, generator) => {
23140
+ var __async$k = (__this, __arguments, generator) => {
23139
23141
  return new Promise((resolve, reject) => {
23140
23142
  var fulfilled = (value) => {
23141
23143
  try {
@@ -23156,7 +23158,7 @@ var NgwLeaflet = (function () {
23156
23158
  });
23157
23159
  };
23158
23160
  function createOnFirstShowNgwAdapter(_0) {
23159
- return __async$j(this, arguments, function* ({
23161
+ return __async$k(this, arguments, function* ({
23160
23162
  webMap,
23161
23163
  connector,
23162
23164
  item,
@@ -23190,26 +23192,26 @@ var NgwLeaflet = (function () {
23190
23192
  });
23191
23193
  }
23192
23194
 
23193
- var __defProp$p = Object.defineProperty;
23194
- var __defProps$f = Object.defineProperties;
23195
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
23196
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
23197
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
23198
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
23199
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23200
- var __spreadValues$n = (a, b) => {
23195
+ var __defProp$q = Object.defineProperty;
23196
+ var __defProps$g = Object.defineProperties;
23197
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
23198
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
23199
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
23200
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
23201
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23202
+ var __spreadValues$m = (a, b) => {
23201
23203
  for (var prop in b || (b = {}))
23202
- if (__hasOwnProp$n.call(b, prop))
23203
- __defNormalProp$p(a, prop, b[prop]);
23204
- if (__getOwnPropSymbols$n)
23205
- for (var prop of __getOwnPropSymbols$n(b)) {
23206
- if (__propIsEnum$n.call(b, prop))
23207
- __defNormalProp$p(a, prop, b[prop]);
23204
+ if (__hasOwnProp$m.call(b, prop))
23205
+ __defNormalProp$q(a, prop, b[prop]);
23206
+ if (__getOwnPropSymbols$m)
23207
+ for (var prop of __getOwnPropSymbols$m(b)) {
23208
+ if (__propIsEnum$m.call(b, prop))
23209
+ __defNormalProp$q(a, prop, b[prop]);
23208
23210
  }
23209
23211
  return a;
23210
23212
  };
23211
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
23212
- var __async$i = (__this, __arguments, generator) => {
23213
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
23214
+ var __async$j = (__this, __arguments, generator) => {
23213
23215
  return new Promise((resolve, reject) => {
23214
23216
  var fulfilled = (value) => {
23215
23217
  try {
@@ -23276,7 +23278,7 @@ var NgwLeaflet = (function () {
23276
23278
  );
23277
23279
  }
23278
23280
  function createFeatureFieldFilterQueries(opt) {
23279
- return __async$i(this, null, function* () {
23281
+ return __async$j(this, null, function* () {
23280
23282
  const queries = getQueries(opt);
23281
23283
  const itemsParts = yield Promise.all(queries);
23282
23284
  const ids = [];
@@ -23320,12 +23322,12 @@ var NgwLeaflet = (function () {
23320
23322
  for (const f of filters_) {
23321
23323
  if (isPropertyFilter$1(f)) {
23322
23324
  _queries.push(
23323
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$n({}, opt), {
23325
+ fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$m({}, opt), {
23324
23326
  paramList: [..._parentAllParams, ...paramList, createParam(f)]
23325
23327
  }))
23326
23328
  );
23327
23329
  } else {
23328
- getQueries(__spreadProps$f(__spreadValues$n({}, opt), { filters: f }), _queries, [..._parentAllParams]);
23330
+ getQueries(__spreadProps$g(__spreadValues$m({}, opt), { filters: f }), _queries, [..._parentAllParams]);
23329
23331
  }
23330
23332
  }
23331
23333
  } else if (logic === "all") {
@@ -23340,14 +23342,14 @@ var NgwLeaflet = (function () {
23340
23342
  }
23341
23343
  if (propertiesFilterList.length) {
23342
23344
  for (const x of propertiesFilterList) {
23343
- getQueries(__spreadProps$f(__spreadValues$n({}, opt), { filters: x }), _queries, [
23345
+ getQueries(__spreadProps$g(__spreadValues$m({}, opt), { filters: x }), _queries, [
23344
23346
  ..._parentAllParams,
23345
23347
  ...filters2
23346
23348
  ]);
23347
23349
  }
23348
23350
  } else {
23349
23351
  _queries.push(
23350
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$n({}, opt), {
23352
+ fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$m({}, opt), {
23351
23353
  paramList: [..._parentAllParams, ...paramList, ...filters2]
23352
23354
  }))
23353
23355
  );
@@ -23363,7 +23365,7 @@ var NgwLeaflet = (function () {
23363
23365
  return `POLYGON((${polygon.join(", ")}))`;
23364
23366
  }
23365
23367
  function fetchNgwLayerItemsRequest(options) {
23366
- const params = __spreadValues$n({}, FEATURE_REQUEST_PARAMS);
23368
+ const params = __spreadValues$m({}, FEATURE_REQUEST_PARAMS);
23367
23369
  const {
23368
23370
  limit,
23369
23371
  query,
@@ -23399,7 +23401,7 @@ var NgwLeaflet = (function () {
23399
23401
  if (paramList) {
23400
23402
  Object.assign(params, paramListToQuery(paramList));
23401
23403
  }
23402
- return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$n(__spreadValues$n({}, params), query), cache, signal });
23404
+ return connector.route("feature_layer.feature.collection", { id: Number(resourceId) }).get({ query: __spreadValues$m(__spreadValues$m({}, params), query), cache, signal });
23403
23405
  }
23404
23406
 
23405
23407
  function prepareNgwFieldsToPropertiesFilter(fields) {
@@ -23428,26 +23430,26 @@ var NgwLeaflet = (function () {
23428
23430
  return fields;
23429
23431
  }
23430
23432
 
23431
- var __defProp$o = Object.defineProperty;
23432
- var __defProps$e = Object.defineProperties;
23433
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
23434
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
23435
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
23436
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
23437
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23438
- var __spreadValues$m = (a, b) => {
23433
+ var __defProp$p = Object.defineProperty;
23434
+ var __defProps$f = Object.defineProperties;
23435
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
23436
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
23437
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
23438
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
23439
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23440
+ var __spreadValues$l = (a, b) => {
23439
23441
  for (var prop in b || (b = {}))
23440
- if (__hasOwnProp$m.call(b, prop))
23441
- __defNormalProp$o(a, prop, b[prop]);
23442
- if (__getOwnPropSymbols$m)
23443
- for (var prop of __getOwnPropSymbols$m(b)) {
23444
- if (__propIsEnum$m.call(b, prop))
23445
- __defNormalProp$o(a, prop, b[prop]);
23442
+ if (__hasOwnProp$l.call(b, prop))
23443
+ __defNormalProp$p(a, prop, b[prop]);
23444
+ if (__getOwnPropSymbols$l)
23445
+ for (var prop of __getOwnPropSymbols$l(b)) {
23446
+ if (__propIsEnum$l.call(b, prop))
23447
+ __defNormalProp$p(a, prop, b[prop]);
23446
23448
  }
23447
23449
  return a;
23448
23450
  };
23449
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
23450
- var __async$h = (__this, __arguments, generator) => {
23451
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
23452
+ var __async$i = (__this, __arguments, generator) => {
23451
23453
  return new Promise((resolve, reject) => {
23452
23454
  var fulfilled = (value) => {
23453
23455
  try {
@@ -23468,17 +23470,17 @@ var NgwLeaflet = (function () {
23468
23470
  });
23469
23471
  };
23470
23472
  function fetchNgwLayerItems(options) {
23471
- return __async$h(this, null, function* () {
23473
+ return __async$i(this, null, function* () {
23472
23474
  var _a;
23473
23475
  const filters = options.filters;
23474
23476
  if (filters) {
23475
- let data = yield createFeatureFieldFilterQueries(__spreadProps$e(__spreadValues$m({}, options), {
23477
+ let data = yield createFeatureFieldFilterQueries(__spreadProps$f(__spreadValues$l({}, options), {
23476
23478
  filters
23477
23479
  }));
23478
23480
  const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
23479
23481
  if (clientFilterValidate) {
23480
23482
  data = data.filter((y) => {
23481
- const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$e(__spreadValues$m({}, y.fields), {
23483
+ const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$f(__spreadValues$l({}, y.fields), {
23482
23484
  id: y.id
23483
23485
  }));
23484
23486
  const result = propertiesFilter(fields, filters);
@@ -23596,26 +23598,26 @@ var NgwLeaflet = (function () {
23596
23598
  }
23597
23599
  }
23598
23600
 
23599
- var __defProp$n = Object.defineProperty;
23600
- var __defProps$d = Object.defineProperties;
23601
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
23602
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
23603
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
23604
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
23605
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23606
- var __spreadValues$l = (a, b) => {
23601
+ var __defProp$o = Object.defineProperty;
23602
+ var __defProps$e = Object.defineProperties;
23603
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
23604
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
23605
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
23606
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
23607
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23608
+ var __spreadValues$k = (a, b) => {
23607
23609
  for (var prop in b || (b = {}))
23608
- if (__hasOwnProp$l.call(b, prop))
23609
- __defNormalProp$n(a, prop, b[prop]);
23610
- if (__getOwnPropSymbols$l)
23611
- for (var prop of __getOwnPropSymbols$l(b)) {
23612
- if (__propIsEnum$l.call(b, prop))
23613
- __defNormalProp$n(a, prop, b[prop]);
23610
+ if (__hasOwnProp$k.call(b, prop))
23611
+ __defNormalProp$o(a, prop, b[prop]);
23612
+ if (__getOwnPropSymbols$k)
23613
+ for (var prop of __getOwnPropSymbols$k(b)) {
23614
+ if (__propIsEnum$k.call(b, prop))
23615
+ __defNormalProp$o(a, prop, b[prop]);
23614
23616
  }
23615
23617
  return a;
23616
23618
  };
23617
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
23618
- var __async$g = (__this, __arguments, generator) => {
23619
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
23620
+ var __async$h = (__this, __arguments, generator) => {
23619
23621
  return new Promise((resolve, reject) => {
23620
23622
  var fulfilled = (value) => {
23621
23623
  try {
@@ -23636,56 +23638,56 @@ var NgwLeaflet = (function () {
23636
23638
  });
23637
23639
  };
23638
23640
  function fetchNgwLayerItem(options) {
23639
- return __async$g(this, null, function* () {
23640
- const params = __spreadValues$l({}, FEATURE_REQUEST_PARAMS);
23641
+ return __async$h(this, null, function* () {
23642
+ const params = __spreadValues$k({}, FEATURE_REQUEST_PARAMS);
23641
23643
  updateItemRequestParam(params, options);
23642
23644
  const resp = yield options.connector.route("feature_layer.feature.item", {
23643
23645
  id: Number(options.resourceId),
23644
23646
  fid: options.featureId
23645
- }).get(__spreadProps$d(__spreadValues$l({}, options), { query: params }));
23646
- const toGeojson = () => __async$g(null, null, function* () {
23647
+ }).get(__spreadProps$e(__spreadValues$k({}, options), { query: params }));
23648
+ const toGeojson = () => __async$h(null, null, function* () {
23647
23649
  if (resp.geom) {
23648
23650
  return createGeoJsonFeature(resp);
23649
23651
  } else {
23650
- const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$d(__spreadValues$l({}, options), {
23652
+ const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$e(__spreadValues$k({}, options), {
23651
23653
  geom: true,
23652
23654
  fields: null,
23653
23655
  extensions: null
23654
23656
  }));
23655
23657
  const geom = onlyGeomItem.geom;
23656
- return createGeoJsonFeature(__spreadProps$d(__spreadValues$l({}, resp), { geom }));
23658
+ return createGeoJsonFeature(__spreadProps$e(__spreadValues$k({}, resp), { geom }));
23657
23659
  }
23658
23660
  });
23659
- return __spreadProps$d(__spreadValues$l({}, resp), {
23661
+ return __spreadProps$e(__spreadValues$k({}, resp), {
23660
23662
  toGeojson
23661
23663
  });
23662
23664
  });
23663
23665
  }
23664
23666
 
23665
- var __defProp$m = Object.defineProperty;
23666
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
23667
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
23668
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
23669
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23670
- var __spreadValues$k = (a, b) => {
23667
+ var __defProp$n = Object.defineProperty;
23668
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
23669
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
23670
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
23671
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23672
+ var __spreadValues$j = (a, b) => {
23671
23673
  for (var prop in b || (b = {}))
23672
- if (__hasOwnProp$k.call(b, prop))
23673
- __defNormalProp$m(a, prop, b[prop]);
23674
- if (__getOwnPropSymbols$k)
23675
- for (var prop of __getOwnPropSymbols$k(b)) {
23676
- if (__propIsEnum$k.call(b, prop))
23677
- __defNormalProp$m(a, prop, b[prop]);
23674
+ if (__hasOwnProp$j.call(b, prop))
23675
+ __defNormalProp$n(a, prop, b[prop]);
23676
+ if (__getOwnPropSymbols$j)
23677
+ for (var prop of __getOwnPropSymbols$j(b)) {
23678
+ if (__propIsEnum$j.call(b, prop))
23679
+ __defNormalProp$n(a, prop, b[prop]);
23678
23680
  }
23679
23681
  return a;
23680
23682
  };
23681
- var __publicField$f = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
23683
+ var __publicField$g = (obj, key, value) => __defNormalProp$n(obj, typeof key !== "symbol" ? key + "" : key, value);
23682
23684
  class BookmarkItem {
23683
23685
  constructor(options) {
23684
23686
  this.options = options;
23685
- __publicField$f(this, "name");
23686
- __publicField$f(this, "resourceId");
23687
- __publicField$f(this, "item");
23688
- __publicField$f(this, "_extent");
23687
+ __publicField$g(this, "name");
23688
+ __publicField$g(this, "resourceId");
23689
+ __publicField$g(this, "item");
23690
+ __publicField$g(this, "_extent");
23689
23691
  this.resourceId = options.resourceId;
23690
23692
  const item = options.item;
23691
23693
  this.item = item;
@@ -23715,7 +23717,7 @@ var NgwLeaflet = (function () {
23715
23717
  if (this.item.geom) {
23716
23718
  return Promise.resolve(createGeoJsonFeature(this.item));
23717
23719
  } else {
23718
- return fetchNgwLayerItem(__spreadValues$k({
23720
+ return fetchNgwLayerItem(__spreadValues$j({
23719
23721
  resourceId: this.resourceId,
23720
23722
  featureId: this.item.id,
23721
23723
  connector: this.options.connector,
@@ -23733,19 +23735,19 @@ var NgwLeaflet = (function () {
23733
23735
 
23734
23736
  const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
23735
23737
 
23736
- var __defProp$l = Object.defineProperty;
23737
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23738
- var __publicField$e = (obj, key, value) => __defNormalProp$l(obj, typeof key !== "symbol" ? key + "" : key, value);
23738
+ var __defProp$m = Object.defineProperty;
23739
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23740
+ var __publicField$f = (obj, key, value) => __defNormalProp$m(obj, typeof key !== "symbol" ? key + "" : key, value);
23739
23741
  class BaseProperty {
23740
23742
  constructor(name, item, options) {
23741
- __publicField$e(this, "options");
23742
- __publicField$e(this, "emitter", new EventEmitter());
23743
- __publicField$e(this, "name");
23744
- __publicField$e(this, "item");
23745
- __publicField$e(this, "_blocked", false);
23746
- __publicField$e(this, "_container");
23747
- __publicField$e(this, "__value");
23748
- __publicField$e(this, "_removeEventsListener");
23743
+ __publicField$f(this, "options");
23744
+ __publicField$f(this, "emitter", new EventEmitter());
23745
+ __publicField$f(this, "name");
23746
+ __publicField$f(this, "item");
23747
+ __publicField$f(this, "_blocked", false);
23748
+ __publicField$f(this, "_container");
23749
+ __publicField$f(this, "__value");
23750
+ __publicField$f(this, "_removeEventsListener");
23749
23751
  this.item = item;
23750
23752
  this.options = Object.assign({}, options);
23751
23753
  this.name = name;
@@ -23848,26 +23850,26 @@ var NgwLeaflet = (function () {
23848
23850
  }
23849
23851
  }
23850
23852
 
23851
- var __defProp$k = Object.defineProperty;
23852
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
23853
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
23854
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
23855
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23856
- var __spreadValues$j = (a, b) => {
23853
+ var __defProp$l = Object.defineProperty;
23854
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
23855
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
23856
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
23857
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23858
+ var __spreadValues$i = (a, b) => {
23857
23859
  for (var prop in b || (b = {}))
23858
- if (__hasOwnProp$j.call(b, prop))
23859
- __defNormalProp$k(a, prop, b[prop]);
23860
- if (__getOwnPropSymbols$j)
23861
- for (var prop of __getOwnPropSymbols$j(b)) {
23862
- if (__propIsEnum$j.call(b, prop))
23863
- __defNormalProp$k(a, prop, b[prop]);
23860
+ if (__hasOwnProp$i.call(b, prop))
23861
+ __defNormalProp$l(a, prop, b[prop]);
23862
+ if (__getOwnPropSymbols$i)
23863
+ for (var prop of __getOwnPropSymbols$i(b)) {
23864
+ if (__propIsEnum$i.call(b, prop))
23865
+ __defNormalProp$l(a, prop, b[prop]);
23864
23866
  }
23865
23867
  return a;
23866
23868
  };
23867
- var __publicField$d = (obj, key, value) => __defNormalProp$k(obj, key + "" , value);
23869
+ var __publicField$e = (obj, key, value) => __defNormalProp$l(obj, key + "" , value);
23868
23870
  const _CheckProperty = class _CheckProperty extends BaseProperty {
23869
23871
  constructor(name, item, options) {
23870
- super(name, item, __spreadValues$j(__spreadValues$j({}, _CheckProperty.options), options));
23872
+ super(name, item, __spreadValues$i(__spreadValues$i({}, _CheckProperty.options), options));
23871
23873
  this.set(this.get());
23872
23874
  }
23873
23875
  update(value, options) {
@@ -23948,13 +23950,13 @@ var NgwLeaflet = (function () {
23948
23950
  _blockChild(item, options) {
23949
23951
  const prop = item.properties && item.properties.property(this.name);
23950
23952
  if (prop && prop.block) {
23951
- prop.block(__spreadValues$j({ silent: true }, options || {}));
23953
+ prop.block(__spreadValues$i({ silent: true }, options || {}));
23952
23954
  }
23953
23955
  }
23954
23956
  _unBlockChild(item, options) {
23955
23957
  const prop = item.properties && item.properties.property(this.name);
23956
23958
  if (prop && prop.unBlock) {
23957
- prop.unBlock(__spreadValues$j({ silent: true }, options || {}));
23959
+ prop.unBlock(__spreadValues$i({ silent: true }, options || {}));
23958
23960
  }
23959
23961
  }
23960
23962
  _propagation(value, options) {
@@ -23964,7 +23966,7 @@ var NgwLeaflet = (function () {
23964
23966
  const child = children[fry];
23965
23967
  const property = child.properties && child.properties.property(this.name);
23966
23968
  if (property) {
23967
- property.set(value, __spreadValues$j(__spreadValues$j({}, options), {
23969
+ property.set(value, __spreadValues$i(__spreadValues$i({}, options), {
23968
23970
  propagation: true,
23969
23971
  bubble: false
23970
23972
  }));
@@ -23973,7 +23975,7 @@ var NgwLeaflet = (function () {
23973
23975
  }
23974
23976
  }
23975
23977
  };
23976
- __publicField$d(_CheckProperty, "options", {
23978
+ __publicField$e(_CheckProperty, "options", {
23977
23979
  hierarchy: true,
23978
23980
  bubble: false,
23979
23981
  propagation: false,
@@ -23982,31 +23984,31 @@ var NgwLeaflet = (function () {
23982
23984
  });
23983
23985
  let CheckProperty = _CheckProperty;
23984
23986
 
23985
- var __defProp$j = Object.defineProperty;
23986
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
23987
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
23988
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
23989
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23990
- var __spreadValues$i = (a, b) => {
23987
+ var __defProp$k = Object.defineProperty;
23988
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
23989
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
23990
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
23991
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23992
+ var __spreadValues$h = (a, b) => {
23991
23993
  for (var prop in b || (b = {}))
23992
- if (__hasOwnProp$i.call(b, prop))
23993
- __defNormalProp$j(a, prop, b[prop]);
23994
- if (__getOwnPropSymbols$i)
23995
- for (var prop of __getOwnPropSymbols$i(b)) {
23996
- if (__propIsEnum$i.call(b, prop))
23997
- __defNormalProp$j(a, prop, b[prop]);
23994
+ if (__hasOwnProp$h.call(b, prop))
23995
+ __defNormalProp$k(a, prop, b[prop]);
23996
+ if (__getOwnPropSymbols$h)
23997
+ for (var prop of __getOwnPropSymbols$h(b)) {
23998
+ if (__propIsEnum$h.call(b, prop))
23999
+ __defNormalProp$k(a, prop, b[prop]);
23998
24000
  }
23999
24001
  return a;
24000
24002
  };
24001
- var __publicField$c = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
24003
+ var __publicField$d = (obj, key, value) => __defNormalProp$k(obj, typeof key !== "symbol" ? key + "" : key, value);
24002
24004
  const BOOLEAN_TYPE = "boolean";
24003
24005
  const STRING_TYPE = "string";
24004
24006
  const _ItemProperties = class _ItemProperties {
24005
24007
  constructor(item, propertiesList) {
24006
24008
  this.item = item;
24007
- __publicField$c(this, "options", {});
24008
- __publicField$c(this, "_properties", {});
24009
- __publicField$c(this, "_propertiesList", []);
24009
+ __publicField$d(this, "options", {});
24010
+ __publicField$d(this, "_properties", {});
24011
+ __publicField$d(this, "_propertiesList", []);
24010
24012
  if (propertiesList) {
24011
24013
  propertiesList.forEach(this._setPropertyHandler.bind(this));
24012
24014
  }
@@ -24046,7 +24048,7 @@ var NgwLeaflet = (function () {
24046
24048
  _setPropertyHandler(propOpt) {
24047
24049
  const Handler = this._getHandler(propOpt);
24048
24050
  if (Handler && propOpt.name) {
24049
- const options = __spreadValues$i({}, propOpt);
24051
+ const options = __spreadValues$h({}, propOpt);
24050
24052
  this._properties[propOpt.name] = new Handler(
24051
24053
  propOpt.name,
24052
24054
  this.item,
@@ -24069,7 +24071,7 @@ var NgwLeaflet = (function () {
24069
24071
  return Handler;
24070
24072
  }
24071
24073
  };
24072
- __publicField$c(_ItemProperties, "handlers", {
24074
+ __publicField$d(_ItemProperties, "handlers", {
24073
24075
  CheckProperty
24074
24076
  });
24075
24077
  let ItemProperties = _ItemProperties;
@@ -24176,14 +24178,14 @@ var NgwLeaflet = (function () {
24176
24178
  return true;
24177
24179
  }
24178
24180
 
24179
- var __defProp$i = Object.defineProperty;
24180
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24181
- var __publicField$b = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
24181
+ var __defProp$j = Object.defineProperty;
24182
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24183
+ var __publicField$c = (obj, key, value) => __defNormalProp$j(obj, typeof key !== "symbol" ? key + "" : key, value);
24182
24184
  class TreeHelper {
24183
24185
  constructor(item) {
24184
- __publicField$b(this, "item");
24185
- __publicField$b(this, "_children", []);
24186
- __publicField$b(this, "_parent");
24186
+ __publicField$c(this, "item");
24187
+ __publicField$c(this, "_children", []);
24188
+ __publicField$c(this, "_parent");
24187
24189
  this.item = item;
24188
24190
  }
24189
24191
  setParent(parent) {
@@ -24246,32 +24248,32 @@ var NgwLeaflet = (function () {
24246
24248
  }
24247
24249
  }
24248
24250
 
24249
- var __defProp$h = Object.defineProperty;
24250
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
24251
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
24252
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
24253
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24254
- var __spreadValues$h = (a, b) => {
24251
+ var __defProp$i = Object.defineProperty;
24252
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
24253
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
24254
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
24255
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24256
+ var __spreadValues$g = (a, b) => {
24255
24257
  for (var prop in b || (b = {}))
24256
- if (__hasOwnProp$h.call(b, prop))
24257
- __defNormalProp$h(a, prop, b[prop]);
24258
- if (__getOwnPropSymbols$h)
24259
- for (var prop of __getOwnPropSymbols$h(b)) {
24260
- if (__propIsEnum$h.call(b, prop))
24261
- __defNormalProp$h(a, prop, b[prop]);
24258
+ if (__hasOwnProp$g.call(b, prop))
24259
+ __defNormalProp$i(a, prop, b[prop]);
24260
+ if (__getOwnPropSymbols$g)
24261
+ for (var prop of __getOwnPropSymbols$g(b)) {
24262
+ if (__propIsEnum$g.call(b, prop))
24263
+ __defNormalProp$i(a, prop, b[prop]);
24262
24264
  }
24263
24265
  return a;
24264
24266
  };
24265
- var __publicField$a = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
24267
+ var __publicField$b = (obj, key, value) => __defNormalProp$i(obj, typeof key !== "symbol" ? key + "" : key, value);
24266
24268
  let ID = 0;
24267
24269
  class Item {
24268
24270
  constructor(options) {
24269
- __publicField$a(this, "options", {});
24270
- __publicField$a(this, "properties");
24271
- __publicField$a(this, "tree");
24272
- __publicField$a(this, "id", ID);
24271
+ __publicField$b(this, "options", {});
24272
+ __publicField$b(this, "properties");
24273
+ __publicField$b(this, "tree");
24274
+ __publicField$b(this, "id", ID);
24273
24275
  ID += 1;
24274
- this.options = __spreadValues$h({}, options);
24276
+ this.options = __spreadValues$g({}, options);
24275
24277
  this.tree = new TreeHelper(this);
24276
24278
  }
24277
24279
  initProperties() {
@@ -24327,27 +24329,27 @@ var NgwLeaflet = (function () {
24327
24329
  return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
24328
24330
  }
24329
24331
 
24330
- var __defProp$g = Object.defineProperty;
24331
- var __defProps$c = Object.defineProperties;
24332
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
24333
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
24334
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
24335
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
24336
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24337
- var __spreadValues$g = (a, b) => {
24332
+ var __defProp$h = Object.defineProperty;
24333
+ var __defProps$d = Object.defineProperties;
24334
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
24335
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
24336
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
24337
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
24338
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24339
+ var __spreadValues$f = (a, b) => {
24338
24340
  for (var prop in b || (b = {}))
24339
- if (__hasOwnProp$g.call(b, prop))
24340
- __defNormalProp$g(a, prop, b[prop]);
24341
- if (__getOwnPropSymbols$g)
24342
- for (var prop of __getOwnPropSymbols$g(b)) {
24343
- if (__propIsEnum$g.call(b, prop))
24344
- __defNormalProp$g(a, prop, b[prop]);
24341
+ if (__hasOwnProp$f.call(b, prop))
24342
+ __defNormalProp$h(a, prop, b[prop]);
24343
+ if (__getOwnPropSymbols$f)
24344
+ for (var prop of __getOwnPropSymbols$f(b)) {
24345
+ if (__propIsEnum$f.call(b, prop))
24346
+ __defNormalProp$h(a, prop, b[prop]);
24345
24347
  }
24346
24348
  return a;
24347
24349
  };
24348
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
24349
- var __publicField$9 = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
24350
- var __async$f = (__this, __arguments, generator) => {
24350
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
24351
+ var __publicField$a = (obj, key, value) => __defNormalProp$h(obj, typeof key !== "symbol" ? key + "" : key, value);
24352
+ var __async$g = (__this, __arguments, generator) => {
24351
24353
  return new Promise((resolve, reject) => {
24352
24354
  var fulfilled = (value) => {
24353
24355
  try {
@@ -24378,17 +24380,17 @@ var NgwLeaflet = (function () {
24378
24380
  layer,
24379
24381
  onSymbolRenderChange
24380
24382
  }) {
24381
- __publicField$9(this, "layerId");
24382
- __publicField$9(this, "layer");
24383
- __publicField$9(this, "resourceId");
24384
- __publicField$9(this, "legendSymbols", "expand");
24385
- __publicField$9(this, "legend");
24383
+ __publicField$a(this, "layerId");
24384
+ __publicField$a(this, "layer");
24385
+ __publicField$a(this, "resourceId");
24386
+ __publicField$a(this, "legendSymbols", "expand");
24387
+ __publicField$a(this, "legend");
24386
24388
  // private blocked: boolean = false;
24387
- __publicField$9(this, "layerVisibility", true);
24389
+ __publicField$a(this, "layerVisibility", true);
24388
24390
  // private symbolRenderIndexes?: number[];
24389
- __publicField$9(this, "onSymbolRenderChange");
24390
- __publicField$9(this, "webMap");
24391
- __publicField$9(this, "connector");
24391
+ __publicField$a(this, "onSymbolRenderChange");
24392
+ __publicField$a(this, "webMap");
24393
+ __publicField$a(this, "connector");
24392
24394
  if (legendSymbols) {
24393
24395
  this.legendSymbols = legendSymbols;
24394
24396
  }
@@ -24407,18 +24409,18 @@ var NgwLeaflet = (function () {
24407
24409
  this.layer = layer;
24408
24410
  }
24409
24411
  create() {
24410
- return __async$f(this, arguments, function* (options = {}) {
24412
+ return __async$g(this, arguments, function* (options = {}) {
24411
24413
  if (this.connector) {
24412
24414
  const ngwLegend = yield this.connector.route("render.legend_symbols", {
24413
24415
  id: this.resourceId
24414
- }).get(__spreadValues$g({}, options));
24416
+ }).get(__spreadValues$f({}, options));
24415
24417
  this.legend = ngwLegend;
24416
24418
  return this.createLegend(ngwLegend);
24417
24419
  }
24418
24420
  });
24419
24421
  }
24420
24422
  createLegend(items) {
24421
- return items.map((params) => __spreadProps$c(__spreadValues$g({}, params), {
24423
+ return items.map((params) => __spreadProps$d(__spreadValues$f({}, params), {
24422
24424
  /** @deprecated use display_name instead */
24423
24425
  name: params.display_name,
24424
24426
  /** @deprecated use icon instead */
@@ -24448,7 +24450,7 @@ var NgwLeaflet = (function () {
24448
24450
  }
24449
24451
  if (this.layer.updateLayer) {
24450
24452
  this.layer.updateLayer({
24451
- params: __spreadValues$g({}, createLayerSymbolParam(this.resourceId, intervals))
24453
+ params: __spreadValues$f({}, createLayerSymbolParam(this.resourceId, intervals))
24452
24454
  });
24453
24455
  }
24454
24456
  if (intervals.length) {
@@ -24485,27 +24487,27 @@ var NgwLeaflet = (function () {
24485
24487
  }
24486
24488
  }
24487
24489
 
24488
- var __defProp$f = Object.defineProperty;
24489
- var __defProps$b = Object.defineProperties;
24490
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
24491
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
24492
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
24493
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
24494
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24495
- var __spreadValues$f = (a, b) => {
24490
+ var __defProp$g = Object.defineProperty;
24491
+ var __defProps$c = Object.defineProperties;
24492
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
24493
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
24494
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
24495
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
24496
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24497
+ var __spreadValues$e = (a, b) => {
24496
24498
  for (var prop in b || (b = {}))
24497
- if (__hasOwnProp$f.call(b, prop))
24498
- __defNormalProp$f(a, prop, b[prop]);
24499
- if (__getOwnPropSymbols$f)
24500
- for (var prop of __getOwnPropSymbols$f(b)) {
24501
- if (__propIsEnum$f.call(b, prop))
24502
- __defNormalProp$f(a, prop, b[prop]);
24499
+ if (__hasOwnProp$e.call(b, prop))
24500
+ __defNormalProp$g(a, prop, b[prop]);
24501
+ if (__getOwnPropSymbols$e)
24502
+ for (var prop of __getOwnPropSymbols$e(b)) {
24503
+ if (__propIsEnum$e.call(b, prop))
24504
+ __defNormalProp$g(a, prop, b[prop]);
24503
24505
  }
24504
24506
  return a;
24505
24507
  };
24506
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
24507
- var __publicField$8 = (obj, key, value) => __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
24508
- var __async$e = (__this, __arguments, generator) => {
24508
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
24509
+ var __publicField$9 = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
24510
+ var __async$f = (__this, __arguments, generator) => {
24509
24511
  return new Promise((resolve, reject) => {
24510
24512
  var fulfilled = (value) => {
24511
24513
  try {
@@ -24534,14 +24536,14 @@ var NgwLeaflet = (function () {
24534
24536
  parent,
24535
24537
  noInit
24536
24538
  }) {
24537
- super(__spreadValues$f(__spreadValues$f({}, _NgwWebmapItem.options), options));
24538
- __publicField$8(this, "item");
24539
- __publicField$8(this, "webMap");
24540
- __publicField$8(this, "connector");
24541
- __publicField$8(this, "layer");
24542
- __publicField$8(this, "legend");
24543
- __publicField$8(this, "emitter", new EventEmitter());
24544
- __publicField$8(this, "_rootDescendantsCount", 0);
24539
+ super(__spreadValues$e(__spreadValues$e({}, _NgwWebmapItem.options), options));
24540
+ __publicField$9(this, "item");
24541
+ __publicField$9(this, "webMap");
24542
+ __publicField$9(this, "connector");
24543
+ __publicField$9(this, "layer");
24544
+ __publicField$9(this, "legend");
24545
+ __publicField$9(this, "emitter", new EventEmitter());
24546
+ __publicField$9(this, "_rootDescendantsCount", 0);
24545
24547
  this.webMap = webMap;
24546
24548
  if (connector) {
24547
24549
  this.connector = connector;
@@ -24564,7 +24566,7 @@ var NgwLeaflet = (function () {
24564
24566
  }
24565
24567
  }
24566
24568
  static create(webMap, item, options, connector, parent) {
24567
- return __async$e(this, null, function* () {
24569
+ return __async$f(this, null, function* () {
24568
24570
  const ngwWebmapItem = new _NgwWebmapItem({
24569
24571
  webMap,
24570
24572
  item,
@@ -24593,7 +24595,7 @@ var NgwLeaflet = (function () {
24593
24595
  return this.layer;
24594
24596
  }
24595
24597
  getLegend(options) {
24596
- return __async$e(this, null, function* () {
24598
+ return __async$f(this, null, function* () {
24597
24599
  var _a, _b;
24598
24600
  const id = (_a = this.layer) == null ? void 0 : _a.id;
24599
24601
  if (id !== void 0) {
@@ -24630,7 +24632,7 @@ var NgwLeaflet = (function () {
24630
24632
  getItemOptions(item) {
24631
24633
  const transparency = item.item_type === "layer" && item.layer_transparency;
24632
24634
  const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
24633
- const options = __spreadProps$b(__spreadValues$f({
24635
+ const options = __spreadProps$c(__spreadValues$e({
24634
24636
  visibility: false,
24635
24637
  name: item.display_name
24636
24638
  }, this.options), {
@@ -24650,7 +24652,7 @@ var NgwLeaflet = (function () {
24650
24652
  }
24651
24653
  if (item.item_type === "layer") {
24652
24654
  const { maxZoom, minZoom } = this._getZoomRange(item);
24653
- Object.assign(options, __spreadProps$b(__spreadValues$f({
24655
+ Object.assign(options, __spreadProps$c(__spreadValues$e({
24654
24656
  updateWmsParams: item.updateWmsParams
24655
24657
  }, options), {
24656
24658
  url: item.url,
@@ -24753,8 +24755,8 @@ var NgwLeaflet = (function () {
24753
24755
  return totalValue;
24754
24756
  }
24755
24757
  };
24756
- __publicField$8(_NgwWebmapItem, "GetAdapterFromLayerType", {});
24757
- __publicField$8(_NgwWebmapItem, "options", {
24758
+ __publicField$9(_NgwWebmapItem, "GetAdapterFromLayerType", {});
24759
+ __publicField$9(_NgwWebmapItem, "options", {
24758
24760
  properties: [
24759
24761
  {
24760
24762
  type: "boolean",
@@ -24794,27 +24796,27 @@ var NgwLeaflet = (function () {
24794
24796
  });
24795
24797
  let NgwWebmapItem = _NgwWebmapItem;
24796
24798
 
24797
- var __defProp$e = Object.defineProperty;
24798
- var __defProps$a = Object.defineProperties;
24799
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
24800
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
24801
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
24802
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
24803
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24804
- var __spreadValues$e = (a, b) => {
24799
+ var __defProp$f = Object.defineProperty;
24800
+ var __defProps$b = Object.defineProperties;
24801
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
24802
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
24803
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
24804
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
24805
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24806
+ var __spreadValues$d = (a, b) => {
24805
24807
  for (var prop in b || (b = {}))
24806
- if (__hasOwnProp$e.call(b, prop))
24807
- __defNormalProp$e(a, prop, b[prop]);
24808
- if (__getOwnPropSymbols$e)
24809
- for (var prop of __getOwnPropSymbols$e(b)) {
24810
- if (__propIsEnum$e.call(b, prop))
24811
- __defNormalProp$e(a, prop, b[prop]);
24808
+ if (__hasOwnProp$d.call(b, prop))
24809
+ __defNormalProp$f(a, prop, b[prop]);
24810
+ if (__getOwnPropSymbols$d)
24811
+ for (var prop of __getOwnPropSymbols$d(b)) {
24812
+ if (__propIsEnum$d.call(b, prop))
24813
+ __defNormalProp$f(a, prop, b[prop]);
24812
24814
  }
24813
24815
  return a;
24814
24816
  };
24815
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
24816
- var __publicField$7 = (obj, key, value) => __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
24817
- var __async$d = (__this, __arguments, generator) => {
24817
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
24818
+ var __publicField$8 = (obj, key, value) => __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
24819
+ var __async$e = (__this, __arguments, generator) => {
24818
24820
  return new Promise((resolve, reject) => {
24819
24821
  var fulfilled = (value) => {
24820
24822
  try {
@@ -24838,20 +24840,20 @@ var NgwLeaflet = (function () {
24838
24840
  constructor(map, options) {
24839
24841
  this.map = map;
24840
24842
  this.options = options;
24841
- __publicField$7(this, "layer");
24842
- __publicField$7(this, "NgwWebmapItem", NgwWebmapItem);
24843
+ __publicField$8(this, "layer");
24844
+ __publicField$8(this, "NgwWebmapItem", NgwWebmapItem);
24843
24845
  /**
24844
24846
  * Radius for searching objects in pixels
24845
24847
  */
24846
- __publicField$7(this, "pixelRadius", 10);
24848
+ __publicField$8(this, "pixelRadius", 10);
24847
24849
  // webmapSettings.identify_radius,
24848
- __publicField$7(this, "resourceId");
24849
- __publicField$7(this, "webmapClassName", "webmap");
24850
- __publicField$7(this, "emitter", new EventEmitter());
24851
- __publicField$7(this, "_extent");
24852
- __publicField$7(this, "webmapResource");
24853
- __publicField$7(this, "_webmapBaselayersIds", []);
24854
- __publicField$7(this, "_lastActiveBaselayer");
24850
+ __publicField$8(this, "resourceId");
24851
+ __publicField$8(this, "webmapClassName", "webmap");
24852
+ __publicField$8(this, "emitter", new EventEmitter());
24853
+ __publicField$8(this, "_extent");
24854
+ __publicField$8(this, "webmapResource");
24855
+ __publicField$8(this, "_webmapBaselayersIds", []);
24856
+ __publicField$8(this, "_lastActiveBaselayer");
24855
24857
  const r = options.resourceId;
24856
24858
  if (Array.isArray(r)) {
24857
24859
  this.resourceId = r[0];
@@ -24864,9 +24866,9 @@ var NgwLeaflet = (function () {
24864
24866
  }
24865
24867
  }
24866
24868
  addLayer(options) {
24867
- return __async$d(this, null, function* () {
24869
+ return __async$e(this, null, function* () {
24868
24870
  var _a;
24869
- this.options = __spreadValues$e(__spreadValues$e({}, this.options), options);
24871
+ this.options = __spreadValues$d(__spreadValues$d({}, this.options), options);
24870
24872
  this.layer = yield this._getWebMapLayerItem();
24871
24873
  const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
24872
24874
  if (this.options.useExtentConstrained && this._extent && extentConstrained) {
@@ -24896,21 +24898,21 @@ var NgwLeaflet = (function () {
24896
24898
  delete this.webmapResource;
24897
24899
  }
24898
24900
  showLayer() {
24899
- return __async$d(this, null, function* () {
24901
+ return __async$e(this, null, function* () {
24900
24902
  if (this.layer && this.layer.properties) {
24901
24903
  return this.layer.properties.property("visibility").set(true);
24902
24904
  }
24903
24905
  });
24904
24906
  }
24905
24907
  hideLayer() {
24906
- return __async$d(this, null, function* () {
24908
+ return __async$e(this, null, function* () {
24907
24909
  if (this.layer && this.layer.properties) {
24908
24910
  return this.layer.properties.property("visibility").set(false);
24909
24911
  }
24910
24912
  });
24911
24913
  }
24912
24914
  setOpacity(val) {
24913
- return __async$d(this, null, function* () {
24915
+ return __async$e(this, null, function* () {
24914
24916
  if (this.layer && this.layer.properties) {
24915
24917
  return this.layer.properties.property("opacity").set(val);
24916
24918
  }
@@ -24945,7 +24947,7 @@ var NgwLeaflet = (function () {
24945
24947
  (x) => x.label_field
24946
24948
  );
24947
24949
  const keyname = labelField && labelField.keyname;
24948
- return fetchNgwLayerItems(__spreadValues$e({
24950
+ return fetchNgwLayerItems(__spreadValues$d({
24949
24951
  connector,
24950
24952
  resourceId: bookmarkResId,
24951
24953
  geom: false,
@@ -24970,7 +24972,7 @@ var NgwLeaflet = (function () {
24970
24972
  );
24971
24973
  }
24972
24974
  getLegend(options) {
24973
- return __async$d(this, null, function* () {
24975
+ return __async$e(this, null, function* () {
24974
24976
  const legends = [];
24975
24977
  let deps = this.getDependLayers();
24976
24978
  deps = deps.sort((a, b) => b.id - a.id);
@@ -24982,7 +24984,7 @@ var NgwLeaflet = (function () {
24982
24984
  });
24983
24985
  }
24984
24986
  getIdentificationIds(options) {
24985
- return __async$d(this, null, function* () {
24987
+ return __async$e(this, null, function* () {
24986
24988
  const visibleLayers = [];
24987
24989
  let deps = this.getDependLayers();
24988
24990
  deps = deps.sort((a, b) => b.id - a.id);
@@ -25001,7 +25003,7 @@ var NgwLeaflet = (function () {
25001
25003
  });
25002
25004
  }
25003
25005
  _getWebMapLayerItem() {
25004
- return __async$d(this, null, function* () {
25006
+ return __async$e(this, null, function* () {
25005
25007
  if (!this.resourceId) {
25006
25008
  return void 0;
25007
25009
  }
@@ -25014,7 +25016,7 @@ var NgwLeaflet = (function () {
25014
25016
  const connector = this.options.connector;
25015
25017
  const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
25016
25018
  const withCredentials = connector.withCredentials;
25017
- const options = __spreadProps$a(__spreadValues$e({}, this.options), {
25019
+ const options = __spreadProps$b(__spreadValues$d({}, this.options), {
25018
25020
  withCredentials,
25019
25021
  headers,
25020
25022
  drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
@@ -25032,7 +25034,7 @@ var NgwLeaflet = (function () {
25032
25034
  });
25033
25035
  }
25034
25036
  getWebMapConfig(id) {
25035
- return __async$d(this, null, function* () {
25037
+ return __async$e(this, null, function* () {
25036
25038
  var _a;
25037
25039
  const data = yield this.options.connector.getResource(id);
25038
25040
  if (data) {
@@ -25120,7 +25122,7 @@ var NgwLeaflet = (function () {
25120
25122
  webMap,
25121
25123
  baseUrl: this.options.connector.options.baseUrl || ""
25122
25124
  });
25123
- item = __spreadValues$e(__spreadValues$e({}, layerItem), layerAdapterOptions);
25125
+ item = __spreadValues$d(__spreadValues$d({}, layerItem), layerAdapterOptions);
25124
25126
  }
25125
25127
  }
25126
25128
  if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
@@ -25130,40 +25132,40 @@ var NgwLeaflet = (function () {
25130
25132
  }
25131
25133
  }
25132
25134
 
25133
- var __defProp$d = Object.defineProperty;
25134
- var __defProps$9 = Object.defineProperties;
25135
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
25136
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
25137
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
25138
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
25139
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25140
- var __spreadValues$d = (a, b) => {
25135
+ var __defProp$e = Object.defineProperty;
25136
+ var __defProps$a = Object.defineProperties;
25137
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
25138
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
25139
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
25140
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
25141
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25142
+ var __spreadValues$c = (a, b) => {
25141
25143
  for (var prop in b || (b = {}))
25142
- if (__hasOwnProp$d.call(b, prop))
25143
- __defNormalProp$d(a, prop, b[prop]);
25144
- if (__getOwnPropSymbols$d)
25145
- for (var prop of __getOwnPropSymbols$d(b)) {
25146
- if (__propIsEnum$d.call(b, prop))
25147
- __defNormalProp$d(a, prop, b[prop]);
25144
+ if (__hasOwnProp$c.call(b, prop))
25145
+ __defNormalProp$e(a, prop, b[prop]);
25146
+ if (__getOwnPropSymbols$c)
25147
+ for (var prop of __getOwnPropSymbols$c(b)) {
25148
+ if (__propIsEnum$c.call(b, prop))
25149
+ __defNormalProp$e(a, prop, b[prop]);
25148
25150
  }
25149
25151
  return a;
25150
25152
  };
25151
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
25153
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
25152
25154
  var __objRest$2 = (source, exclude) => {
25153
25155
  var target = {};
25154
25156
  for (var prop in source)
25155
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
25157
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
25156
25158
  target[prop] = source[prop];
25157
- if (source != null && __getOwnPropSymbols$d)
25158
- for (var prop of __getOwnPropSymbols$d(source)) {
25159
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop))
25159
+ if (source != null && __getOwnPropSymbols$c)
25160
+ for (var prop of __getOwnPropSymbols$c(source)) {
25161
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
25160
25162
  target[prop] = source[prop];
25161
25163
  }
25162
25164
  return target;
25163
25165
  };
25164
25166
  function updateImageParams(params, resourceId) {
25165
25167
  const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$2(_a, ["bbox", "width", "height", "nd"]);
25166
- return __spreadProps$9(__spreadValues$d({}, rest), {
25168
+ return __spreadProps$a(__spreadValues$c({}, rest), {
25167
25169
  resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
25168
25170
  extent: bbox,
25169
25171
  size: width + "," + height,
@@ -25198,7 +25200,7 @@ var NgwLeaflet = (function () {
25198
25200
  function extendNgwWebmapLayerAdapter(opt) {
25199
25201
  class A extends NgwWebmapLayerAdapter {
25200
25202
  constructor(map, options) {
25201
- options = __spreadValues$d(__spreadValues$d({}, opt), options);
25203
+ options = __spreadValues$c(__spreadValues$c({}, opt), options);
25202
25204
  super(map, options);
25203
25205
  }
25204
25206
  }
@@ -25229,78 +25231,174 @@ var NgwLeaflet = (function () {
25229
25231
  return zoom;
25230
25232
  }
25231
25233
 
25234
+ function parseQmsExtent(value) {
25235
+ if (!value) {
25236
+ return void 0;
25237
+ }
25238
+ const match = value.match(/^(?:SRID=(\d+);)?POLYGON\s*\(\((.+)\)\)\s*$/i);
25239
+ if (!match || match[1] && match[1] !== "4326") {
25240
+ return void 0;
25241
+ }
25242
+ const coordinates = match[2].split(",").map((coordinate) => coordinate.trim().split(/\s+/).map(Number)).filter(
25243
+ (coordinate) => coordinate.length >= 2 && Number.isFinite(coordinate[0]) && Number.isFinite(coordinate[1])
25244
+ );
25245
+ if (!coordinates.length) {
25246
+ return void 0;
25247
+ }
25248
+ const xs = coordinates.map((coordinate) => coordinate[0]);
25249
+ const ys = coordinates.map((coordinate) => coordinate[1]);
25250
+ return [Math.min(...xs), Math.min(...ys), Math.max(...xs), Math.max(...ys)];
25251
+ }
25252
+ function normalizeQmsUrl(url) {
25253
+ return url.replace(/^(http|ftp):\/\//, "https://");
25254
+ }
25232
25255
  function getSubdomainsOriginUrl(originUrl) {
25233
- const submodules = [];
25234
- originUrl = originUrl.replace(/{switch:(.*?)}/, (m, group) => {
25256
+ const subdomains = [];
25257
+ originUrl = originUrl.replace(/{switch:(.*?)}/, (match, group) => {
25235
25258
  if (typeof group === "string") {
25236
- group.split(",").forEach((s) => submodules.push(s));
25259
+ group.split(",").forEach((subdomain) => subdomains.push(subdomain));
25237
25260
  }
25238
25261
  return "{s}";
25239
25262
  });
25240
- return [originUrl, submodules];
25263
+ return [originUrl, subdomains];
25264
+ }
25265
+ function parseQmsWmsParams(params) {
25266
+ if (!params) {
25267
+ return {};
25268
+ }
25269
+ return Object.fromEntries(new URLSearchParams(params).entries());
25270
+ }
25271
+ function prepareQmsTmsLayer(service) {
25272
+ var _a, _b;
25273
+ const [url, subdomains] = getSubdomainsOriginUrl(
25274
+ normalizeQmsUrl(service.origin_url || service.url)
25275
+ );
25276
+ return {
25277
+ type: "tms",
25278
+ service,
25279
+ url,
25280
+ subdomains,
25281
+ scheme: service.y_origin_top ? "xyz" : "tms",
25282
+ name: service.name,
25283
+ attribution: service.copyright_text || void 0,
25284
+ extent: parseQmsExtent(service.extent),
25285
+ minZoom: (_a = service.z_min) != null ? _a : void 0,
25286
+ maxZoom: (_b = service.z_max) != null ? _b : void 0
25287
+ };
25288
+ }
25289
+ function prepareQmsWmsLayer(service) {
25290
+ const params = parseQmsWmsParams(service.params);
25291
+ const versionEntry = Object.entries(params).find(
25292
+ ([key]) => key.toLowerCase() === "version"
25293
+ );
25294
+ return {
25295
+ type: "wms",
25296
+ service,
25297
+ url: normalizeQmsUrl(service.url),
25298
+ layers: service.layers,
25299
+ format: service.format || "image/png",
25300
+ version: (versionEntry == null ? void 0 : versionEntry[1]) || "1.3.0",
25301
+ params,
25302
+ name: service.name,
25303
+ attribution: service.copyright_text || void 0,
25304
+ extent: parseQmsExtent(service.extent)
25305
+ };
25241
25306
  }
25242
25307
 
25243
- function loadJson(url) {
25308
+ var __defProp$d = Object.defineProperty;
25309
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25310
+ var __publicField$7 = (obj, key, value) => __defNormalProp$d(obj, key + "" , value);
25311
+ var __async$d = (__this, __arguments, generator) => {
25244
25312
  return new Promise((resolve, reject) => {
25245
- const xmlHttp = new XMLHttpRequest();
25246
- xmlHttp.onreadystatechange = () => {
25247
- if (xmlHttp.readyState === 4 && xmlHttp.status === 200) {
25248
- if (xmlHttp.responseText) {
25249
- try {
25250
- resolve(JSON.parse(xmlHttp.responseText));
25251
- } catch (er) {
25252
- reject(er);
25253
- }
25254
- }
25313
+ var fulfilled = (value) => {
25314
+ try {
25315
+ step(generator.next(value));
25316
+ } catch (e) {
25317
+ reject(e);
25255
25318
  }
25256
25319
  };
25257
- xmlHttp.open("GET", fixUrlStr(url), true);
25258
- xmlHttp.send();
25320
+ var rejected = (value) => {
25321
+ try {
25322
+ step(generator.throw(value));
25323
+ } catch (e) {
25324
+ reject(e);
25325
+ }
25326
+ };
25327
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
25328
+ step((generator = generator.apply(__this, __arguments)).next());
25259
25329
  });
25260
- }
25261
-
25262
- const alias = {
25263
- tms: "TILE"
25264
25330
  };
25265
- function updateQmsOptions(qms) {
25266
- const protocol = (location.protocol === "https:" ? "https" : "http") + "://";
25267
- let serviceUrl = qms.url.replace(/^(https?|ftp):\/\//, protocol);
25268
- if (!qms.y_origin_top) {
25269
- serviceUrl = serviceUrl.replace("{y}", "{-y}");
25331
+ const QMS_URL = "https://qms.nextgis.com";
25332
+ const _QmsClient = class _QmsClient {
25333
+ constructor() {
25334
+ __publicField$7(this, "url");
25335
+ this.url = _QmsClient.url.replace(/\/$/, "").trim();
25270
25336
  }
25271
- return {
25272
- url: serviceUrl,
25273
- name: qms.name,
25274
- attribution: qms.copyright_text,
25275
- maxZoom: qms.z_max,
25276
- minZoom: qms.z_min
25277
- };
25278
- }
25337
+ getService(_0) {
25338
+ return __async$d(this, arguments, function* (id, options = {}) {
25339
+ const service = yield this._getJson(
25340
+ `${this.url}/api/v1/geoservices/${id}`,
25341
+ options
25342
+ );
25343
+ if (service.type !== "tms" && service.type !== "wms") {
25344
+ throw new Error("Unsupported QMS service type.");
25345
+ }
25346
+ return service;
25347
+ });
25348
+ }
25349
+ getLayer(_0) {
25350
+ return __async$d(this, arguments, function* (id, options = {}) {
25351
+ const service = yield this.getService(id, options);
25352
+ if (service.type === "tms") {
25353
+ return prepareQmsTmsLayer(service);
25354
+ }
25355
+ return prepareQmsWmsLayer(service);
25356
+ });
25357
+ }
25358
+ _getJson(_0, _1) {
25359
+ return __async$d(this, arguments, function* (url, { signal }) {
25360
+ const response = yield fetch(url, {
25361
+ signal
25362
+ });
25363
+ if (!response.ok) {
25364
+ throw new Error(
25365
+ `QMS request failed with status ${response.status}: ${url}`
25366
+ );
25367
+ }
25368
+ return response.json();
25369
+ });
25370
+ }
25371
+ };
25372
+ __publicField$7(_QmsClient, "url", QMS_URL);
25373
+ let QmsClient = _QmsClient;
25279
25374
 
25280
25375
  var __defProp$c = Object.defineProperty;
25281
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
25282
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
25283
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
25376
+ var __defProps$9 = Object.defineProperties;
25377
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
25378
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
25379
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
25380
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
25284
25381
  var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25285
- var __spreadValues$c = (a, b) => {
25382
+ var __spreadValues$b = (a, b) => {
25286
25383
  for (var prop in b || (b = {}))
25287
- if (__hasOwnProp$c.call(b, prop))
25384
+ if (__hasOwnProp$b.call(b, prop))
25288
25385
  __defNormalProp$c(a, prop, b[prop]);
25289
- if (__getOwnPropSymbols$c)
25290
- for (var prop of __getOwnPropSymbols$c(b)) {
25291
- if (__propIsEnum$c.call(b, prop))
25386
+ if (__getOwnPropSymbols$b)
25387
+ for (var prop of __getOwnPropSymbols$b(b)) {
25388
+ if (__propIsEnum$b.call(b, prop))
25292
25389
  __defNormalProp$c(a, prop, b[prop]);
25293
25390
  }
25294
25391
  return a;
25295
25392
  };
25393
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
25296
25394
  var __objRest$1 = (source, exclude) => {
25297
25395
  var target = {};
25298
25396
  for (var prop in source)
25299
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
25397
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
25300
25398
  target[prop] = source[prop];
25301
- if (source != null && __getOwnPropSymbols$c)
25302
- for (var prop of __getOwnPropSymbols$c(source)) {
25303
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
25399
+ if (source != null && __getOwnPropSymbols$b)
25400
+ for (var prop of __getOwnPropSymbols$b(source)) {
25401
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop))
25304
25402
  target[prop] = source[prop];
25305
25403
  }
25306
25404
  return target;
@@ -25326,31 +25424,48 @@ var NgwLeaflet = (function () {
25326
25424
  step((generator = generator.apply(__this, __arguments)).next());
25327
25425
  });
25328
25426
  };
25329
- const URL$1 = "https://qms.nextgis.com";
25330
- function createQmsAdapter(webMapOrOptions, url = URL$1, createOpt = {}) {
25427
+ const alias = {
25428
+ tms: "TILE",
25429
+ wms: "WMS"
25430
+ };
25431
+ function qmsLayerToOptions(layer) {
25432
+ if (layer.type === "tms") {
25433
+ return {
25434
+ url: layer.scheme === "tms" ? layer.url.replace("{y}", "{-y}") : layer.url,
25435
+ subdomains: layer.subdomains,
25436
+ maxZoom: layer.maxZoom,
25437
+ minZoom: layer.minZoom,
25438
+ name: layer.name,
25439
+ attribution: layer.attribution
25440
+ };
25441
+ }
25442
+ return {
25443
+ url: layer.url,
25444
+ layers: layer.layers,
25445
+ format: layer.format,
25446
+ version: layer.version,
25447
+ params: layer.params,
25448
+ name: layer.name,
25449
+ attribution: layer.attribution
25450
+ };
25451
+ }
25452
+ function createQmsAdapter(webMapOrOptions, createOpt = {}) {
25331
25453
  let webMap;
25332
25454
  if ("webMap" in webMapOrOptions) {
25333
- const _a = webMapOrOptions, { webMap: webMap_, url: url_ } = _a, adapterOptions = __objRest$1(_a, ["webMap", "url"]);
25455
+ const _a = webMapOrOptions, { webMap: webMap_ } = _a, adapterOptions = __objRest$1(_a, ["webMap"]);
25334
25456
  webMap = webMap_;
25335
- if (url_) {
25336
- url = url_;
25337
- }
25338
- if (adapterOptions) {
25339
- createOpt = adapterOptions;
25340
- }
25457
+ createOpt = adapterOptions;
25341
25458
  } else {
25342
25459
  webMap = webMapOrOptions;
25343
25460
  }
25344
- if (!url) {
25345
- url = URL$1;
25346
- }
25461
+ const client = new QmsClient();
25347
25462
  class QmsAdapter {
25348
25463
  constructor(map, options) {
25349
25464
  __publicField$6(this, "qms");
25350
25465
  __publicField$6(this, "options");
25351
25466
  __publicField$6(this, "map");
25352
25467
  this.map = map;
25353
- const opt = __spreadValues$c(__spreadValues$c({}, createOpt), options);
25468
+ const opt = __spreadValues$b(__spreadValues$b({}, createOpt), options);
25354
25469
  this.options = opt;
25355
25470
  this.options.baselayer = true;
25356
25471
  if (opt.qms) {
@@ -25359,42 +25474,38 @@ var NgwLeaflet = (function () {
25359
25474
  }
25360
25475
  addLayer(options) {
25361
25476
  return __async$c(this, null, function* () {
25362
- if (!this.qms && options.qmsId) {
25363
- try {
25364
- this.qms = yield loadJson(
25365
- url + "/api/v1/geoservices/" + options.qmsId
25366
- );
25367
- } catch (er) {
25368
- console.error(er);
25369
- }
25477
+ var _a2, _b, _c;
25478
+ const signal = (_a2 = options.signal) != null ? _a2 : this.options.signal;
25479
+ const qmsId = (_c = options.qmsId) != null ? _c : (_b = this.qms) == null ? void 0 : _b.id;
25480
+ if (qmsId === void 0) {
25481
+ return;
25370
25482
  }
25371
- const qms = this.qms;
25372
- if (qms) {
25373
- const type = alias[qms.type || "tms"];
25483
+ try {
25484
+ const layer = yield client.getLayer(qmsId, { signal });
25485
+ this.qms = layer.service;
25486
+ const type = alias[layer.type];
25374
25487
  const WebMapAdapter = webMap.mapAdapter.layerAdapters[type];
25375
25488
  if (WebMapAdapter) {
25376
25489
  mixinProperties(QmsAdapter, WebMapAdapter, [
25377
25490
  "showLayer",
25378
25491
  "hideLayer"
25379
25492
  ]);
25380
- if (type === "TILE") {
25381
- options = __spreadValues$c(__spreadValues$c({
25382
- order: 0,
25383
- maxZoom: webMap.options.maxZoom,
25384
- minZoom: webMap.options.minZoom
25385
- }, this.options), updateQmsOptions(qms));
25386
- if (qms.origin_url) {
25387
- const [url2, subdomains] = getSubdomainsOriginUrl(qms.origin_url);
25388
- if (subdomains.length) {
25389
- options.subdomains = subdomains;
25390
- options.url = url2;
25391
- }
25392
- }
25393
- this.options = options;
25394
- const adapter = new WebMapAdapter(this.map, options);
25395
- return adapter.addLayer(options);
25396
- }
25493
+ options = __spreadProps$9(__spreadValues$b(__spreadValues$b(__spreadValues$b({}, type === "TILE" ? {
25494
+ order: 0,
25495
+ maxZoom: webMap.options.maxZoom,
25496
+ minZoom: webMap.options.minZoom
25497
+ } : {}), this.options), qmsLayerToOptions(layer)), {
25498
+ signal
25499
+ });
25500
+ this.options = options;
25501
+ const adapter = new WebMapAdapter(this.map, options);
25502
+ return adapter.addLayer(options);
25397
25503
  }
25504
+ } catch (er) {
25505
+ if (signal == null ? void 0 : signal.aborted) {
25506
+ throw er;
25507
+ }
25508
+ console.error(er);
25398
25509
  }
25399
25510
  });
25400
25511
  }
@@ -25403,31 +25514,9 @@ var NgwLeaflet = (function () {
25403
25514
  }
25404
25515
 
25405
25516
  var __defProp$b = Object.defineProperty;
25406
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
25407
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
25408
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
25409
25517
  var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25410
- var __spreadValues$b = (a, b) => {
25411
- for (var prop in b || (b = {}))
25412
- if (__hasOwnProp$b.call(b, prop))
25413
- __defNormalProp$b(a, prop, b[prop]);
25414
- if (__getOwnPropSymbols$b)
25415
- for (var prop of __getOwnPropSymbols$b(b)) {
25416
- if (__propIsEnum$b.call(b, prop))
25417
- __defNormalProp$b(a, prop, b[prop]);
25418
- }
25419
- return a;
25420
- };
25421
- var __publicField$5 = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
25518
+ var __publicField$5 = (obj, key, value) => __defNormalProp$b(obj, key + "" , value);
25422
25519
  class QmsKit {
25423
- constructor(options) {
25424
- __publicField$5(this, "options", {
25425
- url: "https://qms.nextgis.com"
25426
- });
25427
- __publicField$5(this, "url");
25428
- this.options = __spreadValues$b(__spreadValues$b({}, this.options), options);
25429
- this.url = this.options.url;
25430
- }
25431
25520
  getLayerAdapters() {
25432
25521
  return Promise.resolve([
25433
25522
  {
@@ -25437,7 +25526,7 @@ var NgwLeaflet = (function () {
25437
25526
  ]);
25438
25527
  }
25439
25528
  _createAdapter(webMap) {
25440
- return createQmsAdapter({ webMap, url: this.url });
25529
+ return createQmsAdapter({ webMap });
25441
25530
  }
25442
25531
  }
25443
25532
  __publicField$5(QmsKit, "utils", {
@@ -25497,7 +25586,7 @@ var NgwLeaflet = (function () {
25497
25586
  if (qms) {
25498
25587
  const qms_ = JSON.parse(qms);
25499
25588
  const adapter = Promise.resolve(
25500
- QmsKit.utils.createQmsAdapter(webMap, void 0, {
25589
+ QmsKit.utils.createQmsAdapter(webMap, {
25501
25590
  qms: qms_,
25502
25591
  baselayer: true
25503
25592
  })