@nextgis/leaflet-map-adapter 2.2.3 → 3.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/leaflet-map-adapter; version: 2.2.3; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.0; author: NextGIS */
2
2
  var LeafletMapAdapter = (function () {
3
3
  'use strict';
4
4
 
@@ -14761,10 +14761,7 @@ var LeafletMapAdapter = (function () {
14761
14761
 
14762
14762
  var __defProp$c = Object.defineProperty;
14763
14763
  var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
14764
- var __publicField$8 = (obj, key, value) => {
14765
- __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
14766
- return value;
14767
- };
14764
+ var __publicField$8 = (obj, key, value) => __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
14768
14765
  class BaseAdapter {
14769
14766
  constructor(map, options) {
14770
14767
  this.map = map;
@@ -14846,10 +14843,7 @@ var LeafletMapAdapter = (function () {
14846
14843
  }
14847
14844
  return a;
14848
14845
  };
14849
- var __publicField$7 = (obj, key, value) => {
14850
- __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
14851
- return value;
14852
- };
14846
+ var __publicField$7 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
14853
14847
  class GeoJsonEvents {
14854
14848
  constructor(layer) {
14855
14849
  __publicField$7(this, "layer");
@@ -14957,10 +14951,7 @@ var LeafletMapAdapter = (function () {
14957
14951
  }
14958
14952
  return target;
14959
14953
  };
14960
- var __publicField$6 = (obj, key, value) => {
14961
- __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
14962
- return value;
14963
- };
14954
+ var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
14964
14955
  class GeoJsonPaint {
14965
14956
  constructor(layer) {
14966
14957
  __publicField$6(this, "layer");
@@ -15109,10 +15100,7 @@ var LeafletMapAdapter = (function () {
15109
15100
  return a;
15110
15101
  };
15111
15102
  var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
15112
- var __publicField$5 = (obj, key, value) => {
15113
- __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
15114
- return value;
15115
- };
15103
+ var __publicField$5 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
15116
15104
  var __async = (__this, __arguments, generator) => {
15117
15105
  return new Promise((resolve, reject) => {
15118
15106
  var fulfilled = (value) => {
@@ -15699,10 +15687,7 @@ var LeafletMapAdapter = (function () {
15699
15687
 
15700
15688
  var __defProp$7 = Object.defineProperty;
15701
15689
  var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15702
- var __publicField$4 = (obj, key, value) => {
15703
- __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
15704
- return value;
15705
- };
15690
+ var __publicField$4 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
15706
15691
  class Queue {
15707
15692
  /**
15708
15693
  * @param {PromiseQueueOptions} options - Configuration options for the queue.
@@ -15788,14 +15773,10 @@ var LeafletMapAdapter = (function () {
15788
15773
  }
15789
15774
 
15790
15775
  const imageQueue = new Queue({ concurrency: 6, delay: 200 });
15791
- var imageQueue$1 = imageQueue;
15792
15776
 
15793
15777
  var __defProp$6 = Object.defineProperty;
15794
15778
  var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15795
- var __publicField$3 = (obj, key, value) => {
15796
- __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
15797
- return value;
15798
- };
15779
+ var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
15799
15780
  class ImageOverlay extends leafletSrcExports.ImageOverlay {
15800
15781
  constructor(imageUrl, bounds, options) {
15801
15782
  super(imageUrl, bounds, options);
@@ -15813,7 +15794,7 @@ var LeafletMapAdapter = (function () {
15813
15794
  const img = this._image;
15814
15795
  const src = img.src;
15815
15796
  img.src = "";
15816
- imageQueue$1.add(() => {
15797
+ imageQueue.add(() => {
15817
15798
  const [promise, abortFunc] = callAjax(src, headers);
15818
15799
  promise.then((imgUrl) => {
15819
15800
  img.src = imgUrl;
@@ -15826,10 +15807,7 @@ var LeafletMapAdapter = (function () {
15826
15807
 
15827
15808
  var __defProp$5 = Object.defineProperty;
15828
15809
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
15829
- var __publicField$2 = (obj, key, value) => {
15830
- __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
15831
- return value;
15832
- };
15810
+ var __publicField$2 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
15833
15811
  class ImageLayer extends leafletSrcExports.Layer {
15834
15812
  constructor(url, options) {
15835
15813
  super(options);
@@ -16033,10 +16011,7 @@ var LeafletMapAdapter = (function () {
16033
16011
  }
16034
16012
  return a;
16035
16013
  };
16036
- var __publicField$1 = (obj, key, value) => {
16037
- __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
16038
- return value;
16039
- };
16014
+ var __publicField$1 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
16040
16015
  class ImageAdapter extends BaseAdapter {
16041
16016
  constructor() {
16042
16017
  super(...arguments);
@@ -16063,7 +16038,7 @@ var LeafletMapAdapter = (function () {
16063
16038
  }
16064
16039
  }
16065
16040
  }
16066
- __publicField$1(ImageAdapter, "queue", imageQueue$1);
16041
+ __publicField$1(ImageAdapter, "queue", imageQueue);
16067
16042
 
16068
16043
  function makeRemote(Base) {
16069
16044
  return class RemoteTileLayer extends Base {
@@ -16314,10 +16289,7 @@ var LeafletMapAdapter = (function () {
16314
16289
  }
16315
16290
  return a;
16316
16291
  };
16317
- var __publicField = (obj, key, value) => {
16318
- __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
16319
- return value;
16320
- };
16292
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
16321
16293
  const _LeafletMapAdapter = class _LeafletMapAdapter {
16322
16294
  constructor() {
16323
16295
  __publicField(this, "options", { target: "map" });
@@ -16395,8 +16367,7 @@ var LeafletMapAdapter = (function () {
16395
16367
  }
16396
16368
  setView(lngLatOrOpt, zoom) {
16397
16369
  const map = this.map;
16398
- if (!map)
16399
- return;
16370
+ if (!map) return;
16400
16371
  if (Array.isArray(lngLatOrOpt)) {
16401
16372
  const lngLat = lngLatOrOpt;
16402
16373
  const [lng, lat] = lngLat;
@@ -16464,8 +16435,7 @@ var LeafletMapAdapter = (function () {
16464
16435
  return (_a = this.map && this.map.getZoom()) != null ? _a : void 0;
16465
16436
  }
16466
16437
  getBounds() {
16467
- if (!this.map)
16468
- return void 0;
16438
+ if (!this.map) return void 0;
16469
16439
  const b = this.map.getBounds();
16470
16440
  const sw = b.getSouthWest();
16471
16441
  const ne = b.getNorthEast();