@nextgis/leaflet-map-adapter 3.0.0-alpha.20 → 3.0.0-alpha.22
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 +9 -17
- 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 +9 -17
- 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 +9 -17
- 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: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.21; author: NextGIS */
|
|
2
2
|
var domain;
|
|
3
3
|
|
|
4
4
|
// This constructor is used to store event handlers. Instantiating this is
|
|
@@ -29,7 +29,7 @@ EventEmitter.init = function() {
|
|
|
29
29
|
this.domain = null;
|
|
30
30
|
if (EventEmitter.usingDomains) {
|
|
31
31
|
// if there is an active domain, then attach to it.
|
|
32
|
-
if (domain.active) ;
|
|
32
|
+
if (domain.active ) ;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
|
|
@@ -14967,7 +14967,7 @@ var __objRest$2 = (source, exclude) => {
|
|
|
14967
14967
|
}
|
|
14968
14968
|
return target;
|
|
14969
14969
|
};
|
|
14970
|
-
var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
|
|
14970
|
+
var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14971
14971
|
class GeoJsonPaint {
|
|
14972
14972
|
constructor(layer) {
|
|
14973
14973
|
__publicField$6(this, "layer");
|
|
@@ -15798,10 +15798,11 @@ class Queue {
|
|
|
15798
15798
|
}
|
|
15799
15799
|
|
|
15800
15800
|
const imageQueue = new Queue({ concurrency: 6, delay: 200 });
|
|
15801
|
+
var imageQueue$1 = imageQueue;
|
|
15801
15802
|
|
|
15802
15803
|
var __defProp$6 = Object.defineProperty;
|
|
15803
15804
|
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15804
|
-
var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
15805
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15805
15806
|
class ImageOverlay extends leafletSrcExports.ImageOverlay {
|
|
15806
15807
|
constructor(imageUrl, bounds, options) {
|
|
15807
15808
|
super(imageUrl, bounds, options);
|
|
@@ -15819,7 +15820,7 @@ class ImageOverlay extends leafletSrcExports.ImageOverlay {
|
|
|
15819
15820
|
const img = this._image;
|
|
15820
15821
|
const src = img.src;
|
|
15821
15822
|
img.src = "";
|
|
15822
|
-
imageQueue.add(() => {
|
|
15823
|
+
imageQueue$1.add(() => {
|
|
15823
15824
|
const [promise, abortFunc] = callAjax({
|
|
15824
15825
|
src,
|
|
15825
15826
|
headers,
|
|
@@ -15841,13 +15842,7 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
15841
15842
|
constructor(url, options) {
|
|
15842
15843
|
super(options);
|
|
15843
15844
|
__publicField$2(this, "defaultWmsParams", {
|
|
15844
|
-
|
|
15845
|
-
request: "GetMap",
|
|
15846
|
-
version: "1.1.1",
|
|
15847
|
-
layers: "",
|
|
15848
|
-
styles: "",
|
|
15849
|
-
format: "image/jpeg",
|
|
15850
|
-
transparent: false
|
|
15845
|
+
request: "GetMap"
|
|
15851
15846
|
});
|
|
15852
15847
|
__publicField$2(this, "options", {
|
|
15853
15848
|
crs: null,
|
|
@@ -16012,9 +16007,7 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
16012
16007
|
size.x = Math.ceil(size.x * factor);
|
|
16013
16008
|
size.y = Math.ceil(size.y * factor);
|
|
16014
16009
|
}
|
|
16015
|
-
const wmsVersion = parseFloat(this.wmsParams.version);
|
|
16016
16010
|
const crs = this.options.crs || map.options.crs;
|
|
16017
|
-
const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
|
|
16018
16011
|
if (crs) {
|
|
16019
16012
|
const nw = crs.project(bounds.getNorthWest());
|
|
16020
16013
|
const se = crs.project(bounds.getSouthEast());
|
|
@@ -16022,8 +16015,7 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
16022
16015
|
width: size.x,
|
|
16023
16016
|
height: size.y
|
|
16024
16017
|
};
|
|
16025
|
-
params
|
|
16026
|
-
params.bbox = (wmsVersion >= 1.3 && crs === leafletSrcExports.CRS.EPSG4326 ? [se.y, nw.x, nw.y, se.x] : [nw.x, se.y, se.x, nw.y]).join(",");
|
|
16018
|
+
params.bbox = [nw.x, se.y, se.x, nw.y];
|
|
16027
16019
|
leafletSrcExports.Util.extend(this.wmsParams, params);
|
|
16028
16020
|
}
|
|
16029
16021
|
}
|
|
@@ -16091,7 +16083,7 @@ class ImageAdapter extends BaseAdapter {
|
|
|
16091
16083
|
}
|
|
16092
16084
|
}
|
|
16093
16085
|
}
|
|
16094
|
-
__publicField$1(ImageAdapter, "queue", imageQueue);
|
|
16086
|
+
__publicField$1(ImageAdapter, "queue", imageQueue$1);
|
|
16095
16087
|
|
|
16096
16088
|
function makeRemote(Base) {
|
|
16097
16089
|
return class RemoteTileLayer extends Base {
|