@nextgis/leaflet-map-adapter 4.0.0-alpha.1 → 4.0.0-alpha.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: 4.0.0-alpha.1; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 4.0.0-alpha.2; author: NextGIS */
2
2
  function getElement(el) {
3
3
  if (typeof el === "string") {
4
4
  let el_ = document.getElementById(el);
@@ -17053,18 +17053,20 @@ var __objRest = (source, exclude) => {
17053
17053
  };
17054
17054
  class WmsAdapter extends BaseAdapter {
17055
17055
  addLayer(options) {
17056
+ var _b;
17056
17057
  Object.assign(this.options, options);
17057
17058
  const _a = options, { url } = _a, opt = __objRest(_a, ["url"]);
17058
17059
  if (url) {
17059
- const layerOptions = __spreadValues$1({
17060
+ const layerOptions = __spreadValues$1(__spreadValues$1({
17060
17061
  pane: this.pane,
17061
17062
  attribution: opt.attribution,
17062
17063
  minZoom: opt.minZoom,
17063
17064
  maxZoom: opt.maxZoom,
17064
17065
  layers: options.layers,
17065
17066
  format: options.format,
17066
- transparent: true
17067
- }, options.nativeOptions);
17067
+ version: options.version,
17068
+ transparent: (_b = options.transparent) != null ? _b : true
17069
+ }, options.params), options.nativeOptions);
17068
17070
  let layer;
17069
17071
  const request = getLayerRequestOptions(opt);
17070
17072
  if (request) {