@nextgis/ngw-map 2.0.2 → 2.1.1

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-map; version: 2.0.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.1.1; author: NextGIS */
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- /** Bundle of @nextgis/ngw-map; version: 2.0.2; author: NextGIS */
1
+ /** Bundle of @nextgis/ngw-map; version: 2.1.1; author: NextGIS */
2
2
  var domain;
3
3
 
4
4
  // This constructor is used to store event handlers. Instantiating this is
@@ -3997,7 +3997,7 @@ function createGeoJsonAdapter(props) {
3997
3997
  } = props;
3998
3998
  const addLayerOptionsPriority = alop != null ? alop : true;
3999
3999
  const options = layerOptions;
4000
- const GeoJsonAdapter = Adapter || webMap.mapAdapter.layerAdapters.GEOJSON;
4000
+ const GeoJsonAdapter = Adapter || layerOptions.Adapter || webMap.mapAdapter.layerAdapters.GEOJSON;
4001
4001
  const _loadedIds = [];
4002
4002
  let _fullDataLoad = false;
4003
4003
  let _lastFilterArgs;
@@ -7583,6 +7583,9 @@ const _WebMapMain = class _WebMapMain {
7583
7583
  this.setView(center, zoom);
7584
7584
  } else if (bounds) {
7585
7585
  this.fitBounds(bounds);
7586
+ if (zoom !== void 0) {
7587
+ this.setZoom(zoom);
7588
+ }
7586
7589
  }
7587
7590
  }
7588
7591
  _setInitMapState(states) {