@nextgis/ngw-leaflet 1.16.7 → 1.16.8

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/ngw-leaflet; version: 1.16.7; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-leaflet; version: 1.16.8; author: NextGIS */
2
2
  /******************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
@@ -17989,6 +17989,10 @@ var WebMap = /** @class */ (function (_super) {
17989
17989
  return WebMap;
17990
17990
  }(WebMapControls));
17991
17991
 
17992
+ function getDefaultControls() {
17993
+ return ['ZOOM', 'ATTRIBUTION'];
17994
+ }
17995
+
17992
17996
  /**
17993
17997
  * @example
17994
17998
  * ```javascript
@@ -21592,6 +21596,9 @@ function createQmsAdapter(webMapOrOptions, url, createOpt) {
21592
21596
  createOpt = adapterOptions;
21593
21597
  }
21594
21598
  }
21599
+ else {
21600
+ webMap = webMapOrOptions;
21601
+ }
21595
21602
  if (!url) {
21596
21603
  url = URL;
21597
21604
  }
@@ -22389,7 +22396,7 @@ var OPTIONS = {
22389
22396
  target: 'map',
22390
22397
  baseUrl: '',
22391
22398
  whitlabel: false,
22392
- controls: ['ZOOM', 'ATTRIBUTION'],
22399
+ controls: getDefaultControls(),
22393
22400
  controlsOptions: {
22394
22401
  ZOOM: { position: 'top-left' },
22395
22402
  ATTRIBUTION: {