@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 LeafletMapAdapter = (function () {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ var LeafletMapAdapter = (function () {
|
|
|
32
32
|
this.domain = null;
|
|
33
33
|
if (EventEmitter.usingDomains) {
|
|
34
34
|
// if there is an active domain, then attach to it.
|
|
35
|
-
if (domain.active) ;
|
|
35
|
+
if (domain.active ) ;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
if (!this._events || this._events === Object.getPrototypeOf(this)._events) {
|
|
@@ -14970,7 +14970,7 @@ var LeafletMapAdapter = (function () {
|
|
|
14970
14970
|
}
|
|
14971
14971
|
return target;
|
|
14972
14972
|
};
|
|
14973
|
-
var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, key + "" , value);
|
|
14973
|
+
var __publicField$6 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
14974
14974
|
class GeoJsonPaint {
|
|
14975
14975
|
constructor(layer) {
|
|
14976
14976
|
__publicField$6(this, "layer");
|
|
@@ -15801,10 +15801,11 @@ var LeafletMapAdapter = (function () {
|
|
|
15801
15801
|
}
|
|
15802
15802
|
|
|
15803
15803
|
const imageQueue = new Queue({ concurrency: 6, delay: 200 });
|
|
15804
|
+
var imageQueue$1 = imageQueue;
|
|
15804
15805
|
|
|
15805
15806
|
var __defProp$6 = Object.defineProperty;
|
|
15806
15807
|
var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15807
|
-
var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, key + "" , value);
|
|
15808
|
+
var __publicField$3 = (obj, key, value) => __defNormalProp$6(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
15808
15809
|
class ImageOverlay extends leafletSrcExports.ImageOverlay {
|
|
15809
15810
|
constructor(imageUrl, bounds, options) {
|
|
15810
15811
|
super(imageUrl, bounds, options);
|
|
@@ -15822,7 +15823,7 @@ var LeafletMapAdapter = (function () {
|
|
|
15822
15823
|
const img = this._image;
|
|
15823
15824
|
const src = img.src;
|
|
15824
15825
|
img.src = "";
|
|
15825
|
-
imageQueue.add(() => {
|
|
15826
|
+
imageQueue$1.add(() => {
|
|
15826
15827
|
const [promise, abortFunc] = callAjax({
|
|
15827
15828
|
src,
|
|
15828
15829
|
headers,
|
|
@@ -15844,13 +15845,7 @@ var LeafletMapAdapter = (function () {
|
|
|
15844
15845
|
constructor(url, options) {
|
|
15845
15846
|
super(options);
|
|
15846
15847
|
__publicField$2(this, "defaultWmsParams", {
|
|
15847
|
-
|
|
15848
|
-
request: "GetMap",
|
|
15849
|
-
version: "1.1.1",
|
|
15850
|
-
layers: "",
|
|
15851
|
-
styles: "",
|
|
15852
|
-
format: "image/jpeg",
|
|
15853
|
-
transparent: false
|
|
15848
|
+
request: "GetMap"
|
|
15854
15849
|
});
|
|
15855
15850
|
__publicField$2(this, "options", {
|
|
15856
15851
|
crs: null,
|
|
@@ -16015,9 +16010,7 @@ var LeafletMapAdapter = (function () {
|
|
|
16015
16010
|
size.x = Math.ceil(size.x * factor);
|
|
16016
16011
|
size.y = Math.ceil(size.y * factor);
|
|
16017
16012
|
}
|
|
16018
|
-
const wmsVersion = parseFloat(this.wmsParams.version);
|
|
16019
16013
|
const crs = this.options.crs || map.options.crs;
|
|
16020
|
-
const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
|
|
16021
16014
|
if (crs) {
|
|
16022
16015
|
const nw = crs.project(bounds.getNorthWest());
|
|
16023
16016
|
const se = crs.project(bounds.getSouthEast());
|
|
@@ -16025,8 +16018,7 @@ var LeafletMapAdapter = (function () {
|
|
|
16025
16018
|
width: size.x,
|
|
16026
16019
|
height: size.y
|
|
16027
16020
|
};
|
|
16028
|
-
params
|
|
16029
|
-
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(",");
|
|
16021
|
+
params.bbox = [nw.x, se.y, se.x, nw.y];
|
|
16030
16022
|
leafletSrcExports.Util.extend(this.wmsParams, params);
|
|
16031
16023
|
}
|
|
16032
16024
|
}
|
|
@@ -16094,7 +16086,7 @@ var LeafletMapAdapter = (function () {
|
|
|
16094
16086
|
}
|
|
16095
16087
|
}
|
|
16096
16088
|
}
|
|
16097
|
-
__publicField$1(ImageAdapter, "queue", imageQueue);
|
|
16089
|
+
__publicField$1(ImageAdapter, "queue", imageQueue$1);
|
|
16098
16090
|
|
|
16099
16091
|
function makeRemote(Base) {
|
|
16100
16092
|
return class RemoteTileLayer extends Base {
|