@nextgis/leaflet-map-adapter 2.2.3 → 2.3.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.
- package/lib/leaflet-map-adapter.esm-browser.js +14 -44
- package/lib/leaflet-map-adapter.esm-browser.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-browser.prod.js +1 -1
- package/lib/leaflet-map-adapter.esm-browser.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.js +13 -40
- package/lib/leaflet-map-adapter.esm-bundler.js.map +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js +1 -1
- package/lib/leaflet-map-adapter.esm-bundler.prod.js.map +1 -1
- package/lib/leaflet-map-adapter.global.js +14 -44
- package/lib/leaflet-map-adapter.global.js.map +1 -1
- package/lib/leaflet-map-adapter.global.prod.js +1 -1
- package/lib/leaflet-map-adapter.global.prod.js.map +1 -1
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/leaflet-map-adapter; version: 2.
|
|
1
|
+
/** Bundle of @nextgis/leaflet-map-adapter; version: 2.3.0; author: NextGIS */
|
|
2
2
|
var domain;
|
|
3
3
|
|
|
4
4
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -14758,10 +14758,7 @@ function createFeaturePositionOptions(features) {
|
|
|
14758
14758
|
|
|
14759
14759
|
var __defProp$c = Object.defineProperty;
|
|
14760
14760
|
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
14761
|
-
var __publicField$8 = (obj, key, value) =>
|
|
14762
|
-
__defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14763
|
-
return value;
|
|
14764
|
-
};
|
|
14761
|
+
var __publicField$8 = (obj, key, value) => __defNormalProp$c(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14765
14762
|
class BaseAdapter {
|
|
14766
14763
|
constructor(map, options) {
|
|
14767
14764
|
this.map = map;
|
|
@@ -14843,10 +14840,7 @@ var __spreadValues$7 = (a, b) => {
|
|
|
14843
14840
|
}
|
|
14844
14841
|
return a;
|
|
14845
14842
|
};
|
|
14846
|
-
var __publicField$7 = (obj, key, value) =>
|
|
14847
|
-
__defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14848
|
-
return value;
|
|
14849
|
-
};
|
|
14843
|
+
var __publicField$7 = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14850
14844
|
class GeoJsonEvents {
|
|
14851
14845
|
constructor(layer) {
|
|
14852
14846
|
__publicField$7(this, "layer");
|
|
@@ -14954,10 +14948,7 @@ var __objRest$2 = (source, exclude) => {
|
|
|
14954
14948
|
}
|
|
14955
14949
|
return target;
|
|
14956
14950
|
};
|
|
14957
|
-
var __publicField$6 = (obj, key, value) =>
|
|
14958
|
-
__defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14959
|
-
return value;
|
|
14960
|
-
};
|
|
14951
|
+
var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14961
14952
|
class GeoJsonPaint {
|
|
14962
14953
|
constructor(layer) {
|
|
14963
14954
|
__publicField$6(this, "layer");
|
|
@@ -15106,10 +15097,7 @@ var __spreadValues$5 = (a, b) => {
|
|
|
15106
15097
|
return a;
|
|
15107
15098
|
};
|
|
15108
15099
|
var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
|
|
15109
|
-
var __publicField$5 = (obj, key, value) =>
|
|
15110
|
-
__defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15111
|
-
return value;
|
|
15112
|
-
};
|
|
15100
|
+
var __publicField$5 = (obj, key, value) => __defNormalProp$8(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15113
15101
|
var __async = (__this, __arguments, generator) => {
|
|
15114
15102
|
return new Promise((resolve, reject) => {
|
|
15115
15103
|
var fulfilled = (value) => {
|
|
@@ -15696,10 +15684,7 @@ function callAjax(src, headers) {
|
|
|
15696
15684
|
|
|
15697
15685
|
var __defProp$7 = Object.defineProperty;
|
|
15698
15686
|
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15699
|
-
var __publicField$4 = (obj, key, value) =>
|
|
15700
|
-
__defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15701
|
-
return value;
|
|
15702
|
-
};
|
|
15687
|
+
var __publicField$4 = (obj, key, value) => __defNormalProp$7(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15703
15688
|
class Queue {
|
|
15704
15689
|
/**
|
|
15705
15690
|
* @param {PromiseQueueOptions} options - Configuration options for the queue.
|
|
@@ -15785,14 +15770,10 @@ class Queue {
|
|
|
15785
15770
|
}
|
|
15786
15771
|
|
|
15787
15772
|
const imageQueue = new Queue({ concurrency: 6, delay: 200 });
|
|
15788
|
-
var imageQueue$1 = imageQueue;
|
|
15789
15773
|
|
|
15790
15774
|
var __defProp$6 = Object.defineProperty;
|
|
15791
15775
|
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15792
|
-
var __publicField$3 = (obj, key, value) =>
|
|
15793
|
-
__defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15794
|
-
return value;
|
|
15795
|
-
};
|
|
15776
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15796
15777
|
class ImageOverlay extends leafletSrcExports.ImageOverlay {
|
|
15797
15778
|
constructor(imageUrl, bounds, options) {
|
|
15798
15779
|
super(imageUrl, bounds, options);
|
|
@@ -15810,7 +15791,7 @@ class ImageOverlay extends leafletSrcExports.ImageOverlay {
|
|
|
15810
15791
|
const img = this._image;
|
|
15811
15792
|
const src = img.src;
|
|
15812
15793
|
img.src = "";
|
|
15813
|
-
imageQueue
|
|
15794
|
+
imageQueue.add(() => {
|
|
15814
15795
|
const [promise, abortFunc] = callAjax(src, headers);
|
|
15815
15796
|
promise.then((imgUrl) => {
|
|
15816
15797
|
img.src = imgUrl;
|
|
@@ -15823,10 +15804,7 @@ class ImageOverlay extends leafletSrcExports.ImageOverlay {
|
|
|
15823
15804
|
|
|
15824
15805
|
var __defProp$5 = Object.defineProperty;
|
|
15825
15806
|
var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15826
|
-
var __publicField$2 = (obj, key, value) =>
|
|
15827
|
-
__defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15828
|
-
return value;
|
|
15829
|
-
};
|
|
15807
|
+
var __publicField$2 = (obj, key, value) => __defNormalProp$5(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15830
15808
|
class ImageLayer extends leafletSrcExports.Layer {
|
|
15831
15809
|
constructor(url, options) {
|
|
15832
15810
|
super(options);
|
|
@@ -16030,10 +16008,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
16030
16008
|
}
|
|
16031
16009
|
return a;
|
|
16032
16010
|
};
|
|
16033
|
-
var __publicField$1 = (obj, key, value) =>
|
|
16034
|
-
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
16035
|
-
return value;
|
|
16036
|
-
};
|
|
16011
|
+
var __publicField$1 = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
16037
16012
|
class ImageAdapter extends BaseAdapter {
|
|
16038
16013
|
constructor() {
|
|
16039
16014
|
super(...arguments);
|
|
@@ -16060,7 +16035,7 @@ class ImageAdapter extends BaseAdapter {
|
|
|
16060
16035
|
}
|
|
16061
16036
|
}
|
|
16062
16037
|
}
|
|
16063
|
-
__publicField$1(ImageAdapter, "queue", imageQueue
|
|
16038
|
+
__publicField$1(ImageAdapter, "queue", imageQueue);
|
|
16064
16039
|
|
|
16065
16040
|
function makeRemote(Base) {
|
|
16066
16041
|
return class RemoteTileLayer extends Base {
|
|
@@ -16311,10 +16286,7 @@ var __spreadValues = (a, b) => {
|
|
|
16311
16286
|
}
|
|
16312
16287
|
return a;
|
|
16313
16288
|
};
|
|
16314
|
-
var __publicField = (obj, key, value) =>
|
|
16315
|
-
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
16316
|
-
return value;
|
|
16317
|
-
};
|
|
16289
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
16318
16290
|
const _LeafletMapAdapter = class _LeafletMapAdapter {
|
|
16319
16291
|
constructor() {
|
|
16320
16292
|
__publicField(this, "options", { target: "map" });
|
|
@@ -16392,8 +16364,7 @@ const _LeafletMapAdapter = class _LeafletMapAdapter {
|
|
|
16392
16364
|
}
|
|
16393
16365
|
setView(lngLatOrOpt, zoom) {
|
|
16394
16366
|
const map = this.map;
|
|
16395
|
-
if (!map)
|
|
16396
|
-
return;
|
|
16367
|
+
if (!map) return;
|
|
16397
16368
|
if (Array.isArray(lngLatOrOpt)) {
|
|
16398
16369
|
const lngLat = lngLatOrOpt;
|
|
16399
16370
|
const [lng, lat] = lngLat;
|
|
@@ -16461,8 +16432,7 @@ const _LeafletMapAdapter = class _LeafletMapAdapter {
|
|
|
16461
16432
|
return (_a = this.map && this.map.getZoom()) != null ? _a : void 0;
|
|
16462
16433
|
}
|
|
16463
16434
|
getBounds() {
|
|
16464
|
-
if (!this.map)
|
|
16465
|
-
return void 0;
|
|
16435
|
+
if (!this.map) return void 0;
|
|
16466
16436
|
const b = this.map.getBounds();
|
|
16467
16437
|
const sw = b.getSouthWest();
|
|
16468
16438
|
const ne = b.getNorthEast();
|