@nextgis/leaflet-map-adapter 2.5.0 → 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/leaflet-map-adapter; version: 2.5.0; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 2.5.4; author: NextGIS */
2
2
  var domain;
3
3
 
4
4
  // This constructor is used to store event handlers. Instantiating this is
@@ -15820,13 +15820,7 @@ class ImageLayer extends leafletSrcExports.Layer {
15820
15820
  constructor(url, options) {
15821
15821
  super(options);
15822
15822
  __publicField$2(this, "defaultWmsParams", {
15823
- service: "WMS",
15824
- request: "GetMap",
15825
- version: "1.1.1",
15826
- layers: "",
15827
- styles: "",
15828
- format: "image/jpeg",
15829
- transparent: false
15823
+ request: "GetMap"
15830
15824
  });
15831
15825
  __publicField$2(this, "options", {
15832
15826
  crs: null,
@@ -15983,9 +15977,7 @@ class ImageLayer extends leafletSrcExports.Layer {
15983
15977
  size.x = Math.ceil(size.x * factor);
15984
15978
  size.y = Math.ceil(size.y * factor);
15985
15979
  }
15986
- const wmsVersion = parseFloat(this.wmsParams.version);
15987
15980
  const crs = this.options.crs || map.options.crs;
15988
- const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
15989
15981
  if (crs) {
15990
15982
  const nw = crs.project(bounds.getNorthWest());
15991
15983
  const se = crs.project(bounds.getSouthEast());
@@ -15993,8 +15985,7 @@ class ImageLayer extends leafletSrcExports.Layer {
15993
15985
  width: size.x,
15994
15986
  height: size.y
15995
15987
  };
15996
- params[projectionKey] = crs.code;
15997
- 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(",");
15988
+ params.bbox = [nw.x, se.y, se.x, nw.y];
15998
15989
  leafletSrcExports.Util.extend(this.wmsParams, params);
15999
15990
  }
16000
15991
  }