@nextgis/ngw-leaflet 4.0.0-alpha.1 → 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.1; 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";
@@ -19435,7 +19435,8 @@ var NgwLeaflet = (function () {
19435
19435
  maxZoom: tileJson.maxzoom,
19436
19436
  minZoom: tileJson.minzoom,
19437
19437
  subdomains: tileJson.scheme,
19438
- attribution: tileJson.attribution
19438
+ attribution: tileJson.attribution,
19439
+ request: tileJson.request
19439
19440
  });
19440
19441
  }
19441
19442
  /**
@@ -19450,10 +19451,10 @@ var NgwLeaflet = (function () {
19450
19451
  this.options.layerRequest
19451
19452
  );
19452
19453
  const layerRequest = getLayerRequestOptions(options);
19453
- 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) || {});
19454
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;
19455
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;
19456
- 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 } : {}));
19457
19458
  }
19458
19459
  /** @internal */
19459
19460
  _emitLayerEvent(name, id, options) {
@@ -19465,21 +19466,21 @@ var NgwLeaflet = (function () {
19465
19466
  this.emitter.emit(name, options);
19466
19467
  }
19467
19468
  _onLayerClick(options) {
19468
- return __async$u(this, null, function* () {
19469
+ return __async$v(this, null, function* () {
19469
19470
  const id = options.layer.id;
19470
19471
  this._emitLayerEvent("layer:click", id || "", options);
19471
19472
  return Promise.resolve(options);
19472
19473
  });
19473
19474
  }
19474
19475
  _onLayerDoubleClick(options) {
19475
- return __async$u(this, null, function* () {
19476
+ return __async$v(this, null, function* () {
19476
19477
  const id = options.layer.id;
19477
19478
  this._emitLayerEvent("layer:dblclick", id || "", options);
19478
19479
  return Promise.resolve(options);
19479
19480
  });
19480
19481
  }
19481
19482
  _onLayerSelect(options) {
19482
- return __async$u(this, null, function* () {
19483
+ return __async$v(this, null, function* () {
19483
19484
  this._emitLayerEvent("layer:select", options.layer.id || "", options);
19484
19485
  return Promise.resolve(options);
19485
19486
  });
@@ -19548,25 +19549,25 @@ var NgwLeaflet = (function () {
19548
19549
  }
19549
19550
  }
19550
19551
 
19551
- var __defProp$P = Object.defineProperty;
19552
- var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
19553
- var __hasOwnProp$B = Object.prototype.hasOwnProperty;
19554
- var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
19555
- 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;
19556
19557
  var __objRest$9 = (source, exclude) => {
19557
19558
  var target = {};
19558
19559
  for (var prop in source)
19559
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
19560
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
19560
19561
  target[prop] = source[prop];
19561
- if (source != null && __getOwnPropSymbols$B)
19562
- for (var prop of __getOwnPropSymbols$B(source)) {
19563
- 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))
19564
19565
  target[prop] = source[prop];
19565
19566
  }
19566
19567
  return target;
19567
19568
  };
19568
- var __publicField$x = (obj, key, value) => __defNormalProp$P(obj, typeof key !== "symbol" ? key + "" : key, value);
19569
- 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) => {
19570
19571
  return new Promise((resolve, reject) => {
19571
19572
  var fulfilled = (value) => {
19572
19573
  try {
@@ -19589,14 +19590,14 @@ var NgwLeaflet = (function () {
19589
19590
  const _WebMapControls = class _WebMapControls extends WebMapLayers {
19590
19591
  constructor() {
19591
19592
  super(...arguments);
19592
- __publicField$x(this, "_loadControlQueue", {
19593
+ __publicField$y(this, "_loadControlQueue", {
19593
19594
  "top-right": [],
19594
19595
  "bottom-right": [],
19595
19596
  "top-left": [],
19596
19597
  "bottom-left": [],
19597
19598
  inside: []
19598
19599
  });
19599
- __publicField$x(this, "_isControlLoading", {
19600
+ __publicField$y(this, "_isControlLoading", {
19600
19601
  "top-right": false,
19601
19602
  "bottom-right": false,
19602
19603
  "top-left": false,
@@ -19605,7 +19606,7 @@ var NgwLeaflet = (function () {
19605
19606
  });
19606
19607
  }
19607
19608
  addControl(controlDef, position, options) {
19608
- return __async$t(this, null, function* () {
19609
+ return __async$u(this, null, function* () {
19609
19610
  let control;
19610
19611
  const { addOptions, createOptions } = this._splitControlOptions(options);
19611
19612
  position = position != null ? position : "top-left";
@@ -19616,7 +19617,7 @@ var NgwLeaflet = (function () {
19616
19617
  }
19617
19618
  if (control) {
19618
19619
  return new Promise((resolve) => {
19619
- const promise = () => __async$t(this, null, function* () {
19620
+ const promise = () => __async$u(this, null, function* () {
19620
19621
  const _control = yield control;
19621
19622
  const c = this.mapAdapter.addControl(_control, position, addOptions);
19622
19623
  resolve(c);
@@ -19639,7 +19640,7 @@ var NgwLeaflet = (function () {
19639
19640
  * ```
19640
19641
  */
19641
19642
  createControl(control, options) {
19642
- return __async$t(this, null, function* () {
19643
+ return __async$u(this, null, function* () {
19643
19644
  yield this.onLoad("build-map");
19644
19645
  if (this.mapAdapter.createControl) {
19645
19646
  return this.mapAdapter.createControl(control, options);
@@ -19647,7 +19648,7 @@ var NgwLeaflet = (function () {
19647
19648
  });
19648
19649
  }
19649
19650
  createButtonControl(options) {
19650
- return __async$t(this, null, function* () {
19651
+ return __async$u(this, null, function* () {
19651
19652
  yield this.onLoad("build-map");
19652
19653
  if (this.mapAdapter.createButtonControl) {
19653
19654
  return this.mapAdapter.createButtonControl(options);
@@ -19674,7 +19675,7 @@ var NgwLeaflet = (function () {
19674
19675
  * {@link http://code.nextgis.com/demo-examples-toggle-control | Toggle button control example}
19675
19676
  */
19676
19677
  createToggleControl(options) {
19677
- return __async$t(this, null, function* () {
19678
+ return __async$u(this, null, function* () {
19678
19679
  yield this.onLoad("build-map");
19679
19680
  if (this.mapAdapter.createToggleControl) {
19680
19681
  return this.mapAdapter.createToggleControl(options);
@@ -19733,7 +19734,7 @@ var NgwLeaflet = (function () {
19733
19734
  }
19734
19735
  }
19735
19736
  _applyControls(position) {
19736
- return __async$t(this, null, function* () {
19737
+ return __async$u(this, null, function* () {
19737
19738
  if (this._loadControlQueue[position].length) {
19738
19739
  this._isControlLoading[position] = true;
19739
19740
  const controlCb = this._loadControlQueue[position][0];
@@ -19760,7 +19761,7 @@ var NgwLeaflet = (function () {
19760
19761
  return id !== void 0 || order !== void 0 ? { id, order } : void 0;
19761
19762
  }
19762
19763
  };
19763
- __publicField$x(_WebMapControls, "controls", {
19764
+ __publicField$y(_WebMapControls, "controls", {
19764
19765
  CONTROL: (webMap, options) => {
19765
19766
  return webMap.createControl(options.control, options.options);
19766
19767
  },
@@ -19773,39 +19774,39 @@ var NgwLeaflet = (function () {
19773
19774
  });
19774
19775
  let WebMapControls = _WebMapControls;
19775
19776
 
19776
- var __defProp$O = Object.defineProperty;
19777
- var __defProps$o = Object.defineProperties;
19778
- var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
19779
- var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
19780
- var __hasOwnProp$A = Object.prototype.hasOwnProperty;
19781
- 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;
19782
19783
  var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
19783
- var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19784
- 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) => {
19785
19786
  for (var prop in b || (b = {}))
19786
- if (__hasOwnProp$A.call(b, prop))
19787
- __defNormalProp$O(a, prop, b[prop]);
19788
- if (__getOwnPropSymbols$A)
19789
- for (var prop of __getOwnPropSymbols$A(b)) {
19790
- if (__propIsEnum$A.call(b, prop))
19791
- __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]);
19792
19793
  }
19793
19794
  return a;
19794
19795
  };
19795
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
19796
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
19796
19797
  var __objRest$8 = (source, exclude) => {
19797
19798
  var target = {};
19798
19799
  for (var prop in source)
19799
- if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
19800
+ if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
19800
19801
  target[prop] = source[prop];
19801
- if (source != null && __getOwnPropSymbols$A)
19802
- for (var prop of __getOwnPropSymbols$A(source)) {
19803
- 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))
19804
19805
  target[prop] = source[prop];
19805
19806
  }
19806
19807
  return target;
19807
19808
  };
19808
- var __async$s = (__this, __arguments, generator) => {
19809
+ var __async$t = (__this, __arguments, generator) => {
19809
19810
  return new Promise((resolve, reject) => {
19810
19811
  var fulfilled = (value) => {
19811
19812
  try {
@@ -19839,7 +19840,7 @@ var NgwLeaflet = (function () {
19839
19840
  * @internal
19840
19841
  */
19841
19842
  _addLayerProviders() {
19842
- return __async$s(this, null, function* () {
19843
+ return __async$t(this, null, function* () {
19843
19844
  try {
19844
19845
  for (var iter2 = __forAwait(this._starterKits), more2, temp2, error2; more2 = !(temp2 = yield iter2.next()).done; more2 = false) {
19845
19846
  const kit = temp2.value;
@@ -19883,7 +19884,7 @@ var NgwLeaflet = (function () {
19883
19884
  * @internal
19884
19885
  */
19885
19886
  _onLoadSync() {
19886
- return __async$s(this, null, function* () {
19887
+ return __async$t(this, null, function* () {
19887
19888
  try {
19888
19889
  for (var iter = __forAwait(this._starterKits), more, temp, error; more = !(temp = yield iter.next()).done; more = false) {
19889
19890
  const kit = temp.value;
@@ -19921,7 +19922,7 @@ var NgwLeaflet = (function () {
19921
19922
  }
19922
19923
  }
19923
19924
  const _a = controlOptions, { id, order, position } = _a, options = __objRest$8(_a, ["id", "order", "position"]);
19924
- this.addControl(controlAdapterName, position || "top-left", __spreadProps$o(__spreadValues$A({}, options), {
19925
+ this.addControl(controlAdapterName, position || "top-left", __spreadProps$p(__spreadValues$z({}, options), {
19925
19926
  id,
19926
19927
  order
19927
19928
  }));
@@ -19973,20 +19974,20 @@ var NgwLeaflet = (function () {
19973
19974
  return [promise, abortFunc];
19974
19975
  }
19975
19976
 
19976
- var __defProp$N = Object.defineProperty;
19977
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
19978
- 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);
19979
19980
  class Queue {
19980
19981
  /**
19981
19982
  * @param {PromiseQueueOptions} options - Configuration options for the queue.
19982
19983
  */
19983
19984
  constructor({ concurrency = 1, delay = 0 } = {}) {
19984
- __publicField$w(this, "queue", []);
19985
- __publicField$w(this, "concurrency");
19986
- __publicField$w(this, "activeCount", 0);
19987
- __publicField$w(this, "timeoutId");
19988
- __publicField$w(this, "delay");
19989
- __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", []);
19990
19991
  this.concurrency = concurrency;
19991
19992
  this.delay = delay;
19992
19993
  }
@@ -20062,13 +20063,13 @@ var NgwLeaflet = (function () {
20062
20063
 
20063
20064
  const imageQueue = new Queue({ concurrency: 6, delay: 200 });
20064
20065
 
20065
- var __defProp$M = Object.defineProperty;
20066
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20067
- 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);
20068
20069
  class ImageOverlay extends leafletSrcExports.ImageOverlay {
20069
20070
  constructor(imageUrl, bounds, options) {
20070
20071
  super(imageUrl, bounds, options);
20071
- __publicField$v(this, "_aborter");
20072
+ __publicField$w(this, "_aborter");
20072
20073
  }
20073
20074
  cancelLoad() {
20074
20075
  if (this._aborter) {
@@ -20098,16 +20099,16 @@ var NgwLeaflet = (function () {
20098
20099
  }
20099
20100
  }
20100
20101
 
20101
- var __defProp$L = Object.defineProperty;
20102
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20103
- 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);
20104
20105
  class ImageLayer extends leafletSrcExports.Layer {
20105
20106
  constructor(url, options) {
20106
20107
  super(options);
20107
- __publicField$u(this, "defaultWmsParams", {
20108
+ __publicField$v(this, "defaultWmsParams", {
20108
20109
  request: "GetMap"
20109
20110
  });
20110
- __publicField$u(this, "options", {
20111
+ __publicField$v(this, "options", {
20111
20112
  crs: null,
20112
20113
  uppercase: false,
20113
20114
  attribution: "",
@@ -20121,11 +20122,11 @@ var NgwLeaflet = (function () {
20121
20122
  viewPortBuffer: 0,
20122
20123
  setViewDelay: 100
20123
20124
  });
20124
- __publicField$u(this, "wmsParams");
20125
- __publicField$u(this, "_url");
20126
- __publicField$u(this, "_currentUrl");
20127
- __publicField$u(this, "_currentOverlay");
20128
- __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");
20129
20130
  this._url = url;
20130
20131
  const params = {};
20131
20132
  const opts = {};
@@ -20290,30 +20291,30 @@ var NgwLeaflet = (function () {
20290
20291
  }
20291
20292
  }
20292
20293
 
20293
- var __defProp$K = Object.defineProperty;
20294
- var __defProps$n = Object.defineProperties;
20295
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
20296
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
20297
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
20298
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
20299
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20300
- 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) => {
20301
20302
  for (var prop in b || (b = {}))
20302
- if (__hasOwnProp$z.call(b, prop))
20303
- __defNormalProp$K(a, prop, b[prop]);
20304
- if (__getOwnPropSymbols$z)
20305
- for (var prop of __getOwnPropSymbols$z(b)) {
20306
- if (__propIsEnum$z.call(b, prop))
20307
- __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]);
20308
20309
  }
20309
20310
  return a;
20310
20311
  };
20311
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
20312
- 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);
20313
20314
  class ImageAdapter extends BaseAdapter {
20314
20315
  constructor() {
20315
20316
  super(...arguments);
20316
- __publicField$t(this, "layer");
20317
+ __publicField$u(this, "layer");
20317
20318
  }
20318
20319
  addLayer(options) {
20319
20320
  var _a;
@@ -20321,10 +20322,10 @@ var NgwLeaflet = (function () {
20321
20322
  if (url) {
20322
20323
  const updateWmsParamsFromOpt = options.updateWmsParams;
20323
20324
  const request = getLayerRequestOptions(options);
20324
- 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({
20325
20326
  pane: this.pane,
20326
20327
  setViewDelay: options.setViewDelay
20327
- }, __spreadProps$n(__spreadValues$z({
20328
+ }, __spreadProps$o(__spreadValues$y({
20328
20329
  transparent: true
20329
20330
  }, options), {
20330
20331
  opacity: (_a = options.opacity) != null ? _a : void 0
@@ -20349,7 +20350,7 @@ var NgwLeaflet = (function () {
20349
20350
  }
20350
20351
  }
20351
20352
  }
20352
- __publicField$t(ImageAdapter, "queue", imageQueue);
20353
+ __publicField$u(ImageAdapter, "queue", imageQueue);
20353
20354
 
20354
20355
  function makeRemote(Base) {
20355
20356
  return class RemoteTileLayer extends Base {
@@ -20412,33 +20413,33 @@ var NgwLeaflet = (function () {
20412
20413
  }
20413
20414
  const TileLayer = makeRemote(TileLayerBase);
20414
20415
 
20415
- var __defProp$J = Object.defineProperty;
20416
- var __defProps$m = Object.defineProperties;
20417
- var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
20418
- var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
20419
- var __hasOwnProp$y = Object.prototype.hasOwnProperty;
20420
- var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
20421
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20422
- var __spreadValues$y = (a, b) => {
20423
- for (var prop in b || (b = {}))
20424
- if (__hasOwnProp$y.call(b, prop))
20425
- __defNormalProp$J(a, prop, b[prop]);
20426
- if (__getOwnPropSymbols$y)
20427
- for (var prop of __getOwnPropSymbols$y(b)) {
20428
- if (__propIsEnum$y.call(b, prop))
20429
- __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]);
20430
20431
  }
20431
20432
  return a;
20432
20433
  };
20433
- var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
20434
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
20434
20435
  var __objRest$7 = (source, exclude) => {
20435
20436
  var target = {};
20436
20437
  for (var prop in source)
20437
- if (__hasOwnProp$y.call(source, prop) && exclude.indexOf(prop) < 0)
20438
+ if (__hasOwnProp$x.call(source, prop) && exclude.indexOf(prop) < 0)
20438
20439
  target[prop] = source[prop];
20439
- if (source != null && __getOwnPropSymbols$y)
20440
- for (var prop of __getOwnPropSymbols$y(source)) {
20441
- 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))
20442
20443
  target[prop] = source[prop];
20443
20444
  }
20444
20445
  return target;
@@ -20449,7 +20450,7 @@ var NgwLeaflet = (function () {
20449
20450
  if (options) {
20450
20451
  const _a = options, { url } = _a, opt = __objRest$7(_a, ["url"]);
20451
20452
  if (url) {
20452
- const tileLayerOptions = __spreadValues$y({
20453
+ const tileLayerOptions = __spreadValues$x({
20453
20454
  pane: this.pane,
20454
20455
  attribution: opt.attribution,
20455
20456
  minZoom: opt.minZoom,
@@ -20461,7 +20462,7 @@ var NgwLeaflet = (function () {
20461
20462
  let layer;
20462
20463
  const request = getLayerRequestOptions(opt);
20463
20464
  if (request) {
20464
- layer = new TileLayer(url, __spreadProps$m(__spreadValues$y({}, tileLayerOptions), {
20465
+ layer = new TileLayer(url, __spreadProps$n(__spreadValues$x({}, tileLayerOptions), {
20465
20466
  request,
20466
20467
  setViewDelay: opt.setViewDelay
20467
20468
  }));
@@ -20483,29 +20484,29 @@ var NgwLeaflet = (function () {
20483
20484
  }
20484
20485
  }
20485
20486
 
20486
- var __defProp$I = Object.defineProperty;
20487
- var __defProps$l = Object.defineProperties;
20488
- var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
20489
- var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
20490
- var __hasOwnProp$x = Object.prototype.hasOwnProperty;
20491
- var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
20492
- var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20493
- 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) => {
20494
20495
  for (var prop in b || (b = {}))
20495
- if (__hasOwnProp$x.call(b, prop))
20496
- __defNormalProp$I(a, prop, b[prop]);
20497
- if (__getOwnPropSymbols$x)
20498
- for (var prop of __getOwnPropSymbols$x(b)) {
20499
- if (__propIsEnum$x.call(b, prop))
20500
- __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]);
20501
20502
  }
20502
20503
  return a;
20503
20504
  };
20504
- var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
20505
+ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
20505
20506
  class OsmAdapter extends TileAdapter {
20506
20507
  addLayer(options) {
20507
20508
  const url = "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png";
20508
- return super.addLayer(__spreadProps$l(__spreadValues$x({
20509
+ return super.addLayer(__spreadProps$m(__spreadValues$w({
20509
20510
  name: "OpenStreetMap",
20510
20511
  attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
20511
20512
  }, options), {
@@ -20521,55 +20522,57 @@ var NgwLeaflet = (function () {
20521
20522
  }
20522
20523
  const WmsLayer = makeRemote(WmsLayerBase);
20523
20524
 
20524
- var __defProp$H = Object.defineProperty;
20525
- var __defProps$k = Object.defineProperties;
20526
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
20527
- var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
20528
- var __hasOwnProp$w = Object.prototype.hasOwnProperty;
20529
- var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
20530
- var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20531
- 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) => {
20532
20533
  for (var prop in b || (b = {}))
20533
- if (__hasOwnProp$w.call(b, prop))
20534
- __defNormalProp$H(a, prop, b[prop]);
20535
- if (__getOwnPropSymbols$w)
20536
- for (var prop of __getOwnPropSymbols$w(b)) {
20537
- if (__propIsEnum$w.call(b, prop))
20538
- __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]);
20539
20540
  }
20540
20541
  return a;
20541
20542
  };
20542
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
20543
+ var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
20543
20544
  var __objRest$6 = (source, exclude) => {
20544
20545
  var target = {};
20545
20546
  for (var prop in source)
20546
- if (__hasOwnProp$w.call(source, prop) && exclude.indexOf(prop) < 0)
20547
+ if (__hasOwnProp$v.call(source, prop) && exclude.indexOf(prop) < 0)
20547
20548
  target[prop] = source[prop];
20548
- if (source != null && __getOwnPropSymbols$w)
20549
- for (var prop of __getOwnPropSymbols$w(source)) {
20550
- 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))
20551
20552
  target[prop] = source[prop];
20552
20553
  }
20553
20554
  return target;
20554
20555
  };
20555
20556
  class WmsAdapter extends BaseAdapter {
20556
20557
  addLayer(options) {
20558
+ var _b;
20557
20559
  Object.assign(this.options, options);
20558
20560
  const _a = options, { url } = _a, opt = __objRest$6(_a, ["url"]);
20559
20561
  if (url) {
20560
- const layerOptions = __spreadValues$w({
20562
+ const layerOptions = __spreadValues$v(__spreadValues$v({
20561
20563
  pane: this.pane,
20562
20564
  attribution: opt.attribution,
20563
20565
  minZoom: opt.minZoom,
20564
20566
  maxZoom: opt.maxZoom,
20565
20567
  layers: options.layers,
20566
20568
  format: options.format,
20567
- transparent: true
20568
- }, options.nativeOptions);
20569
+ version: options.version,
20570
+ transparent: (_b = options.transparent) != null ? _b : true
20571
+ }, options.params), options.nativeOptions);
20569
20572
  let layer;
20570
20573
  const request = getLayerRequestOptions(opt);
20571
20574
  if (request) {
20572
- layer = new WmsLayer(url, __spreadProps$k(__spreadValues$w({}, layerOptions), {
20575
+ layer = new WmsLayer(url, __spreadProps$l(__spreadValues$v({}, layerOptions), {
20573
20576
  request
20574
20577
  }));
20575
20578
  } else {
@@ -20588,34 +20591,34 @@ var NgwLeaflet = (function () {
20588
20591
  ];
20589
20592
  }
20590
20593
 
20591
- var __defProp$G = Object.defineProperty;
20592
- var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
20593
- var __hasOwnProp$v = Object.prototype.hasOwnProperty;
20594
- var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
20595
- var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
20596
- 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) => {
20597
20600
  for (var prop in b || (b = {}))
20598
- if (__hasOwnProp$v.call(b, prop))
20599
- __defNormalProp$G(a, prop, b[prop]);
20600
- if (__getOwnPropSymbols$v)
20601
- for (var prop of __getOwnPropSymbols$v(b)) {
20602
- if (__propIsEnum$v.call(b, prop))
20603
- __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]);
20604
20607
  }
20605
20608
  return a;
20606
20609
  };
20607
- 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);
20608
20611
  const _LeafletMapAdapter = class _LeafletMapAdapter {
20609
20612
  constructor() {
20610
- __publicField$s(this, "options", { target: "map" });
20611
- __publicField$s(this, "layerAdapters", _LeafletMapAdapter.layerAdapters);
20612
- __publicField$s(this, "controlAdapters", _LeafletMapAdapter.controlAdapters);
20613
- __publicField$s(this, "emitter", new EventEmitter());
20614
- __publicField$s(this, "map");
20615
- __publicField$s(this, "_resizeObserver");
20616
- __publicField$s(this, "_controlContainer");
20617
- __publicField$s(this, "_unselectCb", []);
20618
- __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", [
20619
20622
  "move",
20620
20623
  "zoom",
20621
20624
  "zoomend",
@@ -20623,14 +20626,14 @@ var NgwLeaflet = (function () {
20623
20626
  "moveend",
20624
20627
  "movestart"
20625
20628
  ]);
20626
- __publicField$s(this, "_positionEvents", [
20629
+ __publicField$t(this, "_positionEvents", [
20627
20630
  "mousemove",
20628
20631
  "mouseout",
20629
20632
  "mouseover"
20630
20633
  ]);
20631
20634
  }
20632
20635
  create(options) {
20633
- this.options = __spreadValues$v({}, options);
20636
+ this.options = __spreadValues$u({}, options);
20634
20637
  if (this.options.target) {
20635
20638
  const {
20636
20639
  zoom,
@@ -20640,7 +20643,7 @@ var NgwLeaflet = (function () {
20640
20643
  maxBounds: mb,
20641
20644
  mapAdapterOptions
20642
20645
  } = this.options;
20643
- 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({
20644
20647
  attributionControl: false,
20645
20648
  zoomControl: false,
20646
20649
  maxBounds: mb ? arrayToBoundsExpression(mb) : void 0,
@@ -20932,7 +20935,7 @@ var NgwLeaflet = (function () {
20932
20935
  }
20933
20936
  }
20934
20937
  };
20935
- __publicField$s(_LeafletMapAdapter, "layerAdapters", {
20938
+ __publicField$t(_LeafletMapAdapter, "layerAdapters", {
20936
20939
  GEOJSON: GeoJsonAdapter,
20937
20940
  IMAGE: ImageAdapter,
20938
20941
  TILE: TileAdapter,
@@ -20940,11 +20943,11 @@ var NgwLeaflet = (function () {
20940
20943
  // // MVT: MvtAdapter,
20941
20944
  OSM: OsmAdapter
20942
20945
  });
20943
- __publicField$s(_LeafletMapAdapter, "controlAdapters", {
20946
+ __publicField$t(_LeafletMapAdapter, "controlAdapters", {
20944
20947
  ZOOM: leafletSrcExports.Control.Zoom,
20945
20948
  ATTRIBUTION: AttributionControl
20946
20949
  });
20947
- __publicField$s(_LeafletMapAdapter, "Map", leafletSrcExports.Map);
20950
+ __publicField$t(_LeafletMapAdapter, "Map", leafletSrcExports.Map);
20948
20951
  let LeafletMapAdapter = _LeafletMapAdapter;
20949
20952
 
20950
20953
  const svgPath = {
@@ -21032,23 +21035,23 @@ var NgwLeaflet = (function () {
21032
21035
  });
21033
21036
  }
21034
21037
 
21035
- var __defProp$F = Object.defineProperty;
21036
- var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
21037
- var __hasOwnProp$u = Object.prototype.hasOwnProperty;
21038
- var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
21039
- var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21040
- 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) => {
21041
21044
  for (var prop in b || (b = {}))
21042
- if (__hasOwnProp$u.call(b, prop))
21043
- __defNormalProp$F(a, prop, b[prop]);
21044
- if (__getOwnPropSymbols$u)
21045
- for (var prop of __getOwnPropSymbols$u(b)) {
21046
- if (__propIsEnum$u.call(b, prop))
21047
- __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]);
21048
21051
  }
21049
21052
  return a;
21050
21053
  };
21051
- var __async$r = (__this, __arguments, generator) => {
21054
+ var __async$s = (__this, __arguments, generator) => {
21052
21055
  return new Promise((resolve, reject) => {
21053
21056
  var fulfilled = (value) => {
21054
21057
  try {
@@ -21069,7 +21072,7 @@ var NgwLeaflet = (function () {
21069
21072
  });
21070
21073
  };
21071
21074
  function apiRequest(opt) {
21072
- return __async$r(this, null, function* () {
21075
+ return __async$s(this, null, function* () {
21073
21076
  const { params, name, connector, requestOptions } = opt;
21074
21077
  const apiItems = yield connector.connect();
21075
21078
  let apiItem = apiItems && apiItems[name];
@@ -21107,7 +21110,7 @@ var NgwLeaflet = (function () {
21107
21110
  }
21108
21111
  }
21109
21112
  if (url) {
21110
- return connector.makeQuery(url, params, __spreadValues$u({
21113
+ return connector.makeQuery(url, params, __spreadValues$t({
21111
21114
  cacheName: name
21112
21115
  }, requestOptions));
21113
21116
  } else {
@@ -21119,12 +21122,12 @@ var NgwLeaflet = (function () {
21119
21122
  });
21120
21123
  }
21121
21124
 
21122
- var __defProp$E = Object.defineProperty;
21123
- var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21124
- 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);
21125
21128
  const _Cache = class _Cache {
21126
21129
  constructor(options = {}) {
21127
- __publicField$r(this, "cache", []);
21130
+ __publicField$s(this, "cache", []);
21128
21131
  var _a;
21129
21132
  const namespace = (_a = options.namespace) != null ? _a : "default";
21130
21133
  if (_Cache.instance[namespace]) {
@@ -21255,11 +21258,11 @@ var NgwLeaflet = (function () {
21255
21258
  return objectDeepEqual(itemProps || {}, objectRemoveEmpty(props));
21256
21259
  }
21257
21260
  };
21258
- __publicField$r(_Cache, "instance", {});
21261
+ __publicField$s(_Cache, "instance", {});
21259
21262
  let Cache = _Cache;
21260
21263
 
21261
21264
  var pkg = {
21262
- version: "3.0.1"};
21265
+ version: "4.0.0-alpha.2"};
21263
21266
 
21264
21267
  class AbortError extends Error {
21265
21268
  constructor(message = "AbortError") {
@@ -21268,46 +21271,46 @@ var NgwLeaflet = (function () {
21268
21271
  }
21269
21272
  }
21270
21273
 
21271
- var __defProp$D = Object.defineProperty;
21272
- var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21273
- 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);
21274
21277
  class NgwError extends Error {
21275
21278
  constructor(er) {
21276
21279
  super();
21277
- __publicField$q(this, "name", "NgwError");
21278
- __publicField$q(this, "title");
21279
- __publicField$q(this, "message");
21280
- __publicField$q(this, "detail");
21281
- __publicField$q(this, "exception");
21282
- __publicField$q(this, "status_code");
21283
- __publicField$q(this, "data");
21284
- __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");
21285
21288
  Object.assign(this, er);
21286
21289
  Object.setPrototypeOf(this, NgwError.prototype);
21287
21290
  }
21288
21291
  }
21289
21292
 
21290
- var __defProp$C = Object.defineProperty;
21291
- var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21292
- 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);
21293
21296
  class InsufficientPermissionsError extends NgwError {
21294
21297
  constructor(obj) {
21295
21298
  super(obj);
21296
- __publicField$p(this, "name", "InsufficientPermissionsError");
21297
- __publicField$p(this, "exception", "nextgisweb.core.exception.InsufficientPermissions");
21299
+ __publicField$q(this, "name", "InsufficientPermissionsError");
21300
+ __publicField$q(this, "exception", "nextgisweb.core.exception.InsufficientPermissions");
21298
21301
  Object.setPrototypeOf(this, InsufficientPermissionsError.prototype);
21299
21302
  }
21300
21303
  }
21301
21304
 
21302
- var __defProp$B = Object.defineProperty;
21303
- var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21304
- 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);
21305
21308
  let NetworksResponseError$1 = class NetworksResponseError extends NgwError {
21306
21309
  constructor(obj) {
21307
21310
  super(obj);
21308
- __publicField$o(this, "message", "There is no response from the server or problem connecting to server.");
21309
- __publicField$o(this, "title", "Network error");
21310
- __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.");
21311
21314
  Object.setPrototypeOf(this, NetworksResponseError.prototype);
21312
21315
  }
21313
21316
  };
@@ -21344,27 +21347,27 @@ var NgwLeaflet = (function () {
21344
21347
  return false;
21345
21348
  }
21346
21349
 
21347
- var __defProp$A = Object.defineProperty;
21348
- var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21349
- 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);
21350
21353
  class NetworkError extends Error {
21351
21354
  constructor(url) {
21352
21355
  super();
21353
- __publicField$n(this, "name", "NetworkError");
21356
+ __publicField$o(this, "name", "NetworkError");
21354
21357
  Object.setPrototypeOf(this, NetworkError.prototype);
21355
21358
  this.message = `Unable to request ${url}.
21356
21359
  Possibly invalid NGW URL entered or CORS not configured to get request from ${location.origin}`;
21357
21360
  }
21358
21361
  }
21359
21362
 
21360
- var __defProp$z = Object.defineProperty;
21361
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21362
- 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);
21363
21366
  class ResourceNotFoundError extends NgwError {
21364
21367
  constructor(obj) {
21365
21368
  super(obj);
21366
- __publicField$m(this, "name", "ResourceNotFoundError");
21367
- __publicField$m(this, "exception", "nextgisweb.resource.exception.ResourceNotFound");
21369
+ __publicField$n(this, "name", "ResourceNotFoundError");
21370
+ __publicField$n(this, "exception", "nextgisweb.resource.exception.ResourceNotFound");
21368
21371
  Object.setPrototypeOf(this, ResourceNotFoundError.prototype);
21369
21372
  }
21370
21373
  }
@@ -21381,13 +21384,13 @@ var NgwLeaflet = (function () {
21381
21384
  isError: isError
21382
21385
  });
21383
21386
 
21384
- var __defProp$y = Object.defineProperty;
21385
- var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21386
- 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);
21387
21390
  class BaseAPIError extends Error {
21388
21391
  constructor(message) {
21389
21392
  super(message || "Something went wrong.");
21390
- __publicField$l(this, "title");
21393
+ __publicField$m(this, "title");
21391
21394
  this.name = "BaseAPIError";
21392
21395
  this.title = "Unknown API error";
21393
21396
  if (Error.captureStackTrace) {
@@ -21399,7 +21402,7 @@ var NgwLeaflet = (function () {
21399
21402
  // prettier-ignore
21400
21403
  constructor(message) {
21401
21404
  super(message || "There is no response from the server or problem connecting to server.");
21402
- __publicField$l(this, "detail");
21405
+ __publicField$m(this, "detail");
21403
21406
  this.title = "Network error";
21404
21407
  this.detail = "Check network connectivity and try again later.";
21405
21408
  }
@@ -21413,8 +21416,8 @@ var NgwLeaflet = (function () {
21413
21416
  class ServerResponseError extends BaseAPIError {
21414
21417
  constructor(data) {
21415
21418
  super(data.message);
21416
- __publicField$l(this, "detail");
21417
- __publicField$l(this, "data");
21419
+ __publicField$m(this, "detail");
21420
+ __publicField$m(this, "data");
21418
21421
  this.title = data.title || this.title;
21419
21422
  this.detail = data.detail || null;
21420
21423
  this.data = data;
@@ -21424,8 +21427,8 @@ var NgwLeaflet = (function () {
21424
21427
  // prettier-ignore
21425
21428
  constructor(message, data = {}) {
21426
21429
  super(message || "Unexpected error while processing long-running request.");
21427
- __publicField$l(this, "title");
21428
- __publicField$l(this, "data");
21430
+ __publicField$m(this, "title");
21431
+ __publicField$m(this, "data");
21429
21432
  this.name = "LunkwillError";
21430
21433
  this.title = "Long-running request error";
21431
21434
  this.data = data;
@@ -21445,35 +21448,35 @@ var NgwLeaflet = (function () {
21445
21448
  }
21446
21449
  }
21447
21450
 
21448
- var __defProp$x = Object.defineProperty;
21449
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
21450
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
21451
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
21452
- var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21453
- 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) => {
21454
21457
  for (var prop in b || (b = {}))
21455
- if (__hasOwnProp$t.call(b, prop))
21456
- __defNormalProp$x(a, prop, b[prop]);
21457
- if (__getOwnPropSymbols$t)
21458
- for (var prop of __getOwnPropSymbols$t(b)) {
21459
- if (__propIsEnum$t.call(b, prop))
21460
- __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]);
21461
21464
  }
21462
21465
  return a;
21463
21466
  };
21464
21467
  var __objRest$5 = (source, exclude) => {
21465
21468
  var target = {};
21466
21469
  for (var prop in source)
21467
- if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
21470
+ if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
21468
21471
  target[prop] = source[prop];
21469
- if (source != null && __getOwnPropSymbols$t)
21470
- for (var prop of __getOwnPropSymbols$t(source)) {
21471
- 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))
21472
21475
  target[prop] = source[prop];
21473
21476
  }
21474
21477
  return target;
21475
21478
  };
21476
- var __async$q = (__this, __arguments, generator) => {
21479
+ var __async$r = (__this, __arguments, generator) => {
21477
21480
  return new Promise((resolve, reject) => {
21478
21481
  var fulfilled = (value) => {
21479
21482
  try {
@@ -21498,7 +21501,7 @@ var NgwLeaflet = (function () {
21498
21501
  return ct !== void 0 && ct !== null && ct.includes("application/vnd.lunkwill.request-summary+json");
21499
21502
  }
21500
21503
  function responseJson(response) {
21501
- return __async$q(this, null, function* () {
21504
+ return __async$r(this, null, function* () {
21502
21505
  try {
21503
21506
  return response.json();
21504
21507
  } catch (e) {
@@ -21507,7 +21510,7 @@ var NgwLeaflet = (function () {
21507
21510
  });
21508
21511
  }
21509
21512
  function lunkwillResponseUrl(lwResp) {
21510
- return __async$q(this, null, function* () {
21513
+ return __async$r(this, null, function* () {
21511
21514
  const lwData = yield responseJson(lwResp);
21512
21515
  let delay = lwData.delay_ms;
21513
21516
  const retry = lwData.retry_ms !== void 0 ? lwData.retry_ms : 2e3;
@@ -21551,7 +21554,7 @@ var NgwLeaflet = (function () {
21551
21554
  });
21552
21555
  }
21553
21556
  function lunkwillFetch(lwRespUrl) {
21554
- return __async$q(this, null, function* () {
21557
+ return __async$r(this, null, function* () {
21555
21558
  try {
21556
21559
  return yield window.fetch(lwRespUrl, { credentials: "same-origin" });
21557
21560
  } catch (e) {
@@ -21599,14 +21602,14 @@ var NgwLeaflet = (function () {
21599
21602
  return path + urlParams;
21600
21603
  }
21601
21604
  function request(path, options, cacheEngine) {
21602
- return __async$q(this, null, function* () {
21605
+ return __async$r(this, null, function* () {
21603
21606
  var _b, _c;
21604
21607
  const defaults = {
21605
21608
  method: "GET",
21606
21609
  credentials: "same-origin",
21607
21610
  headers: {}
21608
21611
  };
21609
- const _a = __spreadValues$t(__spreadValues$t({}, defaults), options), {
21612
+ const _a = __spreadValues$s(__spreadValues$s({}, defaults), options), {
21610
21613
  withCredentials,
21611
21614
  responseType,
21612
21615
  cacheProps,
@@ -21643,7 +21646,7 @@ var NgwLeaflet = (function () {
21643
21646
  opt.headers = headers;
21644
21647
  }
21645
21648
  const url = generateUrl(path, query);
21646
- const makeRequest = () => __async$q(null, null, function* () {
21649
+ const makeRequest = () => __async$r(null, null, function* () {
21647
21650
  let response;
21648
21651
  try {
21649
21652
  response = yield fetch(url, opt);
@@ -21686,7 +21689,7 @@ var NgwLeaflet = (function () {
21686
21689
  if (cacheEngine) {
21687
21690
  if (((_c = opt.method) == null ? void 0 : _c.toUpperCase()) === "GET") {
21688
21691
  if (cache !== false) {
21689
- const props = cacheProps ? cacheProps : __spreadValues$t({}, objectRemoveEmpty({
21692
+ const props = cacheProps ? cacheProps : __spreadValues$s({}, objectRemoveEmpty({
21690
21693
  withCredentials,
21691
21694
  responseType
21692
21695
  }));
@@ -21706,38 +21709,38 @@ var NgwLeaflet = (function () {
21706
21709
  });
21707
21710
  }
21708
21711
 
21709
- var __defProp$w = Object.defineProperty;
21710
- var __defProps$j = Object.defineProperties;
21711
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
21712
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
21713
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
21714
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
21715
- var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21716
- 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) => {
21717
21720
  for (var prop in b || (b = {}))
21718
- if (__hasOwnProp$s.call(b, prop))
21719
- __defNormalProp$w(a, prop, b[prop]);
21720
- if (__getOwnPropSymbols$s)
21721
- for (var prop of __getOwnPropSymbols$s(b)) {
21722
- if (__propIsEnum$s.call(b, prop))
21723
- __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]);
21724
21727
  }
21725
21728
  return a;
21726
21729
  };
21727
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
21730
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
21728
21731
  var __objRest$4 = (source, exclude) => {
21729
21732
  var target = {};
21730
21733
  for (var prop in source)
21731
- if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
21734
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
21732
21735
  target[prop] = source[prop];
21733
- if (source != null && __getOwnPropSymbols$s)
21734
- for (var prop of __getOwnPropSymbols$s(source)) {
21735
- 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))
21736
21739
  target[prop] = source[prop];
21737
21740
  }
21738
21741
  return target;
21739
21742
  };
21740
- var __async$p = (__this, __arguments, generator) => {
21743
+ var __async$q = (__this, __arguments, generator) => {
21741
21744
  return new Promise((resolve, reject) => {
21742
21745
  var fulfilled = (value) => {
21743
21746
  try {
@@ -21788,7 +21791,7 @@ var NgwLeaflet = (function () {
21788
21791
  }
21789
21792
  function route(name, connector, ...rest) {
21790
21793
  const result = {
21791
- url: (opt) => __async$p(null, null, function* () {
21794
+ url: (opt) => __async$q(null, null, function* () {
21792
21795
  var _a;
21793
21796
  const routeData = yield connector.connect();
21794
21797
  const template = routeURL(
@@ -21816,10 +21819,10 @@ var NgwLeaflet = (function () {
21816
21819
  routeData,
21817
21820
  ...rest
21818
21821
  );
21819
- 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 : {}));
21820
21823
  return request(
21821
21824
  template,
21822
- __spreadProps$j(__spreadValues$s({
21825
+ __spreadProps$k(__spreadValues$r({
21823
21826
  headers
21824
21827
  }, restOpt), {
21825
21828
  method
@@ -21943,39 +21946,39 @@ var NgwLeaflet = (function () {
21943
21946
  }
21944
21947
  }
21945
21948
 
21946
- var __defProp$v = Object.defineProperty;
21947
- var __defProps$i = Object.defineProperties;
21948
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
21949
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
21950
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
21951
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
21952
- var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
21953
- 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) => {
21954
21957
  for (var prop in b || (b = {}))
21955
- if (__hasOwnProp$r.call(b, prop))
21956
- __defNormalProp$v(a, prop, b[prop]);
21957
- if (__getOwnPropSymbols$r)
21958
- for (var prop of __getOwnPropSymbols$r(b)) {
21959
- if (__propIsEnum$r.call(b, prop))
21960
- __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]);
21961
21964
  }
21962
21965
  return a;
21963
21966
  };
21964
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
21967
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
21965
21968
  var __objRest$3 = (source, exclude) => {
21966
21969
  var target = {};
21967
21970
  for (var prop in source)
21968
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
21971
+ if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
21969
21972
  target[prop] = source[prop];
21970
- if (source != null && __getOwnPropSymbols$r)
21971
- for (var prop of __getOwnPropSymbols$r(source)) {
21972
- 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))
21973
21976
  target[prop] = source[prop];
21974
21977
  }
21975
21978
  return target;
21976
21979
  };
21977
- var __publicField$k = (obj, key, value) => __defNormalProp$v(obj, typeof key !== "symbol" ? key + "" : key, value);
21978
- 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) => {
21979
21982
  return new Promise((resolve, reject) => {
21980
21983
  var fulfilled = (value) => {
21981
21984
  try {
@@ -22000,18 +22003,18 @@ var NgwLeaflet = (function () {
22000
22003
  class NgwConnector {
22001
22004
  constructor(options) {
22002
22005
  this.options = options;
22003
- __publicField$k(this, "id", ID$1++);
22004
- __publicField$k(this, "emitter", new EventEmitter());
22005
- __publicField$k(this, "user");
22006
- __publicField$k(this, "cache");
22007
- __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");
22008
22011
  // Dedicated cache for route requests, as these are executed before any other requests.
22009
22012
  // This cache does not need to be cleared during the session.
22010
- __publicField$k(this, "routeCache");
22011
- __publicField$k(this, "client", `NextGIS-NGW-Connector/${pkg.version}`);
22012
- __publicField$k(this, "routeStr", "/api/component/pyramid/route");
22013
- __publicField$k(this, "activeRequests", {});
22014
- __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");
22015
22018
  const exist = findConnector(options);
22016
22019
  this.cache = new Cache({ namespace: options.cacheId });
22017
22020
  this.routeCache = new Cache({ namespace: "routecache" });
@@ -22064,7 +22067,7 @@ var NgwLeaflet = (function () {
22064
22067
  * ```
22065
22068
  */
22066
22069
  connect() {
22067
- return __async$o(this, arguments, function* ({
22070
+ return __async$p(this, arguments, function* ({
22068
22071
  signal
22069
22072
  } = {}) {
22070
22073
  const auth = this.options.auth;
@@ -22103,14 +22106,14 @@ var NgwLeaflet = (function () {
22103
22106
  this.emitter.emit("logout");
22104
22107
  }
22105
22108
  getUserInfo(credentials, options) {
22106
- return __async$o(this, null, function* () {
22109
+ return __async$p(this, null, function* () {
22107
22110
  if (this.user && this.user.id) {
22108
22111
  return this.user;
22109
22112
  }
22110
22113
  if (credentials) {
22111
22114
  this.options.auth = credentials;
22112
22115
  }
22113
- const options_ = __spreadValues$r({
22116
+ const options_ = __spreadValues$q({
22114
22117
  headers: this.getAuthorizationHeaders(credentials),
22115
22118
  cache: true
22116
22119
  }, options);
@@ -22151,7 +22154,7 @@ var NgwLeaflet = (function () {
22151
22154
  this.activeRequests = {};
22152
22155
  }
22153
22156
  getActiveApiRequests() {
22154
- return __spreadValues$r({}, this.activeRequests);
22157
+ return __spreadValues$q({}, this.activeRequests);
22155
22158
  }
22156
22159
  route(name, ...rest) {
22157
22160
  return route(name, this, ...rest);
@@ -22163,7 +22166,7 @@ var NgwLeaflet = (function () {
22163
22166
  * @param options - Request options
22164
22167
  */
22165
22168
  makeQuery(_0, _1) {
22166
- return __async$o(this, arguments, function* (url, params, options = {}) {
22169
+ return __async$p(this, arguments, function* (url, params, options = {}) {
22167
22170
  var _b;
22168
22171
  url = (this.options.baseUrl ? this.options.baseUrl : "") + url;
22169
22172
  if (!url) {
@@ -22174,7 +22177,7 @@ var NgwLeaflet = (function () {
22174
22177
  url = template(url, restParams);
22175
22178
  }
22176
22179
  url = encodeURI(fixUrlStr(url));
22177
- options = __spreadValues$r({ withCredentials: this.withCredentials }, options);
22180
+ options = __spreadValues$q({ withCredentials: this.withCredentials }, options);
22178
22181
  const {
22179
22182
  cache,
22180
22183
  signal: externalSignal,
@@ -22196,7 +22199,7 @@ var NgwLeaflet = (function () {
22196
22199
  });
22197
22200
  }
22198
22201
  options.signal = internalSignal;
22199
- const createPromise = () => __async$o(this, null, function* () {
22202
+ const createPromise = () => __async$p(this, null, function* () {
22200
22203
  const id = REQUEST_ID++;
22201
22204
  this.activeRequests[id] = internalAbortController;
22202
22205
  try {
@@ -22206,7 +22209,7 @@ var NgwLeaflet = (function () {
22206
22209
  }
22207
22210
  });
22208
22211
  if (method === "GET" && cache !== false) {
22209
- const cacheOptions = cacheProps ? cacheProps : __spreadProps$i(__spreadValues$r({}, objectRemoveEmpty({
22212
+ const cacheOptions = cacheProps ? cacheProps : __spreadProps$j(__spreadValues$q({}, objectRemoveEmpty({
22210
22213
  headers,
22211
22214
  withCredentials,
22212
22215
  responseType,
@@ -22229,7 +22232,7 @@ var NgwLeaflet = (function () {
22229
22232
  var _a;
22230
22233
  if (this.user) {
22231
22234
  options = options || {};
22232
- options.headers = __spreadValues$r(__spreadValues$r({}, this.getAuthorizationHeaders()), options.headers);
22235
+ options.headers = __spreadValues$q(__spreadValues$q({}, this.getAuthorizationHeaders()), options.headers);
22233
22236
  }
22234
22237
  if (this.requestTransform) {
22235
22238
  const [transUrl, transOptions] = this.requestTransform(url, options);
@@ -22260,7 +22263,7 @@ var NgwLeaflet = (function () {
22260
22263
  });
22261
22264
  }
22262
22265
  _login(credentials, options) {
22263
- return __async$o(this, null, function* () {
22266
+ return __async$p(this, null, function* () {
22264
22267
  try {
22265
22268
  const data = yield this.getUserInfo(credentials, options);
22266
22269
  this.user = data;
@@ -22288,7 +22291,7 @@ var NgwLeaflet = (function () {
22288
22291
  return er;
22289
22292
  }
22290
22293
  }
22291
- __publicField$k(NgwConnector, "errors", errors);
22294
+ __publicField$l(NgwConnector, "errors", errors);
22292
22295
 
22293
22296
  function resourceCompare(res1, res2) {
22294
22297
  return objectDeepEqual(res1, res2);
@@ -22318,27 +22321,27 @@ var NgwLeaflet = (function () {
22318
22321
  return query;
22319
22322
  }
22320
22323
 
22321
- var __defProp$u = Object.defineProperty;
22322
- var __defProps$h = Object.defineProperties;
22323
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
22324
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
22325
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
22326
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
22327
- var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22328
- 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) => {
22329
22332
  for (var prop in b || (b = {}))
22330
- if (__hasOwnProp$q.call(b, prop))
22331
- __defNormalProp$u(a, prop, b[prop]);
22332
- if (__getOwnPropSymbols$q)
22333
- for (var prop of __getOwnPropSymbols$q(b)) {
22334
- if (__propIsEnum$q.call(b, prop))
22335
- __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]);
22336
22339
  }
22337
22340
  return a;
22338
22341
  };
22339
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
22340
- var __publicField$j = (obj, key, value) => __defNormalProp$u(obj, typeof key !== "symbol" ? key + "" : key, value);
22341
- 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) => {
22342
22345
  return new Promise((resolve, reject) => {
22343
22346
  var fulfilled = (value) => {
22344
22347
  try {
@@ -22363,8 +22366,8 @@ var NgwLeaflet = (function () {
22363
22366
  connector,
22364
22367
  cacheId
22365
22368
  }) {
22366
- __publicField$j(this, "cache");
22367
- __publicField$j(this, "connector");
22369
+ __publicField$k(this, "cache");
22370
+ __publicField$k(this, "connector");
22368
22371
  this.connector = connector;
22369
22372
  this.cache = new Cache({ namespace: cacheId });
22370
22373
  }
@@ -22379,7 +22382,7 @@ var NgwLeaflet = (function () {
22379
22382
  * Fetching resource would be cached to speed up next call
22380
22383
  */
22381
22384
  getOne(resource, requestOptions) {
22382
- const opt = __spreadValues$q({}, requestOptions);
22385
+ const opt = __spreadValues$p({}, requestOptions);
22383
22386
  if (typeof resource === "string") ; else if (typeof resource === "number") ; else if (isObject(resource)) {
22384
22387
  if (resource.id !== void 0) {
22385
22388
  resource.id;
@@ -22456,8 +22459,8 @@ var NgwLeaflet = (function () {
22456
22459
  } else {
22457
22460
  Object.assign(query, resourceToQuery(resource));
22458
22461
  }
22459
- return this.connector.route("resource.search").get(__spreadProps$h(__spreadValues$q({}, requestOptions), {
22460
- query: __spreadValues$q({
22462
+ return this.connector.route("resource.search").get(__spreadProps$i(__spreadValues$p({}, requestOptions), {
22463
+ query: __spreadValues$p({
22461
22464
  serialization: "full"
22462
22465
  }, query)
22463
22466
  })).then((resources) => {
@@ -22510,7 +22513,7 @@ var NgwLeaflet = (function () {
22510
22513
  });
22511
22514
  }
22512
22515
  _getChildrenOf(_0, _1) {
22513
- return __async$n(this, arguments, function* (parentDef, requestOptions, _items = []) {
22516
+ return __async$o(this, arguments, function* (parentDef, requestOptions, _items = []) {
22514
22517
  let parent = void 0;
22515
22518
  if (typeof parentDef === "string") {
22516
22519
  parent = yield this.getId(parentDef, requestOptions);
@@ -22519,7 +22522,7 @@ var NgwLeaflet = (function () {
22519
22522
  } else {
22520
22523
  parent = parentDef;
22521
22524
  }
22522
- 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), {
22523
22526
  query: {
22524
22527
  parent
22525
22528
  }
@@ -22547,7 +22550,7 @@ var NgwLeaflet = (function () {
22547
22550
  });
22548
22551
  }
22549
22552
  _cleanResourceItemCache(id) {
22550
- return __async$n(this, null, function* () {
22553
+ return __async$o(this, null, function* () {
22551
22554
  var _a;
22552
22555
  const all = this.cache.all();
22553
22556
  const toDelete = [];
@@ -22600,13 +22603,13 @@ var NgwLeaflet = (function () {
22600
22603
  }
22601
22604
  }
22602
22605
 
22603
- var __defProp$t = Object.defineProperty;
22604
- var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22605
- 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);
22606
22609
  class NgwConnectorExtended extends NgwConnector {
22607
22610
  constructor(options) {
22608
22611
  super(options);
22609
- __publicField$i(this, "resources");
22612
+ __publicField$j(this, "resources");
22610
22613
  this.resources = new ResourcesControl({
22611
22614
  connector: this,
22612
22615
  cacheId: options.cacheId
@@ -22816,25 +22819,25 @@ var NgwLeaflet = (function () {
22816
22819
  }
22817
22820
  }
22818
22821
 
22819
- var __defProp$s = Object.defineProperty;
22820
- var __defProps$g = Object.defineProperties;
22821
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
22822
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
22823
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
22824
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
22825
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22826
- 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) => {
22827
22830
  for (var prop in b || (b = {}))
22828
- if (__hasOwnProp$p.call(b, prop))
22829
- __defNormalProp$s(a, prop, b[prop]);
22830
- if (__getOwnPropSymbols$p)
22831
- for (var prop of __getOwnPropSymbols$p(b)) {
22832
- if (__propIsEnum$p.call(b, prop))
22833
- __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]);
22834
22837
  }
22835
22838
  return a;
22836
22839
  };
22837
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
22840
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
22838
22841
  function getNgwWebmapExtent(webmap) {
22839
22842
  const bottom = webmap["extent_bottom"];
22840
22843
  const left = webmap["extent_left"];
@@ -22901,14 +22904,14 @@ var NgwLeaflet = (function () {
22901
22904
  if (resource.cls && resource.parent && resource.cls.indexOf("style") !== -1) {
22902
22905
  return connector.getResource(resource.parent.id, options).then((res) => {
22903
22906
  if (res) {
22904
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$p({}, options), {
22907
+ return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$o({}, options), {
22905
22908
  resourceId: res.resource.id,
22906
22909
  connector
22907
22910
  }));
22908
22911
  }
22909
22912
  });
22910
22913
  } else {
22911
- return fetchNgwLayerExtent(__spreadProps$g(__spreadValues$p({}, options), {
22914
+ return fetchNgwLayerExtent(__spreadProps$h(__spreadValues$o({}, options), {
22912
22915
  resourceId: resource.id,
22913
22916
  connector
22914
22917
  }));
@@ -22916,10 +22919,10 @@ var NgwLeaflet = (function () {
22916
22919
  }
22917
22920
  }
22918
22921
 
22919
- var __defProp$r = Object.defineProperty;
22920
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
22921
- var __publicField$h = (obj, key, value) => __defNormalProp$r(obj, typeof key !== "symbol" ? key + "" : key, value);
22922
- 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) => {
22923
22926
  return new Promise((resolve, reject) => {
22924
22927
  var fulfilled = (value) => {
22925
22928
  try {
@@ -22941,18 +22944,18 @@ var NgwLeaflet = (function () {
22941
22944
  };
22942
22945
  class NgwResource {
22943
22946
  constructor() {
22944
- __publicField$h(this, "item");
22945
- __publicField$h(this, "connector");
22946
- __publicField$h(this, "_extent");
22947
+ __publicField$i(this, "item");
22948
+ __publicField$i(this, "connector");
22949
+ __publicField$i(this, "_extent");
22947
22950
  }
22948
22951
  /** @deprecated use {@link NgwResource.getBounds} instead */
22949
22952
  getExtent() {
22950
- return __async$m(this, null, function* () {
22953
+ return __async$n(this, null, function* () {
22951
22954
  return this.getBounds();
22952
22955
  });
22953
22956
  }
22954
22957
  getBounds(options) {
22955
- return __async$m(this, null, function* () {
22958
+ return __async$n(this, null, function* () {
22956
22959
  if (this._extent) {
22957
22960
  return this._extent;
22958
22961
  }
@@ -22968,7 +22971,7 @@ var NgwLeaflet = (function () {
22968
22971
  }
22969
22972
  }
22970
22973
 
22971
- var __async$l = (__this, __arguments, generator) => {
22974
+ var __async$m = (__this, __arguments, generator) => {
22972
22975
  return new Promise((resolve, reject) => {
22973
22976
  var fulfilled = (value) => {
22974
22977
  try {
@@ -22989,7 +22992,7 @@ var NgwLeaflet = (function () {
22989
22992
  });
22990
22993
  };
22991
22994
  function resourceIdFromLayerOptions(options, connector) {
22992
- return __async$l(this, null, function* () {
22995
+ return __async$m(this, null, function* () {
22993
22996
  const resource = options.resource;
22994
22997
  const item = resource;
22995
22998
  let { keyname, resourceId } = options;
@@ -23014,24 +23017,24 @@ var NgwLeaflet = (function () {
23014
23017
  });
23015
23018
  }
23016
23019
 
23017
- var __defProp$q = Object.defineProperty;
23018
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
23019
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
23020
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
23021
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23022
- 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) => {
23023
23026
  for (var prop in b || (b = {}))
23024
- if (__hasOwnProp$o.call(b, prop))
23025
- __defNormalProp$q(a, prop, b[prop]);
23026
- if (__getOwnPropSymbols$o)
23027
- for (var prop of __getOwnPropSymbols$o(b)) {
23028
- if (__propIsEnum$o.call(b, prop))
23029
- __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]);
23030
23033
  }
23031
23034
  return a;
23032
23035
  };
23033
- var __publicField$g = (obj, key, value) => __defNormalProp$q(obj, typeof key !== "symbol" ? key + "" : key, value);
23034
- 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) => {
23035
23038
  return new Promise((resolve, reject) => {
23036
23039
  var fulfilled = (value) => {
23037
23040
  try {
@@ -23052,7 +23055,7 @@ var NgwLeaflet = (function () {
23052
23055
  });
23053
23056
  };
23054
23057
  function createOnFirstShowAdapter(_0) {
23055
- return __async$k(this, arguments, function* ({
23058
+ return __async$l(this, arguments, function* ({
23056
23059
  webMap,
23057
23060
  adapterOptions = {},
23058
23061
  onLayerAdded,
@@ -23060,10 +23063,10 @@ var NgwLeaflet = (function () {
23060
23063
  }) {
23061
23064
  class OnFirstShowAdapter {
23062
23065
  constructor() {
23063
- __publicField$g(this, "options", {});
23064
- __publicField$g(this, "layer", []);
23065
- __publicField$g(this, "_removed", false);
23066
- __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);
23067
23070
  }
23068
23071
  addLayer() {
23069
23072
  return this.layer;
@@ -23078,7 +23081,7 @@ var NgwLeaflet = (function () {
23078
23081
  return this._removed;
23079
23082
  }
23080
23083
  showLayer() {
23081
- return __async$k(this, null, function* () {
23084
+ return __async$l(this, null, function* () {
23082
23085
  this.options.visibility = true;
23083
23086
  if (this.layer.length) {
23084
23087
  for (const x of this.layer) {
@@ -23090,7 +23093,7 @@ var NgwLeaflet = (function () {
23090
23093
  });
23091
23094
  }
23092
23095
  hideLayer() {
23093
- return __async$k(this, null, function* () {
23096
+ return __async$l(this, null, function* () {
23094
23097
  this.options.visibility = false;
23095
23098
  if (this.layer) {
23096
23099
  for (const x of this.layer) {
@@ -23100,12 +23103,12 @@ var NgwLeaflet = (function () {
23100
23103
  });
23101
23104
  }
23102
23105
  loadLayer() {
23103
- return __async$k(this, null, function* () {
23106
+ return __async$l(this, null, function* () {
23104
23107
  if (!this.layer.length && !this._creatingInProgress) {
23105
23108
  this._creatingInProgress = true;
23106
23109
  const Adapter = yield createAdapter(this);
23107
23110
  if (Adapter) {
23108
- const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$o({}, adapterOptions));
23111
+ const adapter = new Adapter(webMap.mapAdapter.map, __spreadValues$n({}, adapterOptions));
23109
23112
  const realLayer = yield adapter.addLayer({
23110
23113
  order: this.options.order,
23111
23114
  headers: this.options.headers,
@@ -23134,7 +23137,7 @@ var NgwLeaflet = (function () {
23134
23137
  });
23135
23138
  }
23136
23139
 
23137
- var __async$j = (__this, __arguments, generator) => {
23140
+ var __async$k = (__this, __arguments, generator) => {
23138
23141
  return new Promise((resolve, reject) => {
23139
23142
  var fulfilled = (value) => {
23140
23143
  try {
@@ -23155,7 +23158,7 @@ var NgwLeaflet = (function () {
23155
23158
  });
23156
23159
  };
23157
23160
  function createOnFirstShowNgwAdapter(_0) {
23158
- return __async$j(this, arguments, function* ({
23161
+ return __async$k(this, arguments, function* ({
23159
23162
  webMap,
23160
23163
  connector,
23161
23164
  item,
@@ -23189,26 +23192,26 @@ var NgwLeaflet = (function () {
23189
23192
  });
23190
23193
  }
23191
23194
 
23192
- var __defProp$p = Object.defineProperty;
23193
- var __defProps$f = Object.defineProperties;
23194
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
23195
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
23196
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
23197
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
23198
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23199
- 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) => {
23200
23203
  for (var prop in b || (b = {}))
23201
- if (__hasOwnProp$n.call(b, prop))
23202
- __defNormalProp$p(a, prop, b[prop]);
23203
- if (__getOwnPropSymbols$n)
23204
- for (var prop of __getOwnPropSymbols$n(b)) {
23205
- if (__propIsEnum$n.call(b, prop))
23206
- __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]);
23207
23210
  }
23208
23211
  return a;
23209
23212
  };
23210
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
23211
- 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) => {
23212
23215
  return new Promise((resolve, reject) => {
23213
23216
  var fulfilled = (value) => {
23214
23217
  try {
@@ -23275,7 +23278,7 @@ var NgwLeaflet = (function () {
23275
23278
  );
23276
23279
  }
23277
23280
  function createFeatureFieldFilterQueries(opt) {
23278
- return __async$i(this, null, function* () {
23281
+ return __async$j(this, null, function* () {
23279
23282
  const queries = getQueries(opt);
23280
23283
  const itemsParts = yield Promise.all(queries);
23281
23284
  const ids = [];
@@ -23319,12 +23322,12 @@ var NgwLeaflet = (function () {
23319
23322
  for (const f of filters_) {
23320
23323
  if (isPropertyFilter$1(f)) {
23321
23324
  _queries.push(
23322
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$n({}, opt), {
23325
+ fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$m({}, opt), {
23323
23326
  paramList: [..._parentAllParams, ...paramList, createParam(f)]
23324
23327
  }))
23325
23328
  );
23326
23329
  } else {
23327
- getQueries(__spreadProps$f(__spreadValues$n({}, opt), { filters: f }), _queries, [..._parentAllParams]);
23330
+ getQueries(__spreadProps$g(__spreadValues$m({}, opt), { filters: f }), _queries, [..._parentAllParams]);
23328
23331
  }
23329
23332
  }
23330
23333
  } else if (logic === "all") {
@@ -23339,14 +23342,14 @@ var NgwLeaflet = (function () {
23339
23342
  }
23340
23343
  if (propertiesFilterList.length) {
23341
23344
  for (const x of propertiesFilterList) {
23342
- getQueries(__spreadProps$f(__spreadValues$n({}, opt), { filters: x }), _queries, [
23345
+ getQueries(__spreadProps$g(__spreadValues$m({}, opt), { filters: x }), _queries, [
23343
23346
  ..._parentAllParams,
23344
23347
  ...filters2
23345
23348
  ]);
23346
23349
  }
23347
23350
  } else {
23348
23351
  _queries.push(
23349
- fetchNgwLayerItemsRequest(__spreadProps$f(__spreadValues$n({}, opt), {
23352
+ fetchNgwLayerItemsRequest(__spreadProps$g(__spreadValues$m({}, opt), {
23350
23353
  paramList: [..._parentAllParams, ...paramList, ...filters2]
23351
23354
  }))
23352
23355
  );
@@ -23362,7 +23365,7 @@ var NgwLeaflet = (function () {
23362
23365
  return `POLYGON((${polygon.join(", ")}))`;
23363
23366
  }
23364
23367
  function fetchNgwLayerItemsRequest(options) {
23365
- const params = __spreadValues$n({}, FEATURE_REQUEST_PARAMS);
23368
+ const params = __spreadValues$m({}, FEATURE_REQUEST_PARAMS);
23366
23369
  const {
23367
23370
  limit,
23368
23371
  query,
@@ -23398,7 +23401,7 @@ var NgwLeaflet = (function () {
23398
23401
  if (paramList) {
23399
23402
  Object.assign(params, paramListToQuery(paramList));
23400
23403
  }
23401
- 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 });
23402
23405
  }
23403
23406
 
23404
23407
  function prepareNgwFieldsToPropertiesFilter(fields) {
@@ -23427,26 +23430,26 @@ var NgwLeaflet = (function () {
23427
23430
  return fields;
23428
23431
  }
23429
23432
 
23430
- var __defProp$o = Object.defineProperty;
23431
- var __defProps$e = Object.defineProperties;
23432
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
23433
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
23434
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
23435
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
23436
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23437
- 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) => {
23438
23441
  for (var prop in b || (b = {}))
23439
- if (__hasOwnProp$m.call(b, prop))
23440
- __defNormalProp$o(a, prop, b[prop]);
23441
- if (__getOwnPropSymbols$m)
23442
- for (var prop of __getOwnPropSymbols$m(b)) {
23443
- if (__propIsEnum$m.call(b, prop))
23444
- __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]);
23445
23448
  }
23446
23449
  return a;
23447
23450
  };
23448
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
23449
- 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) => {
23450
23453
  return new Promise((resolve, reject) => {
23451
23454
  var fulfilled = (value) => {
23452
23455
  try {
@@ -23467,17 +23470,17 @@ var NgwLeaflet = (function () {
23467
23470
  });
23468
23471
  };
23469
23472
  function fetchNgwLayerItems(options) {
23470
- return __async$h(this, null, function* () {
23473
+ return __async$i(this, null, function* () {
23471
23474
  var _a;
23472
23475
  const filters = options.filters;
23473
23476
  if (filters) {
23474
- let data = yield createFeatureFieldFilterQueries(__spreadProps$e(__spreadValues$m({}, options), {
23477
+ let data = yield createFeatureFieldFilterQueries(__spreadProps$f(__spreadValues$l({}, options), {
23475
23478
  filters
23476
23479
  }));
23477
23480
  const clientFilterValidate = (_a = options.clientFilterValidate) != null ? _a : isFilterWithAnyCase(filters);
23478
23481
  if (clientFilterValidate) {
23479
23482
  data = data.filter((y) => {
23480
- const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$e(__spreadValues$m({}, y.fields), {
23483
+ const fields = prepareNgwFieldsToPropertiesFilter(__spreadProps$f(__spreadValues$l({}, y.fields), {
23481
23484
  id: y.id
23482
23485
  }));
23483
23486
  const result = propertiesFilter(fields, filters);
@@ -23595,26 +23598,26 @@ var NgwLeaflet = (function () {
23595
23598
  }
23596
23599
  }
23597
23600
 
23598
- var __defProp$n = Object.defineProperty;
23599
- var __defProps$d = Object.defineProperties;
23600
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
23601
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
23602
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
23603
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
23604
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23605
- 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) => {
23606
23609
  for (var prop in b || (b = {}))
23607
- if (__hasOwnProp$l.call(b, prop))
23608
- __defNormalProp$n(a, prop, b[prop]);
23609
- if (__getOwnPropSymbols$l)
23610
- for (var prop of __getOwnPropSymbols$l(b)) {
23611
- if (__propIsEnum$l.call(b, prop))
23612
- __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]);
23613
23616
  }
23614
23617
  return a;
23615
23618
  };
23616
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
23617
- 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) => {
23618
23621
  return new Promise((resolve, reject) => {
23619
23622
  var fulfilled = (value) => {
23620
23623
  try {
@@ -23635,56 +23638,56 @@ var NgwLeaflet = (function () {
23635
23638
  });
23636
23639
  };
23637
23640
  function fetchNgwLayerItem(options) {
23638
- return __async$g(this, null, function* () {
23639
- const params = __spreadValues$l({}, FEATURE_REQUEST_PARAMS);
23641
+ return __async$h(this, null, function* () {
23642
+ const params = __spreadValues$k({}, FEATURE_REQUEST_PARAMS);
23640
23643
  updateItemRequestParam(params, options);
23641
23644
  const resp = yield options.connector.route("feature_layer.feature.item", {
23642
23645
  id: Number(options.resourceId),
23643
23646
  fid: options.featureId
23644
- }).get(__spreadProps$d(__spreadValues$l({}, options), { query: params }));
23645
- const toGeojson = () => __async$g(null, null, function* () {
23647
+ }).get(__spreadProps$e(__spreadValues$k({}, options), { query: params }));
23648
+ const toGeojson = () => __async$h(null, null, function* () {
23646
23649
  if (resp.geom) {
23647
23650
  return createGeoJsonFeature(resp);
23648
23651
  } else {
23649
- const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$d(__spreadValues$l({}, options), {
23652
+ const onlyGeomItem = yield fetchNgwLayerItem(__spreadProps$e(__spreadValues$k({}, options), {
23650
23653
  geom: true,
23651
23654
  fields: null,
23652
23655
  extensions: null
23653
23656
  }));
23654
23657
  const geom = onlyGeomItem.geom;
23655
- return createGeoJsonFeature(__spreadProps$d(__spreadValues$l({}, resp), { geom }));
23658
+ return createGeoJsonFeature(__spreadProps$e(__spreadValues$k({}, resp), { geom }));
23656
23659
  }
23657
23660
  });
23658
- return __spreadProps$d(__spreadValues$l({}, resp), {
23661
+ return __spreadProps$e(__spreadValues$k({}, resp), {
23659
23662
  toGeojson
23660
23663
  });
23661
23664
  });
23662
23665
  }
23663
23666
 
23664
- var __defProp$m = Object.defineProperty;
23665
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
23666
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
23667
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
23668
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23669
- 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) => {
23670
23673
  for (var prop in b || (b = {}))
23671
- if (__hasOwnProp$k.call(b, prop))
23672
- __defNormalProp$m(a, prop, b[prop]);
23673
- if (__getOwnPropSymbols$k)
23674
- for (var prop of __getOwnPropSymbols$k(b)) {
23675
- if (__propIsEnum$k.call(b, prop))
23676
- __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]);
23677
23680
  }
23678
23681
  return a;
23679
23682
  };
23680
- 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);
23681
23684
  class BookmarkItem {
23682
23685
  constructor(options) {
23683
23686
  this.options = options;
23684
- __publicField$f(this, "name");
23685
- __publicField$f(this, "resourceId");
23686
- __publicField$f(this, "item");
23687
- __publicField$f(this, "_extent");
23687
+ __publicField$g(this, "name");
23688
+ __publicField$g(this, "resourceId");
23689
+ __publicField$g(this, "item");
23690
+ __publicField$g(this, "_extent");
23688
23691
  this.resourceId = options.resourceId;
23689
23692
  const item = options.item;
23690
23693
  this.item = item;
@@ -23714,7 +23717,7 @@ var NgwLeaflet = (function () {
23714
23717
  if (this.item.geom) {
23715
23718
  return Promise.resolve(createGeoJsonFeature(this.item));
23716
23719
  } else {
23717
- return fetchNgwLayerItem(__spreadValues$k({
23720
+ return fetchNgwLayerItem(__spreadValues$j({
23718
23721
  resourceId: this.resourceId,
23719
23722
  featureId: this.item.id,
23720
23723
  connector: this.options.connector,
@@ -23732,19 +23735,19 @@ var NgwLeaflet = (function () {
23732
23735
 
23733
23736
  const WEBMAP_BASELAYER_ID_PREFIX = "webmap-baselayer";
23734
23737
 
23735
- var __defProp$l = Object.defineProperty;
23736
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23737
- 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);
23738
23741
  class BaseProperty {
23739
23742
  constructor(name, item, options) {
23740
- __publicField$e(this, "options");
23741
- __publicField$e(this, "emitter", new EventEmitter());
23742
- __publicField$e(this, "name");
23743
- __publicField$e(this, "item");
23744
- __publicField$e(this, "_blocked", false);
23745
- __publicField$e(this, "_container");
23746
- __publicField$e(this, "__value");
23747
- __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");
23748
23751
  this.item = item;
23749
23752
  this.options = Object.assign({}, options);
23750
23753
  this.name = name;
@@ -23847,26 +23850,26 @@ var NgwLeaflet = (function () {
23847
23850
  }
23848
23851
  }
23849
23852
 
23850
- var __defProp$k = Object.defineProperty;
23851
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
23852
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
23853
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
23854
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23855
- 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) => {
23856
23859
  for (var prop in b || (b = {}))
23857
- if (__hasOwnProp$j.call(b, prop))
23858
- __defNormalProp$k(a, prop, b[prop]);
23859
- if (__getOwnPropSymbols$j)
23860
- for (var prop of __getOwnPropSymbols$j(b)) {
23861
- if (__propIsEnum$j.call(b, prop))
23862
- __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]);
23863
23866
  }
23864
23867
  return a;
23865
23868
  };
23866
- var __publicField$d = (obj, key, value) => __defNormalProp$k(obj, key + "" , value);
23869
+ var __publicField$e = (obj, key, value) => __defNormalProp$l(obj, key + "" , value);
23867
23870
  const _CheckProperty = class _CheckProperty extends BaseProperty {
23868
23871
  constructor(name, item, options) {
23869
- super(name, item, __spreadValues$j(__spreadValues$j({}, _CheckProperty.options), options));
23872
+ super(name, item, __spreadValues$i(__spreadValues$i({}, _CheckProperty.options), options));
23870
23873
  this.set(this.get());
23871
23874
  }
23872
23875
  update(value, options) {
@@ -23947,13 +23950,13 @@ var NgwLeaflet = (function () {
23947
23950
  _blockChild(item, options) {
23948
23951
  const prop = item.properties && item.properties.property(this.name);
23949
23952
  if (prop && prop.block) {
23950
- prop.block(__spreadValues$j({ silent: true }, options || {}));
23953
+ prop.block(__spreadValues$i({ silent: true }, options || {}));
23951
23954
  }
23952
23955
  }
23953
23956
  _unBlockChild(item, options) {
23954
23957
  const prop = item.properties && item.properties.property(this.name);
23955
23958
  if (prop && prop.unBlock) {
23956
- prop.unBlock(__spreadValues$j({ silent: true }, options || {}));
23959
+ prop.unBlock(__spreadValues$i({ silent: true }, options || {}));
23957
23960
  }
23958
23961
  }
23959
23962
  _propagation(value, options) {
@@ -23963,7 +23966,7 @@ var NgwLeaflet = (function () {
23963
23966
  const child = children[fry];
23964
23967
  const property = child.properties && child.properties.property(this.name);
23965
23968
  if (property) {
23966
- property.set(value, __spreadValues$j(__spreadValues$j({}, options), {
23969
+ property.set(value, __spreadValues$i(__spreadValues$i({}, options), {
23967
23970
  propagation: true,
23968
23971
  bubble: false
23969
23972
  }));
@@ -23972,7 +23975,7 @@ var NgwLeaflet = (function () {
23972
23975
  }
23973
23976
  }
23974
23977
  };
23975
- __publicField$d(_CheckProperty, "options", {
23978
+ __publicField$e(_CheckProperty, "options", {
23976
23979
  hierarchy: true,
23977
23980
  bubble: false,
23978
23981
  propagation: false,
@@ -23981,31 +23984,31 @@ var NgwLeaflet = (function () {
23981
23984
  });
23982
23985
  let CheckProperty = _CheckProperty;
23983
23986
 
23984
- var __defProp$j = Object.defineProperty;
23985
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
23986
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
23987
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
23988
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
23989
- 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) => {
23990
23993
  for (var prop in b || (b = {}))
23991
- if (__hasOwnProp$i.call(b, prop))
23992
- __defNormalProp$j(a, prop, b[prop]);
23993
- if (__getOwnPropSymbols$i)
23994
- for (var prop of __getOwnPropSymbols$i(b)) {
23995
- if (__propIsEnum$i.call(b, prop))
23996
- __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]);
23997
24000
  }
23998
24001
  return a;
23999
24002
  };
24000
- 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);
24001
24004
  const BOOLEAN_TYPE = "boolean";
24002
24005
  const STRING_TYPE = "string";
24003
24006
  const _ItemProperties = class _ItemProperties {
24004
24007
  constructor(item, propertiesList) {
24005
24008
  this.item = item;
24006
- __publicField$c(this, "options", {});
24007
- __publicField$c(this, "_properties", {});
24008
- __publicField$c(this, "_propertiesList", []);
24009
+ __publicField$d(this, "options", {});
24010
+ __publicField$d(this, "_properties", {});
24011
+ __publicField$d(this, "_propertiesList", []);
24009
24012
  if (propertiesList) {
24010
24013
  propertiesList.forEach(this._setPropertyHandler.bind(this));
24011
24014
  }
@@ -24045,7 +24048,7 @@ var NgwLeaflet = (function () {
24045
24048
  _setPropertyHandler(propOpt) {
24046
24049
  const Handler = this._getHandler(propOpt);
24047
24050
  if (Handler && propOpt.name) {
24048
- const options = __spreadValues$i({}, propOpt);
24051
+ const options = __spreadValues$h({}, propOpt);
24049
24052
  this._properties[propOpt.name] = new Handler(
24050
24053
  propOpt.name,
24051
24054
  this.item,
@@ -24068,7 +24071,7 @@ var NgwLeaflet = (function () {
24068
24071
  return Handler;
24069
24072
  }
24070
24073
  };
24071
- __publicField$c(_ItemProperties, "handlers", {
24074
+ __publicField$d(_ItemProperties, "handlers", {
24072
24075
  CheckProperty
24073
24076
  });
24074
24077
  let ItemProperties = _ItemProperties;
@@ -24175,14 +24178,14 @@ var NgwLeaflet = (function () {
24175
24178
  return true;
24176
24179
  }
24177
24180
 
24178
- var __defProp$i = Object.defineProperty;
24179
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24180
- 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);
24181
24184
  class TreeHelper {
24182
24185
  constructor(item) {
24183
- __publicField$b(this, "item");
24184
- __publicField$b(this, "_children", []);
24185
- __publicField$b(this, "_parent");
24186
+ __publicField$c(this, "item");
24187
+ __publicField$c(this, "_children", []);
24188
+ __publicField$c(this, "_parent");
24186
24189
  this.item = item;
24187
24190
  }
24188
24191
  setParent(parent) {
@@ -24245,32 +24248,32 @@ var NgwLeaflet = (function () {
24245
24248
  }
24246
24249
  }
24247
24250
 
24248
- var __defProp$h = Object.defineProperty;
24249
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
24250
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
24251
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
24252
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24253
- 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) => {
24254
24257
  for (var prop in b || (b = {}))
24255
- if (__hasOwnProp$h.call(b, prop))
24256
- __defNormalProp$h(a, prop, b[prop]);
24257
- if (__getOwnPropSymbols$h)
24258
- for (var prop of __getOwnPropSymbols$h(b)) {
24259
- if (__propIsEnum$h.call(b, prop))
24260
- __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]);
24261
24264
  }
24262
24265
  return a;
24263
24266
  };
24264
- 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);
24265
24268
  let ID = 0;
24266
24269
  class Item {
24267
24270
  constructor(options) {
24268
- __publicField$a(this, "options", {});
24269
- __publicField$a(this, "properties");
24270
- __publicField$a(this, "tree");
24271
- __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);
24272
24275
  ID += 1;
24273
- this.options = __spreadValues$h({}, options);
24276
+ this.options = __spreadValues$g({}, options);
24274
24277
  this.tree = new TreeHelper(this);
24275
24278
  }
24276
24279
  initProperties() {
@@ -24326,27 +24329,27 @@ var NgwLeaflet = (function () {
24326
24329
  return { [`symbols[${resourceId}]`]: intervals.join(",") || void 0 };
24327
24330
  }
24328
24331
 
24329
- var __defProp$g = Object.defineProperty;
24330
- var __defProps$c = Object.defineProperties;
24331
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
24332
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
24333
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
24334
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
24335
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24336
- 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) => {
24337
24340
  for (var prop in b || (b = {}))
24338
- if (__hasOwnProp$g.call(b, prop))
24339
- __defNormalProp$g(a, prop, b[prop]);
24340
- if (__getOwnPropSymbols$g)
24341
- for (var prop of __getOwnPropSymbols$g(b)) {
24342
- if (__propIsEnum$g.call(b, prop))
24343
- __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]);
24344
24347
  }
24345
24348
  return a;
24346
24349
  };
24347
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
24348
- var __publicField$9 = (obj, key, value) => __defNormalProp$g(obj, typeof key !== "symbol" ? key + "" : key, value);
24349
- 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) => {
24350
24353
  return new Promise((resolve, reject) => {
24351
24354
  var fulfilled = (value) => {
24352
24355
  try {
@@ -24377,17 +24380,17 @@ var NgwLeaflet = (function () {
24377
24380
  layer,
24378
24381
  onSymbolRenderChange
24379
24382
  }) {
24380
- __publicField$9(this, "layerId");
24381
- __publicField$9(this, "layer");
24382
- __publicField$9(this, "resourceId");
24383
- __publicField$9(this, "legendSymbols", "expand");
24384
- __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");
24385
24388
  // private blocked: boolean = false;
24386
- __publicField$9(this, "layerVisibility", true);
24389
+ __publicField$a(this, "layerVisibility", true);
24387
24390
  // private symbolRenderIndexes?: number[];
24388
- __publicField$9(this, "onSymbolRenderChange");
24389
- __publicField$9(this, "webMap");
24390
- __publicField$9(this, "connector");
24391
+ __publicField$a(this, "onSymbolRenderChange");
24392
+ __publicField$a(this, "webMap");
24393
+ __publicField$a(this, "connector");
24391
24394
  if (legendSymbols) {
24392
24395
  this.legendSymbols = legendSymbols;
24393
24396
  }
@@ -24406,18 +24409,18 @@ var NgwLeaflet = (function () {
24406
24409
  this.layer = layer;
24407
24410
  }
24408
24411
  create() {
24409
- return __async$f(this, arguments, function* (options = {}) {
24412
+ return __async$g(this, arguments, function* (options = {}) {
24410
24413
  if (this.connector) {
24411
24414
  const ngwLegend = yield this.connector.route("render.legend_symbols", {
24412
24415
  id: this.resourceId
24413
- }).get(__spreadValues$g({}, options));
24416
+ }).get(__spreadValues$f({}, options));
24414
24417
  this.legend = ngwLegend;
24415
24418
  return this.createLegend(ngwLegend);
24416
24419
  }
24417
24420
  });
24418
24421
  }
24419
24422
  createLegend(items) {
24420
- return items.map((params) => __spreadProps$c(__spreadValues$g({}, params), {
24423
+ return items.map((params) => __spreadProps$d(__spreadValues$f({}, params), {
24421
24424
  /** @deprecated use display_name instead */
24422
24425
  name: params.display_name,
24423
24426
  /** @deprecated use icon instead */
@@ -24447,7 +24450,7 @@ var NgwLeaflet = (function () {
24447
24450
  }
24448
24451
  if (this.layer.updateLayer) {
24449
24452
  this.layer.updateLayer({
24450
- params: __spreadValues$g({}, createLayerSymbolParam(this.resourceId, intervals))
24453
+ params: __spreadValues$f({}, createLayerSymbolParam(this.resourceId, intervals))
24451
24454
  });
24452
24455
  }
24453
24456
  if (intervals.length) {
@@ -24484,27 +24487,27 @@ var NgwLeaflet = (function () {
24484
24487
  }
24485
24488
  }
24486
24489
 
24487
- var __defProp$f = Object.defineProperty;
24488
- var __defProps$b = Object.defineProperties;
24489
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
24490
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
24491
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
24492
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
24493
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24494
- 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) => {
24495
24498
  for (var prop in b || (b = {}))
24496
- if (__hasOwnProp$f.call(b, prop))
24497
- __defNormalProp$f(a, prop, b[prop]);
24498
- if (__getOwnPropSymbols$f)
24499
- for (var prop of __getOwnPropSymbols$f(b)) {
24500
- if (__propIsEnum$f.call(b, prop))
24501
- __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]);
24502
24505
  }
24503
24506
  return a;
24504
24507
  };
24505
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
24506
- var __publicField$8 = (obj, key, value) => __defNormalProp$f(obj, typeof key !== "symbol" ? key + "" : key, value);
24507
- 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) => {
24508
24511
  return new Promise((resolve, reject) => {
24509
24512
  var fulfilled = (value) => {
24510
24513
  try {
@@ -24533,14 +24536,14 @@ var NgwLeaflet = (function () {
24533
24536
  parent,
24534
24537
  noInit
24535
24538
  }) {
24536
- super(__spreadValues$f(__spreadValues$f({}, _NgwWebmapItem.options), options));
24537
- __publicField$8(this, "item");
24538
- __publicField$8(this, "webMap");
24539
- __publicField$8(this, "connector");
24540
- __publicField$8(this, "layer");
24541
- __publicField$8(this, "legend");
24542
- __publicField$8(this, "emitter", new EventEmitter());
24543
- __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);
24544
24547
  this.webMap = webMap;
24545
24548
  if (connector) {
24546
24549
  this.connector = connector;
@@ -24563,7 +24566,7 @@ var NgwLeaflet = (function () {
24563
24566
  }
24564
24567
  }
24565
24568
  static create(webMap, item, options, connector, parent) {
24566
- return __async$e(this, null, function* () {
24569
+ return __async$f(this, null, function* () {
24567
24570
  const ngwWebmapItem = new _NgwWebmapItem({
24568
24571
  webMap,
24569
24572
  item,
@@ -24592,7 +24595,7 @@ var NgwLeaflet = (function () {
24592
24595
  return this.layer;
24593
24596
  }
24594
24597
  getLegend(options) {
24595
- return __async$e(this, null, function* () {
24598
+ return __async$f(this, null, function* () {
24596
24599
  var _a, _b;
24597
24600
  const id = (_a = this.layer) == null ? void 0 : _a.id;
24598
24601
  if (id !== void 0) {
@@ -24629,7 +24632,7 @@ var NgwLeaflet = (function () {
24629
24632
  getItemOptions(item) {
24630
24633
  const transparency = item.item_type === "layer" && item.layer_transparency;
24631
24634
  const opacity = typeof transparency === "number" ? (100 - transparency) / 100 : void 0;
24632
- const options = __spreadProps$b(__spreadValues$f({
24635
+ const options = __spreadProps$c(__spreadValues$e({
24633
24636
  visibility: false,
24634
24637
  name: item.display_name
24635
24638
  }, this.options), {
@@ -24649,7 +24652,7 @@ var NgwLeaflet = (function () {
24649
24652
  }
24650
24653
  if (item.item_type === "layer") {
24651
24654
  const { maxZoom, minZoom } = this._getZoomRange(item);
24652
- Object.assign(options, __spreadProps$b(__spreadValues$f({
24655
+ Object.assign(options, __spreadProps$c(__spreadValues$e({
24653
24656
  updateWmsParams: item.updateWmsParams
24654
24657
  }, options), {
24655
24658
  url: item.url,
@@ -24752,8 +24755,8 @@ var NgwLeaflet = (function () {
24752
24755
  return totalValue;
24753
24756
  }
24754
24757
  };
24755
- __publicField$8(_NgwWebmapItem, "GetAdapterFromLayerType", {});
24756
- __publicField$8(_NgwWebmapItem, "options", {
24758
+ __publicField$9(_NgwWebmapItem, "GetAdapterFromLayerType", {});
24759
+ __publicField$9(_NgwWebmapItem, "options", {
24757
24760
  properties: [
24758
24761
  {
24759
24762
  type: "boolean",
@@ -24793,27 +24796,27 @@ var NgwLeaflet = (function () {
24793
24796
  });
24794
24797
  let NgwWebmapItem = _NgwWebmapItem;
24795
24798
 
24796
- var __defProp$e = Object.defineProperty;
24797
- var __defProps$a = Object.defineProperties;
24798
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
24799
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
24800
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
24801
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
24802
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
24803
- 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) => {
24804
24807
  for (var prop in b || (b = {}))
24805
- if (__hasOwnProp$e.call(b, prop))
24806
- __defNormalProp$e(a, prop, b[prop]);
24807
- if (__getOwnPropSymbols$e)
24808
- for (var prop of __getOwnPropSymbols$e(b)) {
24809
- if (__propIsEnum$e.call(b, prop))
24810
- __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]);
24811
24814
  }
24812
24815
  return a;
24813
24816
  };
24814
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
24815
- var __publicField$7 = (obj, key, value) => __defNormalProp$e(obj, typeof key !== "symbol" ? key + "" : key, value);
24816
- 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) => {
24817
24820
  return new Promise((resolve, reject) => {
24818
24821
  var fulfilled = (value) => {
24819
24822
  try {
@@ -24837,20 +24840,20 @@ var NgwLeaflet = (function () {
24837
24840
  constructor(map, options) {
24838
24841
  this.map = map;
24839
24842
  this.options = options;
24840
- __publicField$7(this, "layer");
24841
- __publicField$7(this, "NgwWebmapItem", NgwWebmapItem);
24843
+ __publicField$8(this, "layer");
24844
+ __publicField$8(this, "NgwWebmapItem", NgwWebmapItem);
24842
24845
  /**
24843
24846
  * Radius for searching objects in pixels
24844
24847
  */
24845
- __publicField$7(this, "pixelRadius", 10);
24848
+ __publicField$8(this, "pixelRadius", 10);
24846
24849
  // webmapSettings.identify_radius,
24847
- __publicField$7(this, "resourceId");
24848
- __publicField$7(this, "webmapClassName", "webmap");
24849
- __publicField$7(this, "emitter", new EventEmitter());
24850
- __publicField$7(this, "_extent");
24851
- __publicField$7(this, "webmapResource");
24852
- __publicField$7(this, "_webmapBaselayersIds", []);
24853
- __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");
24854
24857
  const r = options.resourceId;
24855
24858
  if (Array.isArray(r)) {
24856
24859
  this.resourceId = r[0];
@@ -24863,9 +24866,9 @@ var NgwLeaflet = (function () {
24863
24866
  }
24864
24867
  }
24865
24868
  addLayer(options) {
24866
- return __async$d(this, null, function* () {
24869
+ return __async$e(this, null, function* () {
24867
24870
  var _a;
24868
- this.options = __spreadValues$e(__spreadValues$e({}, this.options), options);
24871
+ this.options = __spreadValues$d(__spreadValues$d({}, this.options), options);
24869
24872
  this.layer = yield this._getWebMapLayerItem();
24870
24873
  const extentConstrained = (_a = this.webmapResource) == null ? void 0 : _a.constraining_extent;
24871
24874
  if (this.options.useExtentConstrained && this._extent && extentConstrained) {
@@ -24895,21 +24898,21 @@ var NgwLeaflet = (function () {
24895
24898
  delete this.webmapResource;
24896
24899
  }
24897
24900
  showLayer() {
24898
- return __async$d(this, null, function* () {
24901
+ return __async$e(this, null, function* () {
24899
24902
  if (this.layer && this.layer.properties) {
24900
24903
  return this.layer.properties.property("visibility").set(true);
24901
24904
  }
24902
24905
  });
24903
24906
  }
24904
24907
  hideLayer() {
24905
- return __async$d(this, null, function* () {
24908
+ return __async$e(this, null, function* () {
24906
24909
  if (this.layer && this.layer.properties) {
24907
24910
  return this.layer.properties.property("visibility").set(false);
24908
24911
  }
24909
24912
  });
24910
24913
  }
24911
24914
  setOpacity(val) {
24912
- return __async$d(this, null, function* () {
24915
+ return __async$e(this, null, function* () {
24913
24916
  if (this.layer && this.layer.properties) {
24914
24917
  return this.layer.properties.property("opacity").set(val);
24915
24918
  }
@@ -24944,7 +24947,7 @@ var NgwLeaflet = (function () {
24944
24947
  (x) => x.label_field
24945
24948
  );
24946
24949
  const keyname = labelField && labelField.keyname;
24947
- return fetchNgwLayerItems(__spreadValues$e({
24950
+ return fetchNgwLayerItems(__spreadValues$d({
24948
24951
  connector,
24949
24952
  resourceId: bookmarkResId,
24950
24953
  geom: false,
@@ -24969,7 +24972,7 @@ var NgwLeaflet = (function () {
24969
24972
  );
24970
24973
  }
24971
24974
  getLegend(options) {
24972
- return __async$d(this, null, function* () {
24975
+ return __async$e(this, null, function* () {
24973
24976
  const legends = [];
24974
24977
  let deps = this.getDependLayers();
24975
24978
  deps = deps.sort((a, b) => b.id - a.id);
@@ -24981,7 +24984,7 @@ var NgwLeaflet = (function () {
24981
24984
  });
24982
24985
  }
24983
24986
  getIdentificationIds(options) {
24984
- return __async$d(this, null, function* () {
24987
+ return __async$e(this, null, function* () {
24985
24988
  const visibleLayers = [];
24986
24989
  let deps = this.getDependLayers();
24987
24990
  deps = deps.sort((a, b) => b.id - a.id);
@@ -25000,7 +25003,7 @@ var NgwLeaflet = (function () {
25000
25003
  });
25001
25004
  }
25002
25005
  _getWebMapLayerItem() {
25003
- return __async$d(this, null, function* () {
25006
+ return __async$e(this, null, function* () {
25004
25007
  if (!this.resourceId) {
25005
25008
  return void 0;
25006
25009
  }
@@ -25013,7 +25016,7 @@ var NgwLeaflet = (function () {
25013
25016
  const connector = this.options.connector;
25014
25017
  const headers = (connector == null ? void 0 : connector.options.auth) ? connector.getAuthorizationHeaders() : void 0;
25015
25018
  const withCredentials = connector.withCredentials;
25016
- const options = __spreadProps$a(__spreadValues$e({}, this.options), {
25019
+ const options = __spreadProps$b(__spreadValues$d({}, this.options), {
25017
25020
  withCredentials,
25018
25021
  headers,
25019
25022
  drawOrderEnabled: (_a = webmap.draw_order_enabled) != null ? _a : false
@@ -25031,7 +25034,7 @@ var NgwLeaflet = (function () {
25031
25034
  });
25032
25035
  }
25033
25036
  getWebMapConfig(id) {
25034
- return __async$d(this, null, function* () {
25037
+ return __async$e(this, null, function* () {
25035
25038
  var _a;
25036
25039
  const data = yield this.options.connector.getResource(id);
25037
25040
  if (data) {
@@ -25119,7 +25122,7 @@ var NgwLeaflet = (function () {
25119
25122
  webMap,
25120
25123
  baseUrl: this.options.connector.options.baseUrl || ""
25121
25124
  });
25122
- item = __spreadValues$e(__spreadValues$e({}, layerItem), layerAdapterOptions);
25125
+ item = __spreadValues$d(__spreadValues$d({}, layerItem), layerAdapterOptions);
25123
25126
  }
25124
25127
  }
25125
25128
  if (typeof ((_a = this.options.nativeOptions) == null ? void 0 : _a.beforeItemCreated) === "function") {
@@ -25129,40 +25132,40 @@ var NgwLeaflet = (function () {
25129
25132
  }
25130
25133
  }
25131
25134
 
25132
- var __defProp$d = Object.defineProperty;
25133
- var __defProps$9 = Object.defineProperties;
25134
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
25135
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
25136
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
25137
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
25138
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25139
- 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) => {
25140
25143
  for (var prop in b || (b = {}))
25141
- if (__hasOwnProp$d.call(b, prop))
25142
- __defNormalProp$d(a, prop, b[prop]);
25143
- if (__getOwnPropSymbols$d)
25144
- for (var prop of __getOwnPropSymbols$d(b)) {
25145
- if (__propIsEnum$d.call(b, prop))
25146
- __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]);
25147
25150
  }
25148
25151
  return a;
25149
25152
  };
25150
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
25153
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
25151
25154
  var __objRest$2 = (source, exclude) => {
25152
25155
  var target = {};
25153
25156
  for (var prop in source)
25154
- if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0)
25157
+ if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
25155
25158
  target[prop] = source[prop];
25156
- if (source != null && __getOwnPropSymbols$d)
25157
- for (var prop of __getOwnPropSymbols$d(source)) {
25158
- 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))
25159
25162
  target[prop] = source[prop];
25160
25163
  }
25161
25164
  return target;
25162
25165
  };
25163
25166
  function updateImageParams(params, resourceId) {
25164
25167
  const _a = params, { bbox, width, height, nd } = _a, rest = __objRest$2(_a, ["bbox", "width", "height", "nd"]);
25165
- return __spreadProps$9(__spreadValues$d({}, rest), {
25168
+ return __spreadProps$a(__spreadValues$c({}, rest), {
25166
25169
  resource: Array.isArray(resourceId) ? resourceId.join(",") : resourceId,
25167
25170
  extent: bbox,
25168
25171
  size: width + "," + height,
@@ -25197,7 +25200,7 @@ var NgwLeaflet = (function () {
25197
25200
  function extendNgwWebmapLayerAdapter(opt) {
25198
25201
  class A extends NgwWebmapLayerAdapter {
25199
25202
  constructor(map, options) {
25200
- options = __spreadValues$d(__spreadValues$d({}, opt), options);
25203
+ options = __spreadValues$c(__spreadValues$c({}, opt), options);
25201
25204
  super(map, options);
25202
25205
  }
25203
25206
  }
@@ -25228,78 +25231,174 @@ var NgwLeaflet = (function () {
25228
25231
  return zoom;
25229
25232
  }
25230
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
+ }
25231
25255
  function getSubdomainsOriginUrl(originUrl) {
25232
- const submodules = [];
25233
- originUrl = originUrl.replace(/{switch:(.*?)}/, (m, group) => {
25256
+ const subdomains = [];
25257
+ originUrl = originUrl.replace(/{switch:(.*?)}/, (match, group) => {
25234
25258
  if (typeof group === "string") {
25235
- group.split(",").forEach((s) => submodules.push(s));
25259
+ group.split(",").forEach((subdomain) => subdomains.push(subdomain));
25236
25260
  }
25237
25261
  return "{s}";
25238
25262
  });
25239
- 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
+ };
25240
25306
  }
25241
25307
 
25242
- 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) => {
25243
25312
  return new Promise((resolve, reject) => {
25244
- const xmlHttp = new XMLHttpRequest();
25245
- xmlHttp.onreadystatechange = () => {
25246
- if (xmlHttp.readyState === 4 && xmlHttp.status === 200) {
25247
- if (xmlHttp.responseText) {
25248
- try {
25249
- resolve(JSON.parse(xmlHttp.responseText));
25250
- } catch (er) {
25251
- reject(er);
25252
- }
25253
- }
25313
+ var fulfilled = (value) => {
25314
+ try {
25315
+ step(generator.next(value));
25316
+ } catch (e) {
25317
+ reject(e);
25254
25318
  }
25255
25319
  };
25256
- xmlHttp.open("GET", fixUrlStr(url), true);
25257
- 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());
25258
25329
  });
25259
- }
25260
-
25261
- const alias = {
25262
- tms: "TILE"
25263
25330
  };
25264
- function updateQmsOptions(qms) {
25265
- const protocol = (location.protocol === "https:" ? "https" : "http") + "://";
25266
- let serviceUrl = qms.url.replace(/^(https?|ftp):\/\//, protocol);
25267
- if (!qms.y_origin_top) {
25268
- 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();
25269
25336
  }
25270
- return {
25271
- url: serviceUrl,
25272
- name: qms.name,
25273
- attribution: qms.copyright_text,
25274
- maxZoom: qms.z_max,
25275
- minZoom: qms.z_min
25276
- };
25277
- }
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;
25278
25374
 
25279
25375
  var __defProp$c = Object.defineProperty;
25280
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
25281
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
25282
- 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;
25283
25381
  var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25284
- var __spreadValues$c = (a, b) => {
25382
+ var __spreadValues$b = (a, b) => {
25285
25383
  for (var prop in b || (b = {}))
25286
- if (__hasOwnProp$c.call(b, prop))
25384
+ if (__hasOwnProp$b.call(b, prop))
25287
25385
  __defNormalProp$c(a, prop, b[prop]);
25288
- if (__getOwnPropSymbols$c)
25289
- for (var prop of __getOwnPropSymbols$c(b)) {
25290
- 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))
25291
25389
  __defNormalProp$c(a, prop, b[prop]);
25292
25390
  }
25293
25391
  return a;
25294
25392
  };
25393
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
25295
25394
  var __objRest$1 = (source, exclude) => {
25296
25395
  var target = {};
25297
25396
  for (var prop in source)
25298
- if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
25397
+ if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0)
25299
25398
  target[prop] = source[prop];
25300
- if (source != null && __getOwnPropSymbols$c)
25301
- for (var prop of __getOwnPropSymbols$c(source)) {
25302
- 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))
25303
25402
  target[prop] = source[prop];
25304
25403
  }
25305
25404
  return target;
@@ -25325,31 +25424,48 @@ var NgwLeaflet = (function () {
25325
25424
  step((generator = generator.apply(__this, __arguments)).next());
25326
25425
  });
25327
25426
  };
25328
- const URL$1 = "https://qms.nextgis.com";
25329
- 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 = {}) {
25330
25453
  let webMap;
25331
25454
  if ("webMap" in webMapOrOptions) {
25332
- 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"]);
25333
25456
  webMap = webMap_;
25334
- if (url_) {
25335
- url = url_;
25336
- }
25337
- if (adapterOptions) {
25338
- createOpt = adapterOptions;
25339
- }
25457
+ createOpt = adapterOptions;
25340
25458
  } else {
25341
25459
  webMap = webMapOrOptions;
25342
25460
  }
25343
- if (!url) {
25344
- url = URL$1;
25345
- }
25461
+ const client = new QmsClient();
25346
25462
  class QmsAdapter {
25347
25463
  constructor(map, options) {
25348
25464
  __publicField$6(this, "qms");
25349
25465
  __publicField$6(this, "options");
25350
25466
  __publicField$6(this, "map");
25351
25467
  this.map = map;
25352
- const opt = __spreadValues$c(__spreadValues$c({}, createOpt), options);
25468
+ const opt = __spreadValues$b(__spreadValues$b({}, createOpt), options);
25353
25469
  this.options = opt;
25354
25470
  this.options.baselayer = true;
25355
25471
  if (opt.qms) {
@@ -25358,42 +25474,38 @@ var NgwLeaflet = (function () {
25358
25474
  }
25359
25475
  addLayer(options) {
25360
25476
  return __async$c(this, null, function* () {
25361
- if (!this.qms && options.qmsId) {
25362
- try {
25363
- this.qms = yield loadJson(
25364
- url + "/api/v1/geoservices/" + options.qmsId
25365
- );
25366
- } catch (er) {
25367
- console.error(er);
25368
- }
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;
25369
25482
  }
25370
- const qms = this.qms;
25371
- if (qms) {
25372
- 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];
25373
25487
  const WebMapAdapter = webMap.mapAdapter.layerAdapters[type];
25374
25488
  if (WebMapAdapter) {
25375
25489
  mixinProperties(QmsAdapter, WebMapAdapter, [
25376
25490
  "showLayer",
25377
25491
  "hideLayer"
25378
25492
  ]);
25379
- if (type === "TILE") {
25380
- options = __spreadValues$c(__spreadValues$c({
25381
- order: 0,
25382
- maxZoom: webMap.options.maxZoom,
25383
- minZoom: webMap.options.minZoom
25384
- }, this.options), updateQmsOptions(qms));
25385
- if (qms.origin_url) {
25386
- const [url2, subdomains] = getSubdomainsOriginUrl(qms.origin_url);
25387
- if (subdomains.length) {
25388
- options.subdomains = subdomains;
25389
- options.url = url2;
25390
- }
25391
- }
25392
- this.options = options;
25393
- const adapter = new WebMapAdapter(this.map, options);
25394
- return adapter.addLayer(options);
25395
- }
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);
25396
25503
  }
25504
+ } catch (er) {
25505
+ if (signal == null ? void 0 : signal.aborted) {
25506
+ throw er;
25507
+ }
25508
+ console.error(er);
25397
25509
  }
25398
25510
  });
25399
25511
  }
@@ -25402,31 +25514,9 @@ var NgwLeaflet = (function () {
25402
25514
  }
25403
25515
 
25404
25516
  var __defProp$b = Object.defineProperty;
25405
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
25406
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
25407
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
25408
25517
  var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
25409
- var __spreadValues$b = (a, b) => {
25410
- for (var prop in b || (b = {}))
25411
- if (__hasOwnProp$b.call(b, prop))
25412
- __defNormalProp$b(a, prop, b[prop]);
25413
- if (__getOwnPropSymbols$b)
25414
- for (var prop of __getOwnPropSymbols$b(b)) {
25415
- if (__propIsEnum$b.call(b, prop))
25416
- __defNormalProp$b(a, prop, b[prop]);
25417
- }
25418
- return a;
25419
- };
25420
- 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);
25421
25519
  class QmsKit {
25422
- constructor(options) {
25423
- __publicField$5(this, "options", {
25424
- url: "https://qms.nextgis.com"
25425
- });
25426
- __publicField$5(this, "url");
25427
- this.options = __spreadValues$b(__spreadValues$b({}, this.options), options);
25428
- this.url = this.options.url;
25429
- }
25430
25520
  getLayerAdapters() {
25431
25521
  return Promise.resolve([
25432
25522
  {
@@ -25436,7 +25526,7 @@ var NgwLeaflet = (function () {
25436
25526
  ]);
25437
25527
  }
25438
25528
  _createAdapter(webMap) {
25439
- return createQmsAdapter({ webMap, url: this.url });
25529
+ return createQmsAdapter({ webMap });
25440
25530
  }
25441
25531
  }
25442
25532
  __publicField$5(QmsKit, "utils", {
@@ -25496,7 +25586,7 @@ var NgwLeaflet = (function () {
25496
25586
  if (qms) {
25497
25587
  const qms_ = JSON.parse(qms);
25498
25588
  const adapter = Promise.resolve(
25499
- QmsKit.utils.createQmsAdapter(webMap, void 0, {
25589
+ QmsKit.utils.createQmsAdapter(webMap, {
25500
25590
  qms: qms_,
25501
25591
  baselayer: true
25502
25592
  })