@nextgis/leaflet-map-adapter 3.0.0-alpha.13 → 3.0.0-alpha.18

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.13; author: NextGIS */
1
+ /** Bundle of @nextgis/leaflet-map-adapter; version: 3.0.0-alpha.17; author: NextGIS */
2
2
  var domain;
3
3
 
4
4
  // This constructor is used to store event handlers. Instantiating this is
@@ -14653,6 +14653,10 @@ function defined(val) {
14653
14653
  return val !== void 0 && val !== null;
14654
14654
  }
14655
14655
 
14656
+ function isObject(val) {
14657
+ return Object.prototype.toString.call(val) === "[object Object]";
14658
+ }
14659
+
14656
14660
  function updateUrlParams(urlStr, params) {
14657
14661
  const url = new URL(urlStr);
14658
14662
  const searchParams = new URLSearchParams(url.search);
@@ -15872,7 +15876,7 @@ class ImageLayer extends leafletSrcExports.Layer {
15872
15876
  for (opt in options) {
15873
15877
  if (opt in this.options) {
15874
15878
  opts[opt] = options[opt];
15875
- } else {
15879
+ } else if (!isObject(options[opt])) {
15876
15880
  params[opt] = options[opt];
15877
15881
  }
15878
15882
  }
@@ -16058,7 +16062,7 @@ class ImageAdapter extends BaseAdapter {
16058
16062
  const url = options && options.url;
16059
16063
  if (url) {
16060
16064
  const updateWmsParamsFromOpt = options.updateWmsParams;
16061
- this.layer = new ImageLayer(url, __spreadProps$3(__spreadValues$4(__spreadValues$4(__spreadValues$4({
16065
+ this.layer = new ImageLayer(url, __spreadValues$4(__spreadValues$4(__spreadValues$4({
16062
16066
  pane: this.pane,
16063
16067
  headers: options.headers,
16064
16068
  setViewDelay: options.setViewDelay
@@ -16066,9 +16070,7 @@ class ImageAdapter extends BaseAdapter {
16066
16070
  transparent: true
16067
16071
  }, options), {
16068
16072
  opacity: (_a = options.opacity) != null ? _a : void 0
16069
- })), options.params), options.nativeOptions), {
16070
- maxZoom: 12
16071
- }));
16073
+ })), options.params), options.nativeOptions));
16072
16074
  if (updateWmsParamsFromOpt) {
16073
16075
  const updateWmsParams = this.layer.updateWmsParams;
16074
16076
  this.layer.updateWmsParams = function(map) {