@nextgis/ngw-leaflet 3.0.0-alpha.20 → 3.0.0-alpha.21
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/ngw-leaflet.esm-browser.js +3 -12
- package/lib/ngw-leaflet.esm-browser.js.map +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js +1 -1
- package/lib/ngw-leaflet.esm-browser.prod.js.map +1 -1
- package/lib/ngw-leaflet.esm-bundler.js +1 -1
- package/lib/ngw-leaflet.global.js +3 -12
- package/lib/ngw-leaflet.global.js.map +1 -1
- package/lib/ngw-leaflet.global.prod.js +1 -1
- package/lib/ngw-leaflet.global.prod.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** Bundle of @nextgis/ngw-leaflet; version: 3.0.0-alpha.
|
|
1
|
+
/** Bundle of @nextgis/ngw-leaflet; 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
|
|
@@ -17040,13 +17040,7 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
17040
17040
|
constructor(url, options) {
|
|
17041
17041
|
super(options);
|
|
17042
17042
|
__publicField$D(this, "defaultWmsParams", {
|
|
17043
|
-
|
|
17044
|
-
request: "GetMap",
|
|
17045
|
-
version: "1.1.1",
|
|
17046
|
-
layers: "",
|
|
17047
|
-
styles: "",
|
|
17048
|
-
format: "image/jpeg",
|
|
17049
|
-
transparent: false
|
|
17043
|
+
request: "GetMap"
|
|
17050
17044
|
});
|
|
17051
17045
|
__publicField$D(this, "options", {
|
|
17052
17046
|
crs: null,
|
|
@@ -17211,9 +17205,7 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
17211
17205
|
size.x = Math.ceil(size.x * factor);
|
|
17212
17206
|
size.y = Math.ceil(size.y * factor);
|
|
17213
17207
|
}
|
|
17214
|
-
const wmsVersion = parseFloat(this.wmsParams.version);
|
|
17215
17208
|
const crs = this.options.crs || map.options.crs;
|
|
17216
|
-
const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
|
|
17217
17209
|
if (crs) {
|
|
17218
17210
|
const nw = crs.project(bounds.getNorthWest());
|
|
17219
17211
|
const se = crs.project(bounds.getSouthEast());
|
|
@@ -17221,8 +17213,7 @@ class ImageLayer extends leafletSrcExports.Layer {
|
|
|
17221
17213
|
width: size.x,
|
|
17222
17214
|
height: size.y
|
|
17223
17215
|
};
|
|
17224
|
-
params
|
|
17225
|
-
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(",");
|
|
17216
|
+
params.bbox = [nw.x, se.y, se.x, nw.y];
|
|
17226
17217
|
leafletSrcExports.Util.extend(this.wmsParams, params);
|
|
17227
17218
|
}
|
|
17228
17219
|
}
|