@nextgis/ngw-leaflet 2.5.3 → 2.5.4

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/ngw-leaflet; version: 2.5.3; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 2.5.4; author: NextGIS */
2
2
  function styleInject(css, ref) {
3
3
  if ( ref === void 0 ) ref = {};
4
4
  var insertAt = ref.insertAt;
@@ -17057,13 +17057,7 @@ class ImageLayer extends leafletSrcExports.Layer {
17057
17057
  constructor(url, options) {
17058
17058
  super(options);
17059
17059
  __publicField$C(this, "defaultWmsParams", {
17060
- service: "WMS",
17061
- request: "GetMap",
17062
- version: "1.1.1",
17063
- layers: "",
17064
- styles: "",
17065
- format: "image/jpeg",
17066
- transparent: false
17060
+ request: "GetMap"
17067
17061
  });
17068
17062
  __publicField$C(this, "options", {
17069
17063
  crs: null,
@@ -17220,9 +17214,7 @@ class ImageLayer extends leafletSrcExports.Layer {
17220
17214
  size.x = Math.ceil(size.x * factor);
17221
17215
  size.y = Math.ceil(size.y * factor);
17222
17216
  }
17223
- const wmsVersion = parseFloat(this.wmsParams.version);
17224
17217
  const crs = this.options.crs || map.options.crs;
17225
- const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
17226
17218
  if (crs) {
17227
17219
  const nw = crs.project(bounds.getNorthWest());
17228
17220
  const se = crs.project(bounds.getSouthEast());
@@ -17230,8 +17222,7 @@ class ImageLayer extends leafletSrcExports.Layer {
17230
17222
  width: size.x,
17231
17223
  height: size.y
17232
17224
  };
17233
- params[projectionKey] = crs.code;
17234
- 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(",");
17225
+ params.bbox = [nw.x, se.y, se.x, nw.y];
17235
17226
  leafletSrcExports.Util.extend(this.wmsParams, params);
17236
17227
  }
17237
17228
  }