@nextgis/leaflet-map-adapter 4.0.0-alpha.2 → 4.0.0-alpha.5

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.2; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 4.0.0-alpha.5; author: NextGIS */
2
2
  import { LeafletControlContainer, createControl, createButtonControl, createToggleControl } from '@nextgis/leaflet-control-container';
3
3
  import { EventEmitter } from 'events';
4
4
  import { Control, GeoJSON, DomEvent, DivIcon, Marker, CircleMarker, FeatureGroup, ImageOverlay as ImageOverlay$1, Layer, Util, GridLayer, DomUtil, TileLayer as TileLayer$1, Map, latLngBounds, latLng } from 'leaflet';
@@ -1565,18 +1565,20 @@ var __objRest = (source, exclude) => {
1565
1565
  };
1566
1566
  class WmsAdapter extends BaseAdapter {
1567
1567
  addLayer(options) {
1568
+ var _b;
1568
1569
  Object.assign(this.options, options);
1569
1570
  const _a = options, { url } = _a, opt = __objRest(_a, ["url"]);
1570
1571
  if (url) {
1571
- const layerOptions = __spreadValues$1({
1572
+ const layerOptions = __spreadValues$1(__spreadValues$1({
1572
1573
  pane: this.pane,
1573
1574
  attribution: opt.attribution,
1574
1575
  minZoom: opt.minZoom,
1575
1576
  maxZoom: opt.maxZoom,
1576
1577
  layers: options.layers,
1577
1578
  format: options.format,
1578
- transparent: true
1579
- }, options.nativeOptions);
1579
+ version: options.version,
1580
+ transparent: (_b = options.transparent) != null ? _b : true
1581
+ }, options.params), options.nativeOptions);
1580
1582
  let layer;
1581
1583
  const request = getLayerRequestOptions(opt);
1582
1584
  if (request) {