@nextgis/leaflet-map-adapter 3.0.0-alpha.19 → 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.
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.18; author: NextGIS */
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
@@ -15841,13 +15841,7 @@ class ImageLayer extends leafletSrcExports.Layer {
15841
15841
  constructor(url, options) {
15842
15842
  super(options);
15843
15843
  __publicField$2(this, "defaultWmsParams", {
15844
- service: "WMS",
15845
- request: "GetMap",
15846
- version: "1.1.1",
15847
- layers: "",
15848
- styles: "",
15849
- format: "image/jpeg",
15850
- transparent: false
15844
+ request: "GetMap"
15851
15845
  });
15852
15846
  __publicField$2(this, "options", {
15853
15847
  crs: null,
@@ -16012,9 +16006,7 @@ class ImageLayer extends leafletSrcExports.Layer {
16012
16006
  size.x = Math.ceil(size.x * factor);
16013
16007
  size.y = Math.ceil(size.y * factor);
16014
16008
  }
16015
- const wmsVersion = parseFloat(this.wmsParams.version);
16016
16009
  const crs = this.options.crs || map.options.crs;
16017
- const projectionKey = wmsVersion >= 1.3 ? "crs" : "srs";
16018
16010
  if (crs) {
16019
16011
  const nw = crs.project(bounds.getNorthWest());
16020
16012
  const se = crs.project(bounds.getSouthEast());
@@ -16022,8 +16014,7 @@ class ImageLayer extends leafletSrcExports.Layer {
16022
16014
  width: size.x,
16023
16015
  height: size.y
16024
16016
  };
16025
- params[projectionKey] = crs.code;
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(",");
16017
+ params.bbox = [nw.x, se.y, se.x, nw.y];
16027
16018
  leafletSrcExports.Util.extend(this.wmsParams, params);
16028
16019
  }
16029
16020
  }