@nextgis/leaflet-map-adapter 3.0.0-alpha.17 → 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
  }